Bug 7045 - Toaster project mode: toaster is building only qemux86 images after a qemux86 build is done
Summary: Toaster project mode: toaster is building only qemux86 images after a qemux86...
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: High major
Target Milestone: 1.8 M2
Assignee: Alexandru Damian
QA Contact: Ionut Chisanovici
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-12-09 10:48 UTC by Ionut Chisanovici
Modified: 2015-02-11 13:53 UTC (History)
5 users (show)

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


Attachments
wrong_core-image-minimal_genericx86-64 (262.32 KB, image/png)
2014-12-09 10:48 UTC, Ionut Chisanovici
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ionut Chisanovici 2014-12-09 10:48:14 UTC
Created attachment 2288 [details]
wrong_core-image-minimal_genericx86-64

Hi,

In a toaster project if user did a qemux86 build then toaster will build only qemux86 images despite the fact that user is changing the machine variable in project configurations to some other machine.

Steps to verify:

1. Lunch toaster in project mode: bitbake/bin/toaster
2. As asked, import toasterconf.json from meta-yocto/conf/
3. Create a new project named 'Test'
4. Do a core-image-minimal build with MACHINE="qemux84"
5. After build from step 4 is finished, change MACHINE var to "genericx86-64" in project configuration and save it.
6. Do a core-image-minimal build.

See below and attached:

sqlite> select * from orm_target_image_file;
file_name = /home/ionut/work/weekly/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20141209084212.rootfs.tar.bz2
target_id = 1
       id = 1
file_size = 132896453

file_name = /home/ionut/work/weekly/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20141209084212.rootfs.ext3
target_id = 1
       id = 2
file_size = 520085504

file_name = /home/ionut/work/weekly/poky/build/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20141209101540.rootfs.ext3
target_id = 2
       id = 3
file_size = 9223168

file_name = /home/ionut/work/weekly/poky/build/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20141209101540.rootfs.tar.bz2
target_id = 2
       id = 4
file_size = 2357893
sqlite> select * from orm_target where id=2;
             build_id = 2
               target = core-image-minimal
license_manifest_path = /home/ionut/work/weekly/poky/build/tmp/deploy/licenses/core-image-minimal-qemux86-20141209101540/
           image_size = 0
             is_image = 1
                   id = 2
sqlite> select * from orm_build where id=2;
     build_name = 201412091216
        outcome = 0
   completed_on = 2014-12-09 10:26:54.182048
    warnings_no = 6
 distro_version = 1.7
     started_on = 2014-12-09 10:16:05.379436
        machine = genericx86-64
     project_id = 1
      timespent = 648
bitbake_version = 1.25.0
cooker_log_path = /home/ionut/work/weekly/poky/build/tmp/log/cooker/genericx86-64/20141209101540.log
      errors_no = 0
             id = 2
         distro = poky
sqlite> select * from bldcontrol_brvariable;
    id = 1
req_id = 1
  name = MACHINE
 value = qemux86

    id = 2
req_id = 1
  name = DISTRO
 value = poky

    id = 3
req_id = 2
  name = MACHINE
 value = genericx86-64

    id = 4
req_id = 2
  name = DISTRO
 value = poky
sqlite> select * from bldcontrol_buildrequest;
      build_id = 1
       updated = 2014-12-09 09:54:12.484849
environment_id = 1
       created = 2014-12-09 08:42:10.665681
         state = 3
    project_id = 1
            id = 1

      build_id = 2
       updated = 2014-12-09 10:26:54.185753
environment_id = 1
       created = 2014-12-09 10:15:38.384166
         state = 3
    project_id = 1
            id = 2
sqlite> select * from orm_project;
           updated = 2014-12-09 08:40:57.254928
        release_id = 3
           user_id = 2
              name = test
           created = 2014-12-09 08:40:57.240226
 short_description = 
bitbake_version_id = 3
                id = 1

Cheers,
Ionut C
Comment 1 Alexandru Damian 2014-12-16 12:31:36 UTC
Pushed for review poky-contrib:adamian/20141215-development
Comment 2 Alexandru Damian 2015-01-09 11:33:39 UTC
Fixed in master.
Comment 3 Ionut Chisanovici 2015-01-21 09:26:10 UTC
Hi,

This issue is fixed and verified in 1.8 M2 RC1.

Cheers,
Ionut C