Bug 1312896

Summary: Update vm quota with name instead of Id does not work
Product: [oVirt] ovirt-engine Reporter: Artyom <alukiano>
Component: RestAPIAssignee: Doron Fediuck <dfediuck>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.6.3.3CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-06 11:37:30 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:

Description Artyom 2016-02-29 13:26:44 UTC
Description of problem:
When I update vm quota with:
<vm>
  <quota><name>quota_name</name></quota>
</vm>
Request succeed and show me 200, but vm stay with old quota.

Version-Release number of selected component (if applicable):
rhevm-restapi-3.6.3.2-0.1.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Change datacenter quota mode to audit
2. Choose quota test for vm
3. Try to change vm quota to test_1 via REST
<vm>
  <quota><name>test_1</name></quota>
</vm>

Actual results:
REST return status 200, but vm stay with old quota test

Expected results:
REST return status 200 and vm has quota test_1

Additional info:
same for vm disk

Comment 1 Juan Hernández 2016-02-29 14:40:32 UTC
I'm lowering the severity because this isn't a bug, but an enhancement. The quota name is just completely ignored, only the id is taken into account for this kind of updates.

Comment 2 Red Hat Bugzilla Rules Engine 2016-03-20 10:04:12 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 3 Doron Fediuck 2016-04-06 11:37:30 UTC
Closing old issues based on capacity.
Please re-open only if relevant and needed.