Bug 913551 - Possible to create template disk without quota assigned in enforced mode via API.
Summary: Possible to create template disk without quota assigned in enforced mode via ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.2.0
Assignee: ofri
QA Contact: Ondra Machacek
URL:
Whiteboard: sla
Depends On:
Blocks: 917401 922807 948448
TreeView+ depends on / blocked
 
Reported: 2013-02-21 13:15 UTC by Ondra Machacek
Modified: 2016-02-10 20:14 UTC (History)
12 users (show)

Fixed In Version: sf10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine.log (30.46 KB, application/octet-stream)
2013-02-21 13:15 UTC, Ondra Machacek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 12394 0 None None None Never
oVirt gerrit 12618 0 None None None Never

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


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