Bug 9416 - rpm: tmpfile creation fails
Summary: rpm: tmpfile creation fails
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M4
Assignee: Markus Lehtonen
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-07 12:02 UTC by Markus Lehtonen
Modified: 2016-10-17 06:22 UTC (History)
6 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 Markus Lehtonen 2016-04-07 12:02:50 UTC
The RPM signing test in oe-selftest sometimes fails because of a failure in tempfile creation. This is a very rare occurrence and only seen in autobuilder, so far.

The interesting build log snippet is:
ERROR: ed-1.9-r0 do_package_write_rpm: Function failed: Failed to sign RPM packages: error: rpmTempFile failed

It would seem to indicate some kind of race condition inside rpmTempFile.
Comment 1 Bill Randle 2016-04-11 18:33:14 UTC
If the rpm log file for the failure were available, it might provide additional clues as to what is happening, as in some cases the error message there includes the full pathname of the temp file it is trying to create. It appears that the rpm log ends up as part of the log.do_package_write_rpm file.
Comment 2 Markus Lehtonen 2016-04-13 10:43:21 UTC
It shows all rpm output in the bitbake output. There's no other rpm log, same output will be shown in log.do_package_write_rpm. But you have a good point in that no other error message is shown which narrows the possible points of failure.

I've been trying to reproduce this without any success. Probably the way to try to solve is to add more (and more verbose) error messages and try to determine the cause from the log of next failed oe-selftest.
Comment 3 Markus Lehtonen 2016-04-14 12:05:22 UTC
A patch for more detailed error messages was merged in
http://git.openembedded.org/openembedded-core/commit/?id=aba432ea3ada509b24075c159081e8f0f942c308

This will hopefully give more details when it fails the next time. I suspect that the tmpdir initialization somehow fails...
Comment 4 Markus Lehtonen 2016-10-05 13:46:09 UTC
AFAIK, we haven't seen this problem since April. So it seems to be VERY hard to reproduce. Closing it for now. Please re-open if we see the problem, again.
Comment 5 Markus Lehtonen 2016-10-14 10:58:40 UTC
Reopening as we saw the problem, again
Comment 6 Markus Lehtonen 2016-10-14 10:59:13 UTC
Patch sent for review:
https://patchwork.openembedded.org/patch/132925/
Comment 7 Markus Lehtonen 2016-10-17 06:22:31 UTC
Fix merged in master (and morty):
http://git.openembedded.org/openembedded-core/commit/?id=84de3283fa2a2908d367eb58953903ae685b0298