Bug 745181

Summary: iwhd needs filesystem space check
Product: [Retired] CloudForms Cloud Engine Reporter: Dave Johnson <dajohnso>
Component: iwhdAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED WONTFIX QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, dajohnso, deltacloud-maint, dgao, jrd, mitch, ssachdev, whayutin
Target Milestone: 1.0.2Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-21 19:01:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dave Johnson 2011-10-11 14:59:50 UTC
Description of problem:
==================================
Running a imagefactory build image and the system ran out of file system space.  Before the build process, image factory does a check for space but once the image is built, it copies the image into iwhd.  It is on the copy operation where the system ran out of space.  We should either check for double space initially before the build or add another space check before the copy operation.

Version-Release number of selected component (if applicable):
======================================================================
imagefactory-0.7.0-1.el6.noarch
imagefactory-jeosconf-ec2-fedora-0.1.0-1.el6.noarch
imagefactory-jeosconf-ec2-rhel-0.1.0-1.el6.noarch
iwhd-0.98.15.z3-2.el6.x86_64
oz-0.7.0-3.el6.noarch
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.el6.noarch

Comment 2 Steve Loranz 2011-10-19 15:09:07 UTC
This check should be done by iwhd.  imagefactory doesn't (and shouldn't) assume iwhd or any other component is on the same system or using the same storage.  imagefactory can really only be responsible  for itself.

Comment 3 Dave Johnson 2011-10-19 18:39:54 UTC
Fair enough, re-opening against image warehouse.

Basically a check is need in warehouse to ensure there is enough space on the filesystem before it accepts a image being copied into it otherwise we run the risk of filling up the file system and being left with a corrupted image.

Comment 4 wes hayutin 2012-01-12 16:52:08 UTC
adding to sprint tracker

Comment 5 wes hayutin 2012-01-18 18:33:30 UTC
k.. this is getting bumped to 1.1.

I will be opening a bug for iwhd guys to clearly document  disaster recovery steps. That will include recovery for out of space, corrupted images etc..

Comment 6 wes hayutin 2012-02-22 23:46:12 UTC
moving version to 1.0.0 .  version = found in version