Bug 9844

Summary: Cancel build button does not work
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: Sujith H <sujith.h>
Status: VERIFIED WORKSFORME QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.2   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Toaster build cancel page screenshot none

Description Libertad 2016-06-28 20:34:24 UTC
DESCRIPTION:

After a build recipe has started the Cancel button does not work.

BUILD: 2.2_M1.rc2: 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098
ENVIRONMENT: Debian 4.3.0-0.bpo.1-amd64
STEPS TO REPRODUCE: 

1. Start toaster

2. Create a Project

3. Initiate build of a recipe

4. tail -f the logs

5. Wait till the recipe is at a 30% and logs show tasks running

6. Cancel the build and wait for 1 minute to see the UI refresh and indicate that build has been canceled.

7. After a minute refresh the UI, since it does not refresh by its self

8. You will see that the build is not canceled and after 5 minutes you will see tasks running on the logs.


EXPECTED OUTCOME: 

In the past when ever I canceled a project the UI refreshed immediately and build stopped. UI showed the proper state of BUILD CANCELED and button to rebuild appeared.
Comment 1 Sujith H 2016-07-04 07:44:35 UTC
The commit ID of toaster-next on which I am at is: d9c6c6e1a241913fae26bf97030965ef89b91b0f ( commit message: toaster: remove SSTATE_MIRRORS from projectconf)

Below are the steps I followed:

1) Started toaster

2) Created a Project

3) Triggered core-image-minimal build

4) tail -f logs ( did intermittently )

5) Waited till the progress reached 30% ( refreshed the page manually to confirm it reaches 30% ). Below was the status of log file before I triggered the cancel button:

NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/bzip2-native/1.0.6-r5/temp/log.do_populate_lic.14088
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/qemux86-poky-linux/depmodwrapper-cross/1.0-r0/temp/log.do_populate_lic.14025
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/all-poky-linux/run-postinsts/1.0-r9/temp/log.do_populate_lic.14193
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/bzip2/1.0.6-r5/temp/log.do_populate_lic.14237
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/glibc-initial/2.24-r0/temp/log.do_populate_lic.14058
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/bzip2-native/1.0.6-r5/temp/log.do_populate_lic.14088
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/all-poky-linux/run-postinsts/1.0-r9/temp/log.do_populate_lic.14193
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+a6a6f6e1e7-r12/temp/log.do_populate_lic.14188
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/opkg-native/1_0.3.2-r0/temp/log.do_populate_lic.14325
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/m4-native/1.4.17-r0/temp/log.do_populate_lic.14427
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/bzip2/1.0.6-r5/temp/log.do_populate_lic.14237
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/automake-native/1.15-r0/temp/log.do_populate_lic.14463
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/qemux86-poky-linux/v86d/0.1.10-r2/temp/log.do_populate_lic.14512
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/libxml2-native/2.9.4-r0/temp/log.do_populate_lic.14490
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/kmod-native/22+gitAUTOINC+42f32b8ae4-r0/temp/log.do_populate_lic.14527
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/opkg-native/1_0.3.2-r0/temp/log.do_populate_lic.14325
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/m4-native/1.4.17-r0/temp/log.do_populate_lic.14427
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/elfutils-native/0.166-r0/temp/log.do_populate_lic.14573
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/automake-native/1.15-r0/temp/log.do_populate_lic.14463
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/libxml2-native/2.9.4-r0/temp/log.do_populate_lic.14490
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/qemux86-poky-linux/v86d/0.1.10-r2/temp/log.do_populate_lic.14512
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/kmod-native/22+gitAUTOINC+42f32b8ae4-r0/temp/log.do_populate_lic.14527
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/gperf-native/3.0.4-r0/temp/log.do_populate_lic.14646
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/libffi-native/3.2.1-r0/temp/log.do_populate_lic.14713


6) Cancelled the build and followed the log:

NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/all-poky-linux/update-rc.d/0.7-r5/temp/log.do_populate_lic.17932
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/libx11-native/1_1.6.3-r0/temp/log.do_populate_lic.17883
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/initscripts/1.0-r155/temp/log.do_populate_lic.18094
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/libsdl-native/1.2.15-r3/temp/log.do_populate_lic.18044
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/x86_64-linux/alsa-lib-native/1.1.1-r0/temp/log.do_populate_lic.18143
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/sysvinit/2.88dsf-r14/temp/log.do_populate_lic.17991
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/initscripts/1.0-r155/temp/log.do_populate_lic.18094
NOTE: Logfile for task /home/sujith/test-poky/build-toaster-2/tmp/work/i586-poky-linux/kmod/22+gitAUTOINC+42f32b8ae4-r0/temp/log.do_populate_lic.18203
NOTE: Sending SIGTERM to remaining 8 tasks
NOTE: Tasks Summary: Attempted 646 tasks of which 24 didn't need to be rerun and all succeeded.
NOTE: No package dependencies created
NOTE: No package dependencies created
WARNING: KeyError in save_target_file_information'dirs' 
NOTE: Build exited with errorcode 0
NOTE: Build cancelled
2016-07-04 07:32:10,403 WARNING Invalid state change requested: Cannot go from cancelling to completed - ignoring request
NOTE: ToasterUI build done, brbe: 1:1
ERROR: Command execution failed: Forced shutdown
NOTE: ToasterUI build done, brbe: None
WARNING: Return value is 0

7) As per logs the build is cancelled. I tried to refresh the page and the build status was the same.
Comment 2 Sujith H 2016-07-04 07:45:42 UTC
Created attachment 3266 [details]
Toaster build cancel page screenshot

Attaching screenshot of build cancelled page.
Comment 3 Sujith H 2016-07-05 09:14:27 UTC
Marking this bug as resolved-works for me. As I wasn't able to reproduce it.
Comment 4 Libertad 2016-07-14 19:36:14 UTC
was not able to reproduce the bug.