Created attachment 598410 [details] log Description of problem: we can remove a vm and export it. in one vm we will probably fail on CanDoAction for vm has no disks (which shows that we are not locking this action in the first place) in multiple action we would get java.lang.reflect.InvocationTargetException and task will be sent to vdsm: root@orange-vdsd ~]# vdsClient -s 0 getAllTasksInfo e6b20376-0b8f-49ca-bae7-a8302596f259 : verb = createVolume id = e6b20376-0b8f-49ca-bae7-a8302596f259 Version-Release number of selected component (if applicable): si10 How reproducible: 100% Steps to Reproduce: 1. create several vms 2. remove vm's and export vms right away 3. Actual results: we have a race because both commands are sent and not blocked by locking mechanism Expected results: we should not be able to send both RemoveVm and ExportVm on the same object without one action failing on lock Additional info: full log
http://gerrit.ovirt.org/#/c/6362/
http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=c893a4d264d222c3eda3e096d5863c028463a115
verified on si12