Bug 14003 - Intermittent GPG selftest failure
Summary: Intermittent GPG selftest failure
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.3 M1
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2020-08-12 02:31 UTC by Richard Purdie
Modified: 2020-12-10 16:06 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2020-08-12 02:31:23 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1153

Seen on ubuntu2004-ty-2, was one of Bruce's kernel builds but likely unrelated to that.

2020-08-12 06:06:06,997 - oe-selftest - INFO - ======================================================================
2020-08-12 06:06:06,997 - oe-selftest - INFO - FAIL: runtime_test.TestImage.test_testimage_dnf (subunit.RemotedTestCase)
2020-08-12 06:06:06,997 - oe-selftest - INFO - ----------------------------------------------------------------------
2020-08-12 06:06:06,997 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/runtime_test.py", line 159, in test_testimage_dnf
    runCmd('gpg --batch --homedir %s --import %s' % (self.gpg_home, os.path.join(signing_key_dir, 'key.secret')), native_sysroot=get_bb_var("RECIPE_SYSROOT_NATIVE", "gnupg-native"))
  File "/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 201, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'gpg --batch --homedir /tmp/oeqa-feed-sign-u5hn7fla --import /home/pokybuild/yocto-worker/oe-selftest/build/build-st-2674944/meta-selftest/files/signing/key.secret' returned non-zero exit status 2:
gpg: keybox '/tmp/oeqa-feed-sign-u5hn7fla/pubring.kbx' created
gpg: /tmp/oeqa-feed-sign-u5hn7fla/trustdb.gpg: trustdb created
gpg: key 7B31316B5D64AD52: public key "testuser (nocomment) <testuser@testemail.com>" imported
gpg: can't connect to the agent: IPC connect call failed
gpg: error getting the KEK: No agent running
gpg: error reading '/home/pokybuild/yocto-worker/oe-selftest/build/build-st-2674944/meta-selftest/files/signing/key.secret': No agent running
gpg: import from '/home/pokybuild/yocto-worker/oe-selftest/build/build-st-2674944/meta-selftest/files/signing/key.secret' failed: No agent running
gpg: Total number processed: 0
gpg:               imported: 1
gpg:       secret keys read: 1
Comment 1 Steve Sakoman 2020-08-19 08:40:41 UTC
Seen again on dunfell build (fedora31-ty-1 worker):

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/1248
Comment 2 Richard Purdie 2020-08-20 00:20:54 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1266

master-next build, centos8-ty-2 worker

ERROR: core-image-full-cmdline-1.0-r0 do_rootfs: GPG exited with code 2: gpg: can't connect to the agent: IPC connect call failed
gpg: keydb_search failed: No agent running
gpg: skipped "testuser": No agent running
gpg: signing failed: No agent running
Comment 3 Joshua Watt 2020-08-24 18:06:19 UTC
The GPG home path is clearly list in the command (/tmp/oeqa-feed-sign-u5hn7fla) and is no where near the path limit, so I don't think that is the issue
Comment 4 Randy MacLeod 2020-11-19 15:42:26 UTC
Lowered to medium, raise to M+ if seen again.
Comment 5 Randy MacLeod 2020-12-10 16:06:02 UTC
Not seen in a while. Reopen if you see this issue.