Omer Frenkel has submitted this change and it was merged.
Change subject: core: fix remove stateless images flow in run vm
......................................................................
core: fix remove stateless images flow in run vm
when running a stateless vm, if stateless images already exist,
they are being deleted. this currently fails because RestoreStatelessVm cannot acquire
lock,
which already acquired on runVm.
this patch fix this by passing the lock to that command in the commandContext.
Change-Id: I29c1c0eec0d09e5b6d52938491afb9890dcb5ad2
Signed-off-by: Omer Frenkel <ofrenkel(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RestoreStatelessVmCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
2 files changed, 4 insertions(+), 2 deletions(-)
Approvals:
Omer Frenkel: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/6151
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I29c1c0eec0d09e5b6d52938491afb9890dcb5ad2
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>