Bug 3233

Summary: error when selecting kernel version 3.4 in yocto bsp tool
Product: [Build System, Metadata & Runtime] BSPs Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: bsps-toolsAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, ioanax.grigoropol, jessica.zhang, tom.zanussi
Version: 1.3   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
yocto-bsp error none

Description Alexandru Georgescu 2012-10-04 13:54:20 UTC
Created attachment 874 [details]
yocto-bsp error

HOST Environment: Fedora 17, 32bit.
For general testing I am using:
Location: http://autobuilder.yoctoproject.org/pub/nightly/20121003-4
Branch: danny
Tag: 1.3_M5.rc3

Commits:
poky: 86c9aa8081f107420cd3763d0566d779daddc2b1
eclipse-poky: aa38f8b19c921cce2f73647d8aeb7e355c868b56
meta-qt3: c86fb1727ae09526c442ec29fffde3f010aa70eb
meta-intel: 2c1e927fa99abe47865a03cf661d4757ff3147c6


Steps to reproduce:

In yocto-bsp main page
1. try to create a new yocto-bsp layer in Eclipse (yocto-project-tools-> Yocto-bsp)
2. Fill in all the fields ( Meta_data location, Build Location, BSP output location)
3. for Kernel Architecture select i386
4. Press Next
5. In the "yocto-bsp properties page" which appears select linux-yocto-rt_3.4 for kernel_choice.


ACTUAL RESULT:
5: An error appears (see attachment)

EXPECTED RESULT:
5. linux-yocto-rt_3.4 is selected without any errors. THe user can select other options.
Comment 1 Tom Zanussi 2012-10-04 14:29:59 UTC
Looks like it might be a network problem on that end.  Creating an i386 BSP using the 3.4-rt kernel works fine here:


[trz@empanada build]$ yocto-bsp create myi386 i386
Would you like to use the default (3.4) kernel? (y/n) [default: y] n
Please choose the kernel to use in this BSP: [default: linux-yocto_3.4]
	1) linux-yocto_3.2
	2) linux-yocto-rt_3.4
	3) linux-yocto_3.4
	4) linux-yocto-rt_3.2
2
Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n] [default: y] 
Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-3.4.git...
Please choose a machine branch to base this BSP on: [default: standard/preempt-rt/base]
	1) standard/preempt-rt/base
	2) standard/preempt-rt/fri2
	3) standard/preempt-rt/qemuppc
	4) standard/preempt-rt/routerstationpro

Do you need SMP support? (y/n) [default: y] 
Which machine tuning would you like to use? [default: tune_core2]
	1) i586 tuning optimizations
	2) Atom tuning optimizations
	3) Core2 tuning optimizations

Do you need support for X? (y/n) [default: y] 
Does your BSP have a touchscreen? (y/n) [default: n] 
Does your BSP have a keyboard? (y/n) [default: y] 
New i386 BSP created in meta-myi386
Comment 2 Jessica 2012-10-04 21:49:39 UTC
Hi Alex,

Is it consistently happening to you or is it just happened once?  I tried on my end and seems couldn't reproduce it but I do remember when I showd yocto-bsp when Tom was here, I did run into some traceback with it.
Comment 3 Darren Hart 2012-10-04 22:12:48 UTC
What happens if linux-yocto hasn't been fetched prior to running yocto-bsp ?
Comment 4 Darren Hart 2012-10-04 22:13:13 UTC
(In reply to comment #3)
> What happens if linux-yocto hasn't been fetched prior to running yocto-bsp ?

Doh, nevermind, it looks at the SRCURI for those branches and such.
Comment 5 Jessica 2012-10-11 04:22:07 UTC
Alex,

Can you check whether you still can consistently reproduce the failure?
Comment 6 Alexandru Georgescu 2012-10-11 15:31:09 UTC
(In reply to comment #5)
> Alex,
> 
> Can you check whether you still can consistently reproduce the failure?

Hi Jessica,
I tried with RC4 and couldn't reproduce it anymore.
Comment 7 Tom Zanussi 2012-10-11 15:31:47 UTC
After an online session with AlexG, we were unable to reproduced this on the machine that exhibited the problem.

The result was that 'yocto-bsp create myqemux86 qemu' worked fine and was able to fetch the remote branches and display them without error both in the tested version and the current RC.
Comment 8 Alexandru Georgescu 2012-10-15 11:25:04 UTC
verified.
Comment 9 Tom Zanussi 2012-10-19 17:27:37 UTC
This was seen again on the test system after it was resolved, so reopened.  Patch submitted.
Comment 10 Jessica 2012-10-22 17:23:33 UTC
Hi Tom,

Can you provide some detail about the issue, since it's not consistently reproducible on all host distros, probably it shouldn't be a medium+
Comment 11 Tom Zanussi 2012-10-22 18:51:34 UTC
(In reply to comment #10)
> Hi Tom,
> 
> Can you provide some detail about the issue, since it's not consistently
> reproducible on all host distros, probably it shouldn't be a medium+

A patch was submitted to fix this bug:

https://lists.yoctoproject.org/pipermail/poky/2012-October/008494.html

with the following text:

yocto_bsp_list_property_values() is missing the context it needs to
properly filter choicelists, so add it to the context object.


This only affects the users the 'yocto-bsp list property' command, such as ADT who may see cases where the property list filter is incorrect and may return the empty set.

The specific details of the system seeing this problem seem to show a filter of 'linux-yocto-rt', but the returned branches did have linux-yocto-rt branches to filter and shouldn't have returned the empty set.  The observed behavior that it apparently made a difference which directory the command was invoked from doesn't make sense either, but nonetheless the analysis of the problem area showed there was a problem that could account for the backtrace, and the fix has apparently fixed the problem on the test system, which is the only system the problem was reproducible on.
Comment 12 Jessica 2012-10-22 20:05:13 UTC
Lowered the priority due to it only shows on one particular machine
Comment 13 Tom Zanussi 2012-10-23 12:48:55 UTC
Fixed by poky/master commit f07be9d2b68ac4e184ce2670bfa65b8d944387aa
Comment 14 Alexandru Georgescu 2013-06-27 13:02:26 UTC
verified with c3505828f267ca68aaf454355466f54772545a22 in danny.