Bug 11258 - rpm signing failed with gpg hanging
Summary: rpm signing failed with gpg hanging
Status: RESOLVED DUPLICATE of bug 12022
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 2.4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-28 12:00 UTC by Markus Lehtonen
Modified: 2017-11-16 15:28 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
autobuilder log (1.40 MB, text/x-log)
2017-03-28 12:00 UTC, Markus Lehtonen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Lehtonen 2017-03-28 12:00:44 UTC
Created attachment 3675 [details]
autobuilder log

oe-selftest got stuck at oeqa.selftest.signing.Signing.test_signing_packages on the debian-testing autobuilder slave. The reason being gpg which got stuck and had to be manually killed. Reading the log, it seens that gpg experienced some kind of race condition. For ecample these look point in that direction:
  gpg: waiting for lock (held by 56801) ...
  gpg: error opening lockfile '/tmp/oeqa-signing-t1axf_rq/gnupg_spawn_agent_sentinel.lock': No such file or directory

Full autobuilder log attached
Comment 1 Markus Lehtonen 2017-11-13 14:43:27 UTC
We haven't seen this in seven months (or have we?).

What do you think we should do? Just close it as "worksforme" or still leave it open. In the latter case the bug should be re-assigned to somebody else than me.
Comment 2 Leonardo Sandoval Gonzalez 2017-11-16 15:26:37 UTC
(In reply to comment #1)
> We haven't seen this in seven months (or have we?).
> 
> What do you think we should do? Just close it as "worksforme" or still leave
> it open. In the latter case the bug should be re-assigned to somebody else
> than me.

the problem is still present but for the moment we have the following on meta/classes/sign_rpm.bbclass

----
# Newer versions of gpg (at least 2.1.5 and 2.2.1) have issues when signing occurs in parallel
# so unfortunately the signing must be done serially. Once the upstream problem is fixed,
# the following line must be removed otherwise we loose all the intrinsic parallelism from
# bitbake.  For more information, check https://bugzilla.yoctoproject.org/show_bug.cgi?id=12022.
do_package_write_rpm[lockfiles] += "${TMPDIR}/gpg.lock"
---
Comment 3 Leonardo Sandoval Gonzalez 2017-11-16 15:28:42 UTC
This bug was reported earlier than bug 12022 but the latter has more details on the current status, thus  setting this one as duplicated.

*** This bug has been marked as a duplicate of bug 12022 ***