Bug 10307 - Not Null constraint when building a new custom image
Summary: Not Null constraint when building a new custom image
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Toaster default assignee
QA Contact: David Lopez Barriba
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-19 22:02 UTC by Libertad
Modified: 2016-10-25 15:51 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
stack trace before logs (18.10 KB, application/octet-stream)
2016-09-19 22:02 UTC, Libertad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libertad 2016-09-19 22:02:43 UTC
Created attachment 3427 [details]
stack trace before logs

DESCRIPTION:

When trying to build an image of a created new custom image I get an error that says... NOT NULL constraint failed: bldcontrol_brlayer.commit 

BUILD: 2.2 M3: 2679a347c576f5411fbe802d2f6201c94036ecb2
ENVIRONMENT: Debian 4.3.0-0.bpo.1-amd64
STEPS TO REPRODUCE: 

1. Start toaster

2. Create a Master Project

3. Access a project page, either by creating a new project or accessing an existing project from the "All projects" table. 

4. On the project page click on the "New custom image" link situated on the left-hand side, near Configuration, builds, import layer

5. Search for core-image-minimal. Click the "customise" button, type a name for you new custom image and click on create custom image. (I named it core-image-minimal-libby)

6. Click on build custom image

I repeated steps 4-6 with core-image-lsb and I named it core-image-lsb-libby

EXPECTED OUTCOME: Image to start building
Comment 1 Michael Wood 2016-09-20 11:17:03 UTC
Unfortauntely a patch wasn't fully applied and the file to update the database schema was left out. The additional patch that is now merged should fix this http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0c1b8bf5494e0dcd9322623c5573ccc411891381
Comment 2 David Lopez Barriba 2016-10-25 15:51:39 UTC
Verified on 2.2 rc4 (M4)commit: 4b94b498e21aeba945fe7e72a6b7c4bb0314fb83
Works OK