Bug 840418 - ovirt-engine-backend [RACE]: java.lang.reflect.InvocationTargetException when removing vm and exporting it at the same time
ovirt-engine-backend [RACE]: java.lang.reflect.InvocationTargetException when...
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: 3.1.0
Assigned To: mkublin
Dafna Ron
Depends On:
  Show dependency treegraph
Reported: 2012-07-16 06:16 EDT by Dafna Ron
Modified: 2016-02-10 11:41 EST (History)
11 users (show)

See Also:
Fixed In Version: SI13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
log (142.56 KB, application/x-xz)
2012-07-16 06:16 EDT, Dafna Ron
no flags Details

  None (edit)
Description Dafna Ron 2012-07-16 06:16:21 EDT
Created attachment 598410 [details]

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):


How reproducible:


Steps to Reproduce:
1. create several vms
2. remove vm's and export vms right away
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
Comment 1 mkublin 2012-07-17 04:33:35 EDT
Comment 3 Dafna Ron 2012-07-30 08:41:36 EDT
verified on si12

Note You need to log in before you can comment on or make changes to this bug.