Bug 10307

Summary: Not Null constraint when building a new custom image
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: Toaster default assignee <toaster>
Status: VERIFIED FIXED QA Contact: David Lopez Barriba <davidx.lopez.barriba>
Severity: normal    
Priority: Undecided CC: belen.barros.pena, jessica.zhang, jose.perez.carranza, michael.g.wood, stanciux.mihail
Version: 2.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
stack trace before logs none

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