Remove some debug
This commit is contained in:
parent
1ab3145a76
commit
d77373bb21
|
@ -188,7 +188,6 @@ class VMInstance:
|
||||||
self.inmigrate = True
|
self.inmigrate = True
|
||||||
ansiiprint.echo('Migrating VM to hypervisor "{}"'.format(self.hypervisor), '{}:'.format(self.domuuid), 'i')
|
ansiiprint.echo('Migrating VM to hypervisor "{}"'.format(self.hypervisor), '{}:'.format(self.domuuid), 'i')
|
||||||
migrate_ret = self.live_migrate_vm(self.hypervisor)
|
migrate_ret = self.live_migrate_vm(self.hypervisor)
|
||||||
print(migrate_ret)
|
|
||||||
if migrate_ret != 0:
|
if migrate_ret != 0:
|
||||||
ansiiprint.echo('Could not live migrate VM; shutting down to migrate instead', '{}:'.format(self.domuuid), 'e')
|
ansiiprint.echo('Could not live migrate VM; shutting down to migrate instead', '{}:'.format(self.domuuid), 'e')
|
||||||
self.shutdown_vm()
|
self.shutdown_vm()
|
||||||
|
@ -212,7 +211,6 @@ class VMInstance:
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
self.state = self.zk.get('/domains/{}/state'.format(self.domuuid))[0].decode('ascii')
|
self.state = self.zk.get('/domains/{}/state'.format(self.domuuid))[0].decode('ascii')
|
||||||
self.dom = self.lookupByUUID(self.domuuid)
|
self.dom = self.lookupByUUID(self.domuuid)
|
||||||
print(self.state)
|
|
||||||
|
|
||||||
if self.dom == None and self.state == 'migrate':
|
if self.dom == None and self.state == 'migrate':
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue