Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1053747

Summary: Faulty storage allocation checks when exporting a VM
Product: [Retired] oVirt Reporter: Allon Mureinik <amureini>
Component: ovirt-engine-coreAssignee: Vered Volansky <vered>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: high Docs Contact:
Priority: medium    
Version: 3.4CC: acanan, amureini, bugs, dfediuck, eedri, gklein, iheim, jkt, lpeer, nlevinki, obasan, rbalakri, Rhev-m-bugs, scohen, vered, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: All   
Whiteboard: storage
Fixed In Version: ovirt-3.5.0_rc3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1053746
: 1136717 (view as bug list) Environment:
Last Closed: 2014-10-17 12:43:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 960934, 1136717    

Description Allon Mureinik 2014-01-15 17:26:38 UTC
+++ This bug was initially created as a clone of Bug #1053746 +++

+++ This bug was initially created as a clone of Bug #1053733 +++

+++ This bug was initially created as a clone of Bug #960934 +++

The storage requirements for each disk in the exported VM:
(note that an export domain can only be a file domain)

 qcow | preallocated : 1.1 * disk capacity      
      | sparse: 1.1 * min(used ,capacity)       
 -----|-----------------------------------------
 raw  | preallocated: disk capacity             
      | sparse: min(used,capacity)

Comment 1 Sandro Bonazzola 2014-10-17 12:43:17 UTC
oVirt 3.5 has been released and should include the fix for this issue.

Comment 2 Vered Volansky 2014-10-19 11:30:42 UTC
Exporting disks with snapshots can be done either with the snapshots as is, or with the snapshots collapsed. For the latter the table from comment#0 applies.
For the first case (non-collapsed) the following table applies:

 qcow | 1.1 * used space            
 -----|-----------------------------
 raw  | preallocated: disk capacity 
      | sparse: used space          

When verifying this bug both cases should be verified, positive and negative tests: Verify against a storage domain with and without enough space - just about the needed/excess space for the disks. Verify it succeeds when there's enough space and fails on CDA when it doesn't.

Threshold should also be verified on this bug.

If a VM has memory volumes, their space should also be taken into consideration (for every snapshot).
The metadata volume's size is negligible (10KB) and is always Cow, Sparse.
The memory volume's size varies, is always RAW, and is Sparse for file domains and Preallocated for block domains.