Eli Mesika has submitted this change and it was merged.
Change subject: core: move VM status handling to VdsManager.
......................................................................
core: move VM status handling to VdsManager.
VMs get stuck in 'Unknown' state when power management is not working
Move the VM state change to 'UnKnown' done in
VdsNotRespondingTreatmentCommand::MoveVMsToUnknown to VdsManager code
The only change is that in order to prevent nested locks we should run
the call to destroyVmOnDestination(vm) method in a separate thread and
then we will have two independent locks.
Change-Id: I7304109b49a0fb8441f9fdc9aee6edb0c654ab0e
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=1064860
Signed-off-by: Eli Mesika <emesika(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsNotRespondingTreatmentCommand.java
M
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsManager.java
2 files changed, 65 insertions(+), 37 deletions(-)
Approvals:
Eli Mesika: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/28114
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7304109b49a0fb8441f9fdc9aee6edb0c654ab0e
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emesika(a)redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan(a)redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server