Bug 11914

Summary: gpg: signing failed due to lack of memory on nightly-oe-selftest
Product: [QA/Testing] Runtime Testing Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: generalAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: randy.macleod
Version: 2.4   
Target Milestone: 2.4 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Log taken from [1] none

Description Leonardo Sandoval Gonzalez 2017-08-08 21:38:21 UTC
Created attachment 3927 [details]
Log taken from [1]

AB build [1] is failing with following error:

NOTE: recipe shadow-securetty-4.2.1-r3: task do_package_write_rpm: Started
ERROR: base-passwd-3.5.29-r0 do_package_write_rpm: Function failed: Failed to sign RPM packages: gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: signing failed: Cannot allocate memory
gpg: signing failed: Cannot allocate memory
error: gpg exec failed (2)

Clearly suggesting that host machine is running out of memory and gpg is unable to sign the package.

Note also the WARNING, indicating another problem related to ownership.

[1] 
https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/431
Comment 1 Leonardo Sandoval Gonzalez 2017-08-08 22:02:33 UTC
Just realized that this is ross/mut so it may be invalid. Leaving as it is, so decision on its status is done at triage
Comment 2 Leonardo Sandoval Gonzalez 2017-08-21 18:56:05 UTC
There was a need to include file chunks, so the second patch fixing this issue

http://git.openembedded.org/openembedded-core/commit/?id=f7f78e73f1cd15f4233a231364b14438af758628