Bug 913551

Summary: Possible to create template disk without quota assigned in enforced mode via API.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ondra Machacek <omachace>
Component: ovirt-engine-restapiAssignee: ofri <omasad>
Status: CLOSED CURRENTRELEASE QA Contact: Ondra Machacek <omachace>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dfediuck, dyasny, gchaplik, hateya, iheim, jmontleo, mpastern, oramraz, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: sf10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 917401, 922807, 948448    
Attachments:
Description Flags
engine.log none

Description Ondra Machacek 2013-02-21 13:15:23 UTC
Created attachment 700499 [details]
engine.log

Description of problem:
Possible to create template disk without quota assigned in enforced mode via API.

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

How reproducible:
always

Steps to Reproduce:
1. Create quota q1 and set DC to enforce mode.
2. Create vm with disk.
3. Via API create template from vm.
  
Actual results:
Template is created and template disk does not have quota assigned.

Expected results:
Fail, need to specify quota for disk. Or by default add same as vm has?

Additional info:
Note that quota for template is assigned, but not for template disk.

Template was created like this:
curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Filter: $filter" -d "<template><name>template</name><vm id=\"$vm_id\"/></template>" -u $U https://url/api/templates

Comment 2 ofri 2013-03-05 11:36:35 UTC
After reopened - added a second set of External Trackers to the new patch: 12618

Comment 3 Jason Montleon 2013-03-09 09:35:57 UTC
The opposite seems to be true as well. Creating a VM via the API from a template and setting a new quota for the disk seems to get ignored. Instead the quota of the template disk is used.

Comment 4 Ondra Machacek 2013-03-22 20:13:21 UTC
ok sf10

Comment 5 Itamar Heim 2013-06-11 09:47:15 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 09:47:32 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:56:45 UTC
3.2 has been released