Created attachment 755788 [details] log Description of problem: I tried to detach an inactive disk from a vm during powering up of a vm. the error user is getting is: Cannot detach Virtual Machine Disk. The VM status is illegal. I think that the phrasing of "vm Status is illegal" is incorrect and we should change the error message. Version-Release number of selected component (if applicable): sf17.2 How reproducible: 100% Steps to Reproduce: 1. create a vm with two disks and deactivate the second disk (not the boot disk) 2. run the vm 3. while vm is powering up --> try to detach the inactive disk Actual results: Cannot detach Virtual Machine Disk. The VM status is illegal. Expected results: vm status is not illegal, operation is illegal when vm is in powering up. Additional info: log 2013-06-02 12:09:39,049 WARN [org.ovirt.engine.core.bll.DetachDiskFromVmCommand] (ajp-/127.0.0.1:8702-2) CanDoAction of action DetachDiskFromVm failed. Reasons:VAR__ACTION__DETACH_ACTION_TO,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_VM_STAT US_ILLEGAL
The message should be changed for this specific use case to (as suggested by Cheryn): "Cannot detach Virtual Machine disk. The VM's status must be either Up or Down" Since the original message is used by several different commands in different scenarios and for different vm statuses - not always up/down (so the text cannot be overriden as it will wrongly influence all other cases), it's probably better to solve it generically by dynamically filling the status name for at least most of the use cases instead of cloning it just for this use case. However it will have a broader influence than just this text bug.
This bug was fixed as part of the fix to bug 1000068. Moving to ON_QA to verify.