From f032dbefac436b567f03e7afee9cf8796783dafe Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 16:33:53 -0400 Subject: [PATCH] Set the hypervisor back on a failed migrate --- VMInstance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 7e5e5efa..f2905f28 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -109,7 +109,8 @@ class VMInstance: if dest_conn == None: raise except: - print('>>> Failed to open connection to qemu+ssh://%s/system' % target) + print('>>> Failed to open connection to qemu+ssh://%s/system' % self.hypervisor) + self.zk.set(self.zkey + '/hypervisor', self.thishypervisor.name.encode('ascii')) self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) return