More debug

This commit is contained in:
Joshua Boniface 2018-06-11 03:11:43 -04:00
parent 6d8825ef57
commit 1180f1a249
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class VMInstance:
ansiiprint.echo('Migrating VM to hypervisor "{}"'.format(self.hypervisor), '{}:'.format(self.domuuid), 'i')
migrate_ret = self.live_migrate_vm(self.hypervisor)
print(migrate_ret)
if migrate_ret != 0:
ansiiprint.echo('Could not live migrate VM; shutting down to migrate instead', '{}:'.format(self.domuuid), 'e')
self.shutdown_vm()
@ -206,6 +207,7 @@ class VMInstance:
self.inreceive = True
while True:
self.dom = self.lookupByUUID(self.domuuid)
print(self.state)
if self.dom == None and self.state == 'migrate':
time.sleep(0.2)
continue