Bug 7955 - Toaster fails to retrieve recipe and machine information from the layer index
Summary: Toaster fails to retrieve recipe and machine information from the layer index
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.9 M3
Assignee: brian avery
QA Contact: Mihail Stanciu
URL:
Whiteboard:
: 8023 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-03 15:57 UTC by Belen Barros Pena
Modified: 2015-09-18 13:41 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2015-07-03 15:57:12 UTC
On master:7a402301c9c8fa9a5262d6d29b2ea199ff0dc07a

When you set up Toaster from scratch (creating a new database), after selecting the Toaster configuration file you want to use, fetching information from the layer index fails with the following error:

Cannot find layer version  OpenEmbedded (1) 65 fido
Failure while trying to import the toaster config file: Layer_Version
matching query does not exist.

Recipe and machine project tables appear empty as a result. 

According to Michael Wood, this is "an exception caught in models.py line 892"
Comment 1 Belen Barros Pena 2015-07-06 18:59:20 UTC
Someone has mentioned this is happening also in Fido. I am starting to think this might be a problem in the layer index.
Comment 2 Alexandru Damian 2015-07-07 14:06:25 UTC
This is a bug in Toaster, triggered by invalid data coming in from the Layer Index.

The data sanity check in Toaster correctly identified the issue, but escalated it to a show-stopper status, where as the invalid can be safely ignored at this point and the processing can continue.

Fixing the underlying data in Layer Index is outside the scope of this bug.

Pushed for review:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=adamian/20150707_bugs
Comment 3 Belen Barros Pena 2015-07-07 14:55:38 UTC
I know normally we don't back port stuff, but I think it would be good to back port this one to Fido.
Comment 4 Mihail Stanciu 2015-07-16 15:28:54 UTC
*** Bug 8023 has been marked as a duplicate of this bug. ***
Comment 6 Mihail Stanciu 2015-09-18 13:41:01 UTC
Verified on master: ea562de57590c966cd5a75fda8defecd397e6436