From b5e8b1d45bb7330374741e148fdd042eaff5d2f1 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 18:18:07 -0400 Subject: [PATCH] Better output during migrations --- VMInstance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index 0e712d1d..5129913d 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -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: