Better output during migrations

This commit is contained in:
Joshua Boniface 2018-06-06 18:18:07 -04:00
parent 4b85ce9462
commit b5e8b1d45b
1 changed files with 1 additions and 2 deletions

View File

@ -155,7 +155,6 @@ class VMInstance:
print('>>> %s - Migrated successfully' % self.domuuid)
except:
dest_conn.close()
print('>>> %s - Could not live migrate VM' % self.domuuid)
return 1
dest_conn.close()
@ -168,7 +167,7 @@ class VMInstance:
print('>>> %s - Migrating VM to %s' % (self.domuuid, self.hypervisor))
migrate_ret = self.live_migrate_vm(self.hypervisor)
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()
time.sleep(0.5)
else: