Bug 1054175 - Missing storage allocation checks when running a stateless VM
Summary: Missing storage allocation checks when running a stateless VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.4
Hardware: Unspecified
OS: All
high
high
Target Milestone: ---
: 3.5.0
Assignee: Vered Volansky
QA Contact: Elad
URL:
Whiteboard: storage
Depends On: 1149809 1178022
Blocks: 960934
TreeView+ depends on / blocked
 
Reported: 2014-01-16 11:56 UTC by Allon Mureinik
Modified: 2016-02-10 19:44 UTC (History)
17 users (show)

Fixed In Version: ovirt-3.5.0_rc1
Doc Type: Bug Fix
Doc Text:
Clone Of: 960934
Environment:
Last Closed: 2014-10-17 12:35:54 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 30776 0 master MERGED core: Storage validation when running stateless VM Never
oVirt gerrit 30840 0 master MERGED core: Threshold validation for stateless VM Never
oVirt gerrit 30853 0 ovirt-engine-3.5 MERGED core: Extract Validator creation and apply usages Never
oVirt gerrit 30855 0 ovirt-engine-3.5 MERGED core: Storage validation when running stateless VM Never
oVirt gerrit 30856 0 ovirt-engine-3.5 MERGED core: Threshold validation for stateless VM Never

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.


Note You need to log in before you can comment on or make changes to this bug.