Better output during migrations
This commit is contained in:
parent
4b85ce9462
commit
b5e8b1d45b
|
@ -155,7 +155,6 @@ class VMInstance:
|
||||||
print('>>> %s - Migrated successfully' % self.domuuid)
|
print('>>> %s - Migrated successfully' % self.domuuid)
|
||||||
except:
|
except:
|
||||||
dest_conn.close()
|
dest_conn.close()
|
||||||
print('>>> %s - Could not live migrate VM' % self.domuuid)
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
dest_conn.close()
|
dest_conn.close()
|
||||||
|
@ -168,7 +167,7 @@ class VMInstance:
|
||||||
print('>>> %s - Migrating VM to %s' % (self.domuuid, self.hypervisor))
|
print('>>> %s - Migrating VM to %s' % (self.domuuid, self.hypervisor))
|
||||||
migrate_ret = self.live_migrate_vm(self.hypervisor)
|
migrate_ret = self.live_migrate_vm(self.hypervisor)
|
||||||
if migrate_ret != 0:
|
if migrate_ret != 0:
|
||||||
print('>>> %s - Could not live migrate VM; forcing away' % self.domuuid)
|
print('>>> %s - Could not live migrate VM; shutting down instead' % self.domuuid)
|
||||||
self.shutdown_vm()
|
self.shutdown_vm()
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue