Created attachment 593226 [details] Log Description of problem: When I attache multiple bootable disks to VM, I get an error: “Error while executing action: Cannot attach Action to Virtual Machine Disk. Same action in progress” Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Create multiple floating bootable disks 2. Select check box all relevant disks 3. Press “OK” button Actual results: I get an error: “Error while executing action: Cannot attach Action to Virtual Machine Disk. Same action in progress” Expected results: Get an error: “Error while executing action: Cannot attach Action to Virtual Machine Disk. Same action in progress” Additional info: 2012-06-20 19:50:22,272 WARN [org.ovirt.engine.core.bll.AttachDiskToVmCommand] (pool-3-thread-49) CanDoAction of action AttachDiskToVm failed. Reasons:VAR__ACTION__ATTACH_ACTION_TO,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_OBJECT_LOCKED Full log attached
These is not a bug, you tried to attach to the same vm simenteniously couple of bootable disks, and one of them is failed, the message is because the race was prevented
English-wise, the error is strange. What is 'Cannot attach Action to Virtual Machine Disk.' ? The user did not attach an action, but a disk. The internals are insignificant. Also, either 'action' or 'Action' - be consistent. Lastly, "in progress" -> "is in progress" or "is already in progress".
Regards error message I am agree it is not exactly correct, please reopen bug
***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** Better bug handling of events .... ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** Actual results: If I add multiple bootable disks to VM in one action, I get ONLY this error: “Error while executing action: Cannot attach Action to Virtual Machine Disk. Same action in progress” and then, only one disk is attached. There is NO error: Error while executing action: Cannot attach Action to Virtual Machine Disk. Disk VM_Disk_001_A already marked as boot ------------------------------------------------ If I add multiple bootable disks to VM in two steps, I get this error: Error while executing action: Cannot attach Action to Virtual Machine Disk. Disk VM_Disk_001_A already marked as boot ------------------------------------------------ ------------------------------------------------ ------------------------------------------------ Expected results: Get an error: “Error while executing action: Cannot attach Action to Virtual Machine Disk. Same action in progress”
A vm should have 2 system disks. AFAIU this action should fail with appropriate error. The problem is with the error message. Since adding specific error message to the generic inmemory locks sounds like a bit too much to this phase, I would go with a better error message in the log file.
*** Bug 848793 has been marked as a duplicate of this bug. ***
Need to fix: "Cannot attach Action to" "Action" should be replaced with disk or whatever is relevant. and "Dettach Action from" Detach is with 1 't' and 'Action' here to should be replaced with something relevant.
A duplicate of bug 851198: https://bugzilla.redhat.com/show_bug.cgi?id=851198 *** This bug has been marked as a duplicate of bug 851198 ***