Red Hat Bugzilla – Bug 833420
[Storage] Wrong CanDoAction message when trying to remove template's disk from the DISKS tab (UI get stuck because of it)
Last modified: 2016-02-10 11:42:45 EST
[Storage] Can't remove template's disk from the DISKS tab because engine sends wrong message to the UI. UI get stuck because of it.
When trying to remove disk that belongs to template from the DISKS tab UI get stuk. it happens because the engine sends to UI wrong CanDoAction.
Here is the engine log.
2012-06-19 15:18:07,056 WARN [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp--0.0.0.0-8009-20) CanDoAction of action RemoveDisk failed. R
2012-06-19 15:18:07,058 INFO [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp--0.0.0.0-8009-20) Lock freed to object EngineLock [exclusive
Locks= key: 6905226d-9b64-4ea4-ab7e-f5aa62e0359f value: DISK
, sharedLocks= key: e7167039-9101-45ba-8365-1b905efd6a7b value: TEMPLATE
The storage domain is OK. CanDoAction should be can't remove last tepmplate's disk.
How to reproduce:
2.Create template from this VM.
3.Go to disks tab and try to remove disk that belongs to template.
I didn't managed to reproduce the froze GUI bug on the master (I assume it is already fixed in the GUI - derez can you please verify it)
Regarding the wrong message, GUI should send the engine the storage id which the disk are meant to be removed from.
The storage id the engine gets from the GUI now is null.
Probably the suggested solution is that GUI will send a storage id list for all the storages the disk should be removed from.
Template disk removal should be disabled from Disks main-tab.
The problem still exist in si7.
*** Bug 828721 has been marked as a duplicate of this bug. ***