Bug 6995

Summary: Toaster does not collect image information
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Ionut Chisanovici <ionutx.chisanovici>
Severity: normal    
Priority: Medium+ CC: alexandru.damian, belen.barros.pena, bluelightning, bogdanx.a.voiculescu, cristiana.voicu
Version: 1.7   
Target Milestone: 1.8 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
toaster_ui.log none

Description Belen Barros Pena 2014-11-24 13:34:46 UTC
Created attachment 2256 [details]
toaster_ui.log

Found on master:49547a6d6dead6c9e9c8c209afacd9edc6a9bd5f

Steps to reproduce:

1. Start Toaster in managed mode
2. Create a project with release 'master'
3. Build core-image-base
4. Select the build and click the 'core-image-base' link in the left navigation

The build information page has no data: it says 0 packages included and the directory structure table shows empty.

I've attached the toaster_ui.log file
Comment 1 Alexandru Damian 2014-11-25 13:00:11 UTC
Patch for review on toaster/master
Comment 2 Belen Barros Pena 2014-11-26 11:08:33 UTC
I don't seem to be able to test this on toaster/master:

* When I create a project with release 'master' and I build something, the branch is switched to master during the build process and the bug is still there

* When I create a project with release 'local' and I build something, the build fails with this error

Error type <class 'bldcontrol.bbcontroller.BuildSetupException'>:

Existing git repository at /home/yocto/poky, but with different
remotes (not 'git://git.yoctoproject.org/poky.git'). Aborting.

DEBUG: giturl  git://git.yoctoproject.org/poky.git checking out in
current directory /home/yocto/poky
 EE Error executing shell command
Existing git repository at /home/yocto/poky, but with different
remotes (not 'git://git.yoctoproject.org/poky.git'). Aborting.
Traceback (most recent call last):
  File "/home/yocto/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
line 51, in schedule
    bec.setLayers(br.brbitbake_set.all(), br.brlayer_set.all())
  File "/home/yocto/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 162, in setLayers
    raise BuildSetupException("Existing git repository at %s, but with
different remotes (not '%s'). Aborting." % (localdirname, giturl))
BuildSetupException: Existing git repository at /home/yocto/poky, but
with different remotes (not 'git://git.yoctoproject.org/poky.git').
Aborting.

If you have a workaround, let me know.
Comment 3 Belen Barros Pena 2014-11-26 17:04:18 UTC
So workaround achieved. This seems to be working for me on toaster/master:24543729ce3689924e0b5090527c3c061ebdc6d5
Comment 4 Alexandru Damian 2015-01-09 11:54:04 UTC
The fix was merged in master as 

bitbake: toaster: fix loadconf path calculation
Comment 5 Ionut Chisanovici 2015-01-29 10:31:19 UTC
Hi,

This is verified in master, commit: 07f2eca7e9f9163ec48d3a417d8ba885a84762f3.
Both the image packages page and directory structure page are populated.

Cheers,
Ionut C