Bug 9494 - Custom images created from the build history pages fail to build
Summary: Custom images created from the build history pages fail to build
Status: ACCEPTED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.99
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-20 14:09 UTC by Belen Barros Pena
Modified: 2025-06-11 08:59 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

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2016-04-20 14:09:22 UTC
Steps to reproduce:

1. Create a Toaster project and build core-image-minimal

2. Once the build finishes, click on the target name and on the left navigation click the "New custom image" button

3. Give your custom image a name and create it

4. In the custom image details page, click the "build" button

The build fails with this message:

BRLayer matching query does not exist.

If you create the same custom image from the "new custom image" page, it builds without problems.
Comment 1 Elliot Smith 2016-08-11 15:28:23 UTC
I spent some time looking at this, but haven't resolved it.

The issue might be that the base recipe you get if you create a custom image from the build dashboard is different from the base recipe if you create it from the "New custom image" page.

For example, if I create a custom image from the "New custom image" page based on core-image-minimal, the base recipe ID is 8718.

If I then build core-image-minimal, go to the build dashboard, and create a new custom image from there, the base recipe ID is 10626.

My guess is that the recipes associated with a build are different from the ones associated with the project, and don't have the same layer information. (We use the recipes from the build when creating a new custom image from the build dashboard, but use the recipes from the project when creating one via the "New custom image" page.)

The fix may be to retrieve the project recipes to populate the list of available recipes shown in the build dashboard new custom image popup.
Comment 2 Randy MacLeod 2023-10-24 14:24:31 UTC
Bulk move from 4.99 or 0.00 to 5.99