From 915e592f5ab8604e2b9fc3598c92bd794f570320 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 16:10:59 -0400 Subject: [PATCH] Fix handling of force away --- VMInstance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 06bca623..7b680260 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -106,8 +106,9 @@ class VMInstance: raise except: print('Could not migrate to the new domain; forcing away uncleanly') - self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) self.stop_vm() + time.sleep(0.5) + self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) try: self.thishypervisor.domain_list.remove(self.domuuid)