Change in ovirt-hosted-engine-ha[master]: agent: clean vdsm state if vm dies unexpectedly

gpadgett at redhat.com gpadgett at redhat.com
Thu Oct 10 11:20:04 UTC 2013


Greg Padgett has submitted this change and it was merged.

Change subject: agent: clean vdsm state if vm dies unexpectedly
......................................................................


agent: clean vdsm state if vm dies unexpectedly

If the hosted engine vm dies unexpectedly, vdsm will hold onto some
queryable state for the vm.  An attempt to start the vm will be met
with an error, "Virtual machine already exists".

To prevent this, check for VM state and attempt to clean it before a
startup attempt by using the vdsm 'destroy' verb.

Change-Id: I52c8f41c28fbc1942a8b392b275359df57c1b5ef
Bug-Url: https://bugzilla.redhat.com/1013638
Signed-off-by: Greg Padgett <gpadgett at redhat.com>
---
M ovirt_hosted_engine_ha/agent/hosted_engine.py
1 file changed, 46 insertions(+), 0 deletions(-)

Approvals:
  Greg Padgett: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/19874
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I52c8f41c28fbc1942a8b392b275359df57c1b5ef
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <gpadgett at redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <didi at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list