Created attachment 630853 [details] logs Description of problem: I was able to undo an image and export the vm at the same time. both actions succeeds and the vm's images are not locked during the export which allows me to create a second image/create a template/ remove snapshot/run the vm during the export vm action. Version-Release number of selected component (if applicable): si21.1 How reproducible: 100% Steps to Reproduce: 1. create a vm with snapshot and put vm in preview 2. undo preview + export the vm 3. Actual results: both actions succeed the vm is not locked during export and I can run the vm or perform other actions on its image during export. Expected results: we should not be able to run both actions at the same time if so, vm should still be locked so we cannot run other actions on vm. Additional info:vdsm and engine logs in attached log I managed to export the vm and create a template from it after running undo snapshot+export vm [root@blond-vdsg ~]# vdsClient -s 0 getAllTasksInfo 3d36637f-ebf2-455b-b907-f2cfef4618e1 : verb = moveImage id = 3d36637f-ebf2-455b-b907-f2cfef4618e1 e5fa1277-31e5-49ba-96e6-ef2f4e7ebf92 : verb = copyImage id = e5fa1277-31e5-49ba-96e6-ef2f4e7ebf92 as we can see the tasks are on the same img: Thread-8636::INFO::2012-10-21 14:39:11,819::logUtils::37::dispatcher::(wrapper) Run and protect: copyImage(sdUUID='7c1d9020-7cf4-446b-ab12-6fc4316f86e6', spUUID='907cb9eb-d662-4a17-a18e-25f36e41807c', vmUUID='', srcImgUUID='fe6100b2-e7b7-46bb-a407-ede6ea7f7c18', srcVolUUID='2a04dacc-befd-4b2b-8487-cd560e3d6cea', dstImgUUID='0b2198f5-8e44-41da-abdf-71a214e3e65f', dstVolUUID='0d1a09f8-5e41-48f5-b21a-91dcfdc73228', description='1', dstSdUUID='7c1d9020-7cf4-446b-ab12-6fc4316f86e6', volType=6, volFormat=5, preallocate=1, postZero='false', force='false') Thread-8617::INFO::2012-10-21 14:38:52,419::logUtils::37::dispatcher::(wrapper) Run and protect: moveImage(spUUID='907cb9eb-d662-4a17-a18e-25f36e41807c', srcDomUUID='7c1d9020-7cf4-446b-ab12-6fc4316f86e6', dstDomUUID='3beaf27a-9d64-49f5-9e4a-f4147cbbf6d9', imgUUID='fe6100b2-e7b7-46bb-a407-ede6ea7f7c18', vmUUID='', op=1, postZero='false', force='false')
http://gerrit.ovirt.org/#/c/10845/
http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=fea832c7cc9007971337cc2fe43dcc60c54d909a
verified on sf4 I was unable to export the vm while taking a snapshot, deleting a snapshot or undo preview.
3.2 has been released