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

Bug 1054175

Summary: Missing storage allocation checks when running a stateless VM
Product: [Retired] oVirt Reporter: Allon Mureinik <amureini>
Component: ovirt-engine-coreAssignee: Vered Volansky <vered>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: high    
Version: 3.4CC: acanan, amureini, bugs, dfediuck, ebenahar, 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_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 960934 Environment:
Last Closed: 2014-10-17 12:35:54 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: 1149809, 1178022    
Bug Blocks: 960934    

Description Allon Mureinik 2014-01-16 11:56:08 UTC
+++ This bug was initially created as a clone of Bug #960934 +++

When a VM is run as stateless, temporary volumes are created for each disk leaf. These are their storage requirements:

      | File Domain                             | Block Domain
 -----|-----------------------------------------|-------------
 qcow | 1M (header size)                        | 1G
 -----|-----------------------------------------|-------------
 raw  | preallocated: disk capacity (getSize()) | disk capacity
      | thin (sparse): 1M                       | (there is no raw sparse on 
                                                   block domains)

Comment 1 Vered Volansky 2014-07-14 16:01:21 UTC
Also created are two temporary memory volumes.

Comment 2 Vered Volansky 2014-07-16 11:28:01 UTC
Disregard last comment.

Comment 3 Elad 2014-08-07 14:50:21 UTC
Stateless VM:

Block domain, preallocated, raw disk: 1GB was created when started the stateless VM

Block domain, sparse, cow disk: 1G was created when started the stateless VM

File domain, sparse, raw: 4K was created when started the stateless VM

File, preallocated, raw: 4K was created when started the stateless VM


Verified on ovirt-3.5 rc1:
vdsm-4.16.1-6.gita4a4614.el6.x86_64
ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch

Comment 4 Elad 2014-08-10 14:15:11 UTC
Tested that staring a stateless VM while there is not enough free space on the storage domain for the new volume to be created

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