Red Hat Bugzilla – Bug 1247144
Can't update storage domain via REST API in case that the storage domain's 'containsUnregisteredEntities' property is true
Last modified: 2016-02-10 13:22:37 EST
Description of problem:
In case that the property 'containsUnregisteredEntities' of a storage domain is true, one cannot update any field of the domain via the rest api.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Detach a storage domain that contains a vm disk from the dc (that will set 'containsUnregisteredEntities' to true).
2. Attach it to the dc.
3. Try to update any updatable property of this domain via the REST API. For example, its name:
Error code 400.
The message is:
Cannot edit Storage. Can only update the following fields: name, description, comment, wipe after delete, low space threshold, and critical space threshold.
One should be able to update the storage domain via the REST API.
This existed since 3.5.0. Proposing it for 3.5.5, but we need Aharon and Yaniv's input.
Patch was merged to master.
Idan - please backport to the ovirt-engine-3.5 branch.
Verified using the following versions:
rhevm-3.5.5-0.1.el6ev.noarch - running on Rhel6.7
vdsm-4.16.27-1.el7ev.x86_64 - running on Rhel7.1
1. VM with disk on SD1
2. detach SD1
3. attach SD1 again to the DC
4. try to set new SD name