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): 6c49fdbe66232cb188a83685dfff6584392275be How reproducible: 100% 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: http://localhost:8080/api/storagedomains/<sd_id> <storage_domain> <name>sd_new</name> </storage_domain> Actual results: 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. Expected results: One should be able to update the storage domain via the REST API. Additional info:
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 <storage_domain> <name>sd_new</name> </storage_domain> works fine