From 39dce1cd93a18011a3fa63f8a5a5c87ba538c3f7 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 13:13:18 -0400 Subject: [PATCH] Have to do it on the sending size --- VMInstance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 9f3dacce..80b99d3b 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -194,6 +194,7 @@ class VMInstance: time.sleep(1) self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) else: + self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) try: self.thishypervisor.domain_list.remove(self.domuuid) except ValueError: @@ -206,7 +207,7 @@ class VMInstance: ansiiprint.echo('Receiving migration', '{}:'.format(self.domuuid), 'i') self.inreceive = True while True: - time.sleep(0.2) + time.sleep(0.5) self.state = self.zk.get('/domains/{}/state'.format(self.domuuid))[0].decode('ascii') self.dom = self.lookupByUUID(self.domuuid) print(self.state)