From 76e99b6e87c6ce37356be82584e864188a2c502a Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 15:46:20 -0400 Subject: [PATCH] Set state back to start in both migrate fail cases --- VMInstance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index ef1cf94a..0f414b06 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -81,8 +81,8 @@ class VMInstance: if dest_conn == None: raise except: - self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) print('Failed to open connection to qemu+ssh://%s/system' % target) + self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) return try: @@ -90,7 +90,8 @@ class VMInstance: if target_dom == None: raise except: - print('Could not migrate to the new domain') + print('Could not migrate to the new domain; forcing away uncleanly') + self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) self.stop_vm() self.thishypervisor.domain_list.remove(self.domuuid)