<?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>2168</bug_id>
          
          <creation_ts>2012-03-23 16:03:30 +0000</creation_ts>
          <short_desc>HOB should check for available disk space</short_desc>
          <delta_ts>2012-08-08 06:47:34 +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>Hob</product>
          <component>hob</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P2)(QA Testing Completed)(Done) </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Bénard">eric</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19422</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Bénard">eric</who>
    <bug_when>2012-03-23 16:03:30 +0000</bug_when>
    <thetext>before starting a build so that the user gets warned that he may fill his disk and that the build will fail.
This suppose hob has a level of minimal disk space required depending on some options (sdk or no sdk, X11 or no X11 ...)
Else in a recent build several task failed and then I got :

Traceback (most recent call last):
  File &quot;/home/ebenard/OE-CORE/openembedded-core/bitbake/lib/bb/ui/hob.py&quot;, line 45, in event_handle_idle_func
    hobHandler.handle_event(event)
  File &quot;/home/ebenard/OE-CORE/openembedded-core/bitbake/lib/bb/ui/crumbs/hobeventhandler.py&quot;, line 168, in handle_event
    self.build.handle_event(event)
  File &quot;/home/ebenard/OE-CORE/openembedded-core/bitbake/lib/bb/ui/crumbs/runningbuild.py&quot;, line 212, in handle_event
    current = self.tasks_to_iter[(package, task)]
KeyError: (None, None)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23564</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-07-27 09:07:16 +0000</bug_when>
    <thetext>There is a feature named disk monitor in Yocto, and if you set BB_DISKMON_DIRS in your local.conf, when disk/inode space of the device which contains the monitored directory running low, the disk monitor will terminate the build and give warning message.

I update the disk monitor to fire event to tell UIs that the build is terminated, then when the spaces of disk or inode under the threshold set in BB_DISKMON_DIRS, the build will be teminated and hob show it to user.

The detail of BB_DISKMON_DIRS please check local.conf.extend</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23772</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-08-03 01:33:05 +0000</bug_when>
    <thetext>patch merged, yocto commit 6a293985b2db589c9fae777be00d3c20ed1ec49f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23877</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-08 06:47:34 +0000</bug_when>
    <thetext>verified on :
git info: 87ffccb5dc184375e8807834e3b9b08ada708105
git branch: poky/master
test env :
host :ubuntu 12.04 x86_64

free disk space of the host is 3.0GB.
1.set build environment
2. following line is added to &quot;conf/local.conf&quot;:
BB_DISKMON_DIRS = &quot;STOPTASKS,${TMPDIR},10G,100K&quot;
or 
BB_DISKMON_DIRS = &quot;ABORT,${TMPDIR},10G,100K&quot;

3.run &quot;hob&quot; in the build directory
 after &quot;Select a machine&quot; and &quot;Select a base image&quot; and click &quot;Build image&quot; button ,the hob will not build the image and popup &quot;Hob cannot build your image&quot; alert information.
 when click &quot;Edit image configruarion&quot; button,then click &quot;Build image&quot; button again,the same as the above will be met.

 when view the Log of hob ,&quot;the free space of rootfs is running low (2.971GB left)
&quot; info will be found.

no Traceback info is found in the &quot;hob&quot; command terminal.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>