Red Hat Bugzilla – Bug 1258389
Updating the list of pinned hosts for a VM via REST does not work
Last modified: 2016-02-10 14:19:29 EST
Description of problem:
When updating the list of pinned hosts of a VM, removing hosts is not possible. You can only add hosts.
Version-Release number of selected component (if applicable):
Create a vim with a list of pinned hosts. Then fetch it though REST, remove one host from the host list and PUT it, to update the VM.
Steps to Reproduce:
1. Create VM with multiple pinned hosts
2. Fetch the JSON/XML via REST
3. Remove the host
In the database and the UI, you still see that all hosts are selected as before the config update via REST.
The response from the REST endpoint should still show all hosts like before the PUT, because this is a value which only gets effective afer a VM restart. But you should see in the UI, that the host is no longer selected, and the VM needs a restart.
verified on : Red Hat Enterprise Virtualization Manager Version: 3.6.2-0.1.el6
verifcation steps :
1. create VM with pinning to multiple hosts
PUT Request to : https://<engine ip>/ovirt-engine/api/vms/<vm_id>
<host id="<host_id_you want_keep>"/>
oVirt 3.6.0 has been released, closing current release