Bug 7955

Summary: Toaster fails to retrieve recipe and machine information from the layer index
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: brian avery <brian.avery>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium+ CC: alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, jessica.zhang, michael.g.wood, stanciux.mihail
Version: 1.8   
Target Milestone: 1.9 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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