Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1179688 - faulty storage allocation checks when adding a vm from template
faulty storage allocation checks when adding a vm from template
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
3.5.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.5.0
Assigned To: Vered Volansky
Kevin Alon Goldblatt
storage
: Regression
Depends On:
Blocks: 960934
  Show dependency treegraph
 
Reported: 2015-01-07 05:52 EST by Vered Volansky
Modified: 2016-02-10 14:23 EST (History)
12 users (show)

See Also:
Fixed In Version: org.ovirt.engine-root-3.5.0-30
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-02-15 04:15:11 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 36617 master MERGED core: Storage allocation validation fix on new VMs Never
oVirt gerrit 36686 ovirt-engine-3.5 MERGED core: Storage allocation validation fix on new VMs Never
Red Hat Product Errata RHBA-2015:0230 normal SHIPPED_LIVE Red Hat Enterprise Virtualization Manager 3.5.0-1 ASYNC 2015-02-16 14:50:27 EST

  None (edit)
Description Vered Volansky 2015-01-07 05:52:48 EST
Create a new VM and base it on a template in two methods, thinly provisioned or cloned.

1. When thin provisioning is chosen, AddVmCommand is called, and a VM is added with empty disks, thinly provisioned from the template.
Storage Allocation checks in this case should take into consideration that the new disks will always be SPARSE/COW, i.e., 1G on block domains, 1M on file domains, according to the tracker bug tables (bz960934).

2. When clone is chosen, AddVmFromTemplateCommand is called, and a VM is added with cloned disks, cloned from the template, where the regular validations for cloned disks should be made:

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


Verification should include a storage domain with and without enough space for  the vm (with disks).
Special care should be taken with the right verifications in these two specific flows.
In case of insufficient space a relevant CDA message should pop.
Comment 1 Allon Mureinik 2015-01-11 07:17:53 EST
Additional insight: In 3.5.0, before the patch referenced in the tracker, there was a faulty allocation check that took into consideration the size of the template's disk, instead of just a thin QCOW layer on top of it.

The meaning of this is that if the template uses preallocated disks, you must have enough space for another preallocated disk when adding a VM based on it, effectively killing the notion of over-committing storage.
Thus, marking as a REGRESSION.
Comment 2 Kevin Alon Goldblatt 2015-01-21 08:18:31 EST
Verified with v3.5 vt13.8
Comment 4 Eyal Edri 2015-02-15 04:15:11 EST
bugs were moved by ERRATA to RELEASE PENDING bug not closed probably due to errata error.
closing as 3.5.0 is released.

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