Red Hat Bugzilla – Bug 851835
[rhvem][admin-portal] Unable to rename storage domain name in case of migrate master flow (or reconstruct)
Last modified: 2016-02-10 11:43:21 EST
Created attachment 607050 [details]
## Logs vdsm, rhevm, screen-shots
Description of problem:
Unable to rename storage domain name
Version-Release number of selected component (if applicable):
Verified on RHEVM 3.1 - SI15
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.298.el6_3.x86_64
Steps to Reproduce:
1. Edit storage domain
2. Rename storage domain name
Failed rename storage domain
Get an error: “Cannot edit Storage. Only Storage Domain name is updateable.
Succeed rename storage domain
Reproducible with iSCSI and NFS storage domain.
2012-08-26 11:33:13,714 WARN [org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommand] (ajp-/127.0.0.1:8009-10) [368d3694] CanDoAction of action UpdateStorageDomain failed. Reasons:VAR__ACTION__UPDATE,VAR__TYPE__STORAGE__DOMAIN,ERROR_CANNOT_CHANGE_STORAGE_DOMAIN_FIELDS
The flow to reproduce the bug is incomplete - in some scenarios this edit can work, see below.
Steps to reproduce:
1. Create a DC with two active SDs.
2. set the master to maintenance - both SDs will go down
3. Activate the SD that was not the master - it will force a reconstructions of the master metadata on this domain.
4. Try to edit the name of the SD from (3) - the error will appear.
In UpdateStorageDomainCommand, line 39, there is a check that only the name is changed.
This fails since the UI creates a new storage_domains object without the lastTimeUsedAsMaster property (defaults to 0), and the database version has it.
Merged upstream at commit #2abf376438ef81aeb4362a41ad4a512f7c29b32e
Change-Id for that commit, for easier tracking:
verified on SI17. managed to rename storage domain and extend lun.