Version: ovirt-engine-3.0.0_0001-1.2.fc16.x86_64 Scenario: 1. Create VM and run it 2. Delete it using ovirt-engine-sdk - it should fail since the VM is running, delete it again using ovirt-engine-sdk Results: Deletion fails since the second deletion can't aquire lock on the vm since the first deletion trial didn't free its lock on that VM. The first deletion trial ends with "Cannot remove VM. VM is running", the second deletion trial fails with "Cannot ${action} ${type}. Same action in progress" From engine.log: 2012-01-18 20:55:06,185 INFO [org.ovirt.engine.core.bll.LoginAdminUserCommand] (http--0.0.0.0-8443-5) Running command: LoginAdminUserCommand internal: false. 2012-01-18 20:55:06,216 INFO [org.ovirt.engine.core.bll.RemoveVmCommand] (http--0.0.0.0-8443-5) Lock Acquired to object EngineLock [exclusiveLocks= key: org.ovirt.engine.core.bll.RemoveVmCommand value: d19ce80f-5439-449d-bd86-6ecf24486b ef , sharedLocks= ] 2012-01-18 20:55:06,229 WARN [org.ovirt.engine.core.bll.RemoveVmCommand] (http--0.0.0.0-8443-5) CanDoAction of action RemoveVm failed. Reasons:VAR__ACTION__REMOVE,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_IS_RUNNING 2012-01-18 20:55:06,767 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http--0.0.0.0-8443-5) Operation Failed: [Cannot remove VM. VM is running.] 2012-01-18 20:55:06,772 INFO [org.ovirt.engine.core.bll.LogoutUserCommand] (http--0.0.0.0-8443-5) Running command: LogoutUserCommand internal: false. 2012-01-18 20:55:30,039 INFO [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-3) AsyncTaskManager::SetNewMap: The map contains now 1 tasks 2012-01-18 20:55:59,896 INFO [org.ovirt.engine.core.vdsbroker.UpdateVdsDynamicDataVDSCommand] (QuartzScheduler_Worker-55) START, UpdateVdsDynamicDataVDSCommand(vdsId = 8efa1844-41ff-11e1-8735-5bb79b759f28, vdsDynamic=org.ovirt.engine.co re.common.businessentities.VdsDynamic@4bb3b2f8), log id: 205de707 2012-01-18 20:55:59,907 INFO [org.ovirt.engine.core.vdsbroker.UpdateVdsDynamicDataVDSCommand] (QuartzScheduler_Worker-55) FINISH, UpdateVdsDynamicDataVDSCommand, log id: 205de707 2012-01-18 20:56:00,065 INFO [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-61) AsyncTaskManager::SetNewMap: The map contains now 0 tasks 2012-01-18 20:56:00,066 INFO [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-61) AsyncTaskManager::RemoveOldAndCleanedTasks: Cleared all tasks of pool 026a0bd0-5db0-4e34-8355-b91d9e7a5b8c. 2012-01-18 20:56:00,072 INFO [org.ovirt.engine.core.bll.AsyncTaskManager] (QuartzScheduler_Worker-61) AsyncTaskManager::RemoveOldAndCleanedTasks: could not find vds that is spm and non-operational. 2012-01-18 20:56:13,421 INFO [org.ovirt.engine.core.bll.LoginAdminUserCommand] (http--0.0.0.0-8443-4) Running command: LoginAdminUserCommand internal: false. 2012-01-18 20:56:13,458 INFO [org.ovirt.engine.core.bll.LogoutUserCommand] (http--0.0.0.0-8443-4) Running command: LogoutUserCommand internal: false. 2012-01-18 20:56:13,687 INFO [org.ovirt.engine.core.bll.LoginAdminUserCommand] (http--0.0.0.0-8443-4) Running command: LoginAdminUserCommand internal: false. 2012-01-18 20:56:13,727 INFO [org.ovirt.engine.core.bll.RemoveVmCommand] (http--0.0.0.0-8443-4) Failed to Acquire Lock to object EngineLock [exclusiveLocks= key: org.ovirt.engine.core.bll.RemoveVmCommand value: d19ce80f-5439-449d-bd86-6ecf24486bef , sharedLocks= ] 2012-01-18 20:56:13,728 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http--0.0.0.0-8443-4) Operation Failed: [Cannot ${action} ${type}. Same action in progress.]
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.