Bug 848300

Summary: ovirt-engone-backend [Quota]: creating thin provision template should only calculate the current disk space since the images are locked
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Doron Fediuck <dfediuck>
Status: CLOSED WONTFIX QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: dyasny, hateya, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-25 07:25:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-08-15 08:28:33 UTC
Created attachment 604548 [details]
log

Description of problem:

currently when I create a template from a vm with thin provision disk we calculate the preallocated space of the disk for the quota. 
since the template's images are locked and we cannot write to it we should calculate the actual size and not the vsize. 

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

si13.3

How reproducible:

100%

Steps to Reproduce:
1. create a 30GB quota and a vm with 20GB thin provision disk (actual size should be 1GB)
2. create a template
3.
  
Actual results:

we are failing on insufficient resources from quota

Expected results:

we should not fail since the template images are locked and we cannot write on them -> hence we should calculate actual size and not vsize for templates. 

Additional info: log

Comment 1 Itamar Heim 2013-02-25 07:25:07 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.