Bug 846297 - ovirt-engine-backend [Quota]: I can define a quota larger than my actual domain size but cannot create a thin provision disk
Summary: ovirt-engine-backend [Quota]: I can define a quota larger than my actual doma...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: ofri
QA Contact: Dafna Ron
URL:
Whiteboard: sla
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-07 11:28 UTC by Dafna Ron
Modified: 2016-02-10 20:15 UTC (History)
9 users (show)

Fixed In Version: si17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 19:58:32 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log (291.05 KB, application/x-xz)
2012-08-07 11:28 UTC, Dafna Ron
no flags Details

Description Dafna Ron 2012-08-07 11:28:50 UTC
Created attachment 602721 [details]
log

Description of problem:

I can define a 100G quota while my actual domain size is 50G but I cannot create thin provision disks so if I create a disk which is 80G as thin and my quota is 100G I will fail on lnot enough resources error (since the quota calculation on disk space are done as preallocated). 

CanDoAction: 
Cannot add Virtual Machine Disk. Quota has no sufficient storage resources.


Version-Release number of selected component (if applicable):

si13

How reproducible:

100%

Steps to Reproduce:
1. create a 50G domain and put a 100G quota
2. create a vm with thin provision disk which is 80G
3.
  
Actual results:

we would fail to create the disk with not enough disk space error because we are calculating the disk space as preallocated once we put quota in enforce. 

Expected results:

we should either block over extending the quota and work completely as preallocated (only allow extend when we actually add more storage). or we should allow the creation of a thin provision disk. 

Additional info: full backend log

Comment 1 ofri 2012-09-03 14:02:47 UTC
This was probably handled in the quota calculation patch (cant reproduce in current downstream). Please retest and reopen if needed.

Comment 2 Dafna Ron 2012-09-09 14:31:55 UTC
verified on si17
I was able to create a thinprovision disk on a 50GB storage and a 100GB quota.


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