Bug 807405

Summary: Error when exporting VM - low disk space
Product: [Retired] oVirt Reporter: Martina Kollarova <mkollaro>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, amureini, dyasny, iheim, jhenner, michal.skrivanek, ncredi, ykaul
Target Milestone: ---   
Target Release: 3.3.4   
Hardware: Unspecified   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-12 12:24:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log
none
ovirt-engine-sdk code where this error happens
none
ovirt-engine-sdk code where this error happens none

Description Martina Kollarova 2012-03-27 17:18:43 UTC
Created attachment 573132 [details]
engine.log

Description of problem:

I create an export storage domain and activate it (status is 'active', no problem in that) and right after that, I try to export a VM into it. This is usually OK, but sometimes I get the error:

 'Cannot export VM. Low disk space on relevant Storage Domain.'

The storage has 177GB of free space (and 479GB used). 



Version-Release number of selected component (if applicable):
ovirt-engine version 3.0.0_0001, release 1.6.fc16
ovrit-engine-sdk - happens on both stable 1.5 version and fresh build from git


How reproducible:
About once in 20 tries.


Steps to Reproduce:
1. create and activate export storage domain
2. export VM
3. format and remove export storage
4. repeat a few times until error in 2nd step

  
Actual results:
Operation Failed: [Cannot export VM. Low disk space on relevant Storage Domain.]

Expected results:
VM exported

Additional info:
From engine.log:
2012-03-27 18:05:51,906 WARN  [org.ovirt.engine.core.bll.ExportVmCommand] (http--0.0.0.0-8443-8) CanDoAction of action ExportVm failed. Reasons:ACTION_TYPE_FAILED_DISK_SPACE_LOW,VAR__ACTION__EXPORT,VAR__TYPE__VM
2012-03-27 18:05:51,906 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http--0.0.0.0-8443-8) Operation Failed: [Cannot export VM. Low disk space on relevant Storage Domain.]

Comment 1 Martina Kollarova 2012-03-27 17:28:19 UTC
Created attachment 573140 [details]
ovirt-engine-sdk code where this error happens

This is the code where the error sometimes occurs. It is a test run by nosetest, first the setUpModule where the VM is created, then setUpExport that creates the export storage domain and then 'test_exportDeleteImportVM' which fails during the export (once in a while). (If it doesn't the storage gets formated and removed and the VM is removed too)

Comment 2 Martina Kollarova 2012-03-27 19:04:55 UTC
Created attachment 573153 [details]
ovirt-engine-sdk code where this error happens

Fixed small error in previous attachment (I accidentally left 'assert False' there) and removed non-important functions.

Comment 3 Itamar Heim 2012-12-12 12:24:39 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.