<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9416</bug_id>
          
          <creation_ts>2016-04-07 12:02:50 +0000</creation_ts>
          <short_desc>rpm: tmpfile creation fails</short_desc>
          <delta_ts>2016-10-17 06:22:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Markus Lehtonen">markus.lehtonen</reporter>
          <assigned_to name="Markus Lehtonen">markus.lehtonen</assigned_to>
          <cc>bill.randle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60898</commentid>
    <comment_count>0</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-07 12:02:50 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61029</commentid>
    <comment_count>1</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-04-11 18:33:14 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61133</commentid>
    <comment_count>2</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-13 10:43:21 +0000</bug_when>
    <thetext>It shows all rpm output in the bitbake output. There&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61196</commentid>
    <comment_count>3</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-14 12:05:22 +0000</bug_when>
    <thetext>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...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66935</commentid>
    <comment_count>4</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-10-05 13:46:09 +0000</bug_when>
    <thetext>AFAIK, we haven&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67261</commentid>
    <comment_count>5</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-10-14 10:58:40 +0000</bug_when>
    <thetext>Reopening as we saw the problem, again</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67262</commentid>
    <comment_count>6</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-10-14 10:59:13 +0000</bug_when>
    <thetext>Patch sent for review:
https://patchwork.openembedded.org/patch/132925/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67282</commentid>
    <comment_count>7</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-10-17 06:22:31 +0000</bug_when>
    <thetext>Fix merged in master (and morty):
http://git.openembedded.org/openembedded-core/commit/?id=84de3283fa2a2908d367eb58953903ae685b0298</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>