From e48409b96aa7ca383519b39460ee0a21689fd0e5 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 18 Jun 2018 00:32:13 -0400 Subject: [PATCH] Fix up when this happens --- pvcd/VMInstance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pvcd/VMInstance.py b/pvcd/VMInstance.py index 63187d92..f2b9ba70 100644 --- a/pvcd/VMInstance.py +++ b/pvcd/VMInstance.py @@ -219,15 +219,14 @@ class VMInstance: ansiiprint.echo('Could not live migrate VM; shutting down to migrate instead', '{}:'.format(self.domuuid), 'e') self.shutdown_vm() time.sleep(1) - self.zk_conn.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) else: try: self.thishypervisor.domain_list.remove(self.domuuid) except ValueError: pass time.sleep(1) - self.zk_conn.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) + self.zk_conn.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) self.inmigrate = False # Receive the migration from another host (wait until VM is running)