<?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>8000</bug_id>
          
          <creation_ts>2015-07-14 20:49:32 +0000</creation_ts>
          <short_desc>/tmp full sanity test isn&apos;t working</short_desc>
          <delta_ts>2015-09-09 11:12:06 +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>core</component>
          <version>1.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>52367</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-14 20:49:32 +0000</bug_when>
    <thetext>Tonight&apos;s run on the AB appears to have ran out of space in /tmp, but the /tmp-is-full detection didn&apos;t trigger:

https://autobuilder.yoctoproject.org/main/builders/nightly-arm64/builds/49/steps/BuildImages/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52368</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-14 20:52:26 +0000</bug_when>
    <thetext>Looks like writing 1KB isn&apos;t enough:

Filesystem                             Size  Used Avail Use% Mounted on
/dev/dm-0                              9.1G  8.6G  4.0K 100% /

We should probably write a block worth of data.  Block size can be fetching using statvfs (stat -f -c %s /tmp) from the shell, python has os.statvfs IIRC)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52373</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-14 22:06:50 +0000</bug_when>
    <thetext>Better idea - rip the test out and use the disk monitoring support instead.  Totally forgot that existed...

From local.conf:

#
# Disk Space Monitoring during the build
#
# Monitor the disk space during the build. If there is less that 1GB of space or less
# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
# shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort
# of the build. The reason for this is that running completely out of space can corrupt
# files and damages the build in ways which may not be easily recoverable.
BB_DISKMON_DIRS = &quot;\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K&quot;

Adding a pair of entries for /tmp (100mb/10mb?) seems like a sensible solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52414</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-07-15 19:30:13 +0000</bug_when>
    <thetext>Sent patches for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52518</commentid>
    <comment_count>4</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-07-22 13:54:52 +0000</bug_when>
    <thetext>This bug has been fixed with commits:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9f87dcf3a3adf0b215b59eac854d372216c9dc0d

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0a5f2bc3e2e2f8538e1c3e6602ecb90139e821d0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53871</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-09 11:12:06 +0000</bug_when>
    <thetext>verified on master db92bc23880794be77373b0f2d8c26279dcecb84; 

I modified the values here BB_DISKMON_DIRS -  &quot;ABORT,/tmp,2000M,700K&quot; in order to exceed the values on my machine 
(tmpfs                    1.9G  352K  1.9G   1% /tmp); 

Space monitoring detected: 

WARNING: The free inode of /tmp (tmpfs) is running low (479.841K left)
ERROR: Immediately abort since the disk space monitor action is &quot;ABORT&quot;!


WARNING: The free space of /tmp (tmpfs) is running low (1.874GB left)
ERROR: Immediately abort since the disk space monitor action is &quot;ABORT&quot;!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>