Bug 6995 - Toaster does not collect image information
Summary: Toaster does not collect image information
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.8 M2
Assignee: Alexandru Damian
QA Contact: Ionut Chisanovici
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-11-24 13:34 UTC by Belen Barros Pena
Modified: 2015-01-29 10:31 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
toaster_ui.log (120.85 KB, application/octet-stream)
2014-11-24 13:34 UTC, Belen Barros Pena
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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