Bug 7285

Summary: Toaster managed mode: toaster fails to start a build with meta-selftest added as a new local layer
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: major    
Priority: High CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, jessica.zhang
Version: 1.8   
Target Milestone: 1.8 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
checking_out_layers none

Description Ionut Chisanovici 2015-02-04 15:53:40 UTC
Created attachment 2388 [details]
checking_out_layers

Hi,

BUILD: 1.8_M2.rc2: 22c38e2d8a058619e3d05534b5e830b750aa4241
ENVIRONMENT: Ubuntu 14.10 x86_64
STEPS TO REPRODUCE: 
  
Start toaster in project mode (TC: 1060)
Create a new project with release set on "Local Yocto Project"

In project configuration page click "Import layer" link and add "meta-selftest" layer as following:

Layer name: meta-selftest
Git repository URL: git://git.yoctoproject.org/poky
Revision: HEAD
Click on the button: "Import and add to project"
Go back to project configuration page and check if the layer was successfully imported into project
Start a core-image-minimal
Toaster should be able to checkout on all the project layers and should be able to successfully build the image


EXPECTED OUTCOME: 
  
 Toaster must be able to build images with new layers added into project.

ACTUAL OUTCOME:

Toaster freezes in "Checking out layers". See attached screen shot.
Also, in backend console the following line appears every one second:
"DEBUG 2015-02-04 17:49:34,011 localhostbecontroller: Waiting bitbake server to start"

Full backend console lines:

Toaster is now running. You can stop it with Ctrl-C
DEBUG 2015-02-04 17:48:25,026 runbuilds: starting build BuildRequest object, environment BuildEnvironment object
DEBUG 2015-02-04 17:48:25,029 localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/poky', u'HEAD'): [('bitbake', u'bitbake'),
                                                 (u'openembedded-core',
                                                  u'meta'),
                                                 (u'meta-yocto',
                                                  u'meta-yocto'),
                                                 (u'meta-yocto-bsp',
                                                  u'meta-yocto-bsp'),
                                                 (u'meta-selftest', u'')]}
DEBUG 2015-02-04 17:48:25,032 localhostbecontroller: giturl git://git.yoctoproject.org/poky:HEAD checking out in current directory /home/ionut/work/poky_1.8/poky
DEBUG 2015-02-04 17:48:25,034 localhostbecontroller: selected poky dir name /home/ionut/work/poky_1.8/poky
DEBUG 2015-02-04 17:48:25,034 localhostbecontroller: localdirpath expected '/home/ionut/work/poky_1.8/poky/bitbake'
DEBUG 2015-02-04 17:48:25,034 localhostbecontroller: localdirpath expected '/home/ionut/work/poky_1.8/poky/meta'
DEBUG 2015-02-04 17:48:25,034 localhostbecontroller: localdirpath expected '/home/ionut/work/poky_1.8/poky/meta-yocto'
DEBUG 2015-02-04 17:48:25,034 localhostbecontroller: localdirpath expected '/home/ionut/work/poky_1.8/poky/meta-yocto-bsp'
DEBUG 2015-02-04 17:48:25,034 localhostbecontroller: localdirpath expected '/home/ionut/work/poky_1.8/poky/'
DEBUG 2015-02-04 17:48:25,035 localhostbecontroller: current layer list [u'/home/ionut/work/poky_1.8/poky/meta',
 u'/home/ionut/work/poky_1.8/poky/meta-yocto',
 u'/home/ionut/work/poky_1.8/poky/meta-yocto-bsp',
 u'/home/ionut/work/poky_1.8/poky'] 
DEBUG 2015-02-04 17:48:25,060 localhostbecontroller: running the listener at /home/ionut/work/poky_1.8/poky/bitbake/bin/bitbake
DEBUG 2015-02-04 17:48:25,061 fullcommand |bash -c "source /home/ionut/work/poky_1.8/poky/oe-init-build-env /home/ionut/work/poky_1.8/poky/build && bitbake --read conf/toaster-pre.conf --postread conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0 && DATABASE_URL=sqlite3:///home/ionut/work/poky_1.8/poky/toaster.sqlite BBSERVER=0.0.0.0:-1 daemon -d -i -D /home/ionut/work/poky_1.8/poky/build -o toaster_ui.log -- /home/ionut/work/poky_1.8/poky/bitbake/bin/bitbake --observe-only -u toasterui &"| 
DEBUG 2015-02-04 17:48:25,395 localhostbecontroller: Waiting bitbake server to start
DEBUG 2015-02-04 17:48:25,895 localhostbecontroller: Waiting bitbake server to start
DEBUG 2015-02-04 17:48:26,396 localhostbecontroller: Waiting bitbake server to start
DEBUG 2015-02-04 17:48:26,897 localhostbecontroller: Waiting bitbake server to start
DEBUG 2015-02-04 17:48:27,398 localhostbecontroller: Waiting bitbake server to start
DEBUG 2015-02-04 17:48:27,899 localhostbecontroller: Waiting bitbake server to start
DEBUG 2015-02-04 17:48:28,400 localhostbecontroller: Waiting bitbake server to start

Cheers,
Ionut C
Comment 1 Alexandru Damian 2015-02-10 16:29:42 UTC
Pushed for review on

  poky-contrib: adamian/20150208-submission

The fix consists in properly displaying the failure of the server to start.


The failure is caused by an improperly configured layer. Helping the user fix this particular issue is beyond this particular bug.
Comment 2 Alexandru Damian 2015-02-18 15:25:11 UTC
Merged in master.
Comment 3 Mihail Stanciu 2015-03-31 08:08:15 UTC
Verified on master: 8b3d3e7c957ad06c390886487f69aeb8e145da6a