Bug 1412725

Summary: [API] Setting Custom Compatibility Version for a VM via REST api to a none/empty value is not working
Product: [oVirt] ovirt-engine Reporter: Sharon Gratch <sgratch>
Component: RestAPIAssignee: Sharon Gratch <sgratch>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, tjelinek
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2?
tjelinek: planning_ack?
tjelinek: devel_ack+
tjelinek: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1464819 (view as bug list) Environment:
Last Closed: 2017-07-31 09:48:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1464819    

Description Sharon Gratch 2017-01-12 16:00:48 UTC
Description of problem:
Trying to set the Custom Compatibility Version of a VM to an empty value via REST api (in order to take the Custom Compatibility Version value of the Cluster) is not supported, 

This should be done by running the following:
POST /ovirt-engine/api/vms/<vmid>
<vm>
    <custom_compatibility_version/>
</vm>

but it fails with an error: 
<detail>
For correct usage, see: http://butterfly.usersys.redhat.com:8080/ovirt-engine/api/v4/model#services/vm-graphics-consoles/methods/add
</detail>
<reason>Request syntactically incorrect.</reason>

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

How reproducible:
100%

Steps to Reproduce:
1.Try to create a vm or edit a vm and set custom_compatibility_version attribute to an empty value:
<vm>
    <custom_comaptibility_version/>
</vm>

Actual results:
It failed with error:
<detail>
For correct usage, see: http://butterfly.usersys.redhat.com:8080/ovirt-engine/api/v4/model#services/vm-graphics-consoles/methods/add
</detail>
<reason>Request syntactically incorrect.</reason>

Expected results:
It should succeeded.

Comment 1 Sharon Gratch 2017-07-20 09:26:13 UTC
Tomas, this bug is a duplication of bug 1464819 and not dependency of it, right?
Therefore I think it can be closed. Please confirm...

Comment 2 Sharon Gratch 2017-07-31 09:48:36 UTC

*** This bug has been marked as a duplicate of bug 1464819 ***