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 <gpadg...@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 <gpadg...@redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadg...@redhat.com>
Gerrit-Reviewer: Martin Sivák <msi...@redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <d...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to