Bug 8284

Summary: do_rootfs fails for multilib with opkg unable to remove packages
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Beth Flanagan <elizabeth.flanagan>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Undecided CC: elizabeth.flanagan, meta.mr.watcher, meta.watcher, richard.purdie
Version: 1.7.3   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Beth Flanagan 2015-09-11 11:28:29 UTC
From: https://autobuilder.yoctoproject.org/main/builders/nightly-multilib/builds/488/steps/BuildImages_1/logs/stdio

machine: debian7

ERROR: Unable to remove packages. Command '['/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/bin/opkg', '--volatile-cache', '-f', '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/opkg.conf', '-o', '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/rootfs', '--force_postinstall', '--prefer-arch-to-version', '--force-maintainer', '--force-overwrite', '--force-depends', 'remove', 'run-postinsts']' returned 255:
Collected errors:
 * opkg_lock: Could not create lock file /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/rootfs//var/run/opkg.lock: Permission denied.

ERROR: Function failed: do_rootfs
Comment 1 Beth Flanagan 2015-09-11 12:12:59 UTC
This is also occurring in nightly-ipk but on centos7-a:

ERROR: Unable to remove packages. Command '['/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/build/tmp/sysroots/x86_64-linux/usr/bin/opkg', '--volatile-cache', '-f', '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/opkg.conf', '-o', '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs', '--force_postinstall', '--prefer-arch-to-version', '--force-depends', 'remove', 'base-passwd', 'run-postinsts']' returned 255:
Collected errors:
 * opkg_lock: Could not create lock file /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs//var/run/opkg.lock: Permission denied.

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.23525
NOTE: recipe core-image-minimal-1.0-r0: task do_rootfs: Failed
ERROR: Task 49 (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
Comment 2 Richard Purdie 2015-09-12 22:10:04 UTC
This was caused by the populate_volatiles patch which enabled it being run uncondiaonally at do_rootfs time. The patch was dropped from -next.