Bug 11191

Summary: test_signing_packages failed on AB
Product: [QA/Testing] Build Testing Reporter: Jussi Kukkonen <jku>
Component: generalAssignee: Alexander Kanavin <alex.kanavin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: benjamin.esquivel, markus.lehtonen, ross.burton
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jussi Kukkonen 2017-03-20 13:57:35 UTC
This happened on a ross/mut (efee3c17d68) build (https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/218/steps/Running%20oe-selftest/logs/stdio). 

The issues is that rpmkeys call in the test failed with "import read failed(2)". I've run the test locally (with same commit) and it seems to work fine -- the keyfile is there and rpmkeys imports it without complaints. 


Assigning for now to Alexander because the branch contains fd04d16568 "verify that images can be created from signed packages" and CCing markus for 9a548edb0f0 "import rpm signing key to rpmdb".


Log:


======================================================================
FAIL [396.593s]: test_signing_packages (oeqa.selftest.signing.Signing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/signing.py", line 93, in test_signing_packages
    bitbake('core-image-minimal')
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 143, in bitbake
    return runCmd(cmd, ignore_status, timeout, **options)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 121, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'bitbake  core-image-minimal' returned non-zero exit status 1:

...

ERROR: core-image-minimal-1.0-r0 do_rootfs: Importing GPG key failed. Command '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/rpmkeys --root=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs --import /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot//etc/pki/rpm-gpg/RPM-GPG-KEY-2.2+snapshot-20170318' returned 1:
error: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot//etc/pki/rpm-gpg/RPM-GPG-KEY-2.2+snapshot-20170318: import read failed(2).

---
Comment 1 Ross Burton 2017-03-23 13:37:07 UTC
Merged in oe-core 74ea979044368dc28c24325e7e77471b70aa8fe8.