From bb1d0c6c5b22b584e2e2845ca90cd44f28c9f454 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 22:50:52 -0400 Subject: [PATCH] Remove extra debugging --- NodeInstance.py | 6 +----- VMInstance.py | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index 2b69f48f..165638f0 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -124,7 +124,7 @@ class NodeInstance(): def flush(self): self.inflush = True ansiiprint.echo('Flushing node "{}" of running VMs'.format(self.name), '', 'i') - ansiiprint.echo('Domain list: ' + ', '.join(self.domain_list), '', 'i') + ansiiprint.echo('Domain list: {}'.format(', '.join(self.domain_list)), '', 'c') for dom_uuid in self.domain_list: most_memfree = 0 target_hypervisor = None @@ -144,10 +144,6 @@ class NodeInstance(): most_memfree = memfree target_hypervisor = hypervisor - print('{} {} {} {}'.format(hypervisor, memfree, most_memfree, target_hypervisor)) - - print('{} {}'.format(dom_uuid, target_hypervisor)) - if target_hypervisor == None: ansiiprint.echo('Failed to find migration target for VM "{}"; shutting down'.format(dom_uuid), '', 'e') transaction = self.zk.transaction() diff --git a/VMInstance.py b/VMInstance.py index 30caf75f..33e2adb4 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -243,15 +243,10 @@ class VMInstance: ansiiprint.echo('VM state change for "{}": {} {}'.format(self.domuuid, self.state, self.hypervisor), '', 'i') - print('{} got here'.format(self.domuuid)) - # Conditional pass one - If we're already doing something, bail out if self.instart == True or self.instop == True or self.inshutdown == True or self.inmigrate == True or self.inreceive == True: return 0 - print('{} got there'.format(self.domuuid)) - print('{} {}'.format(self.domuuid, running)) - # VM should be stopped if running == libvirt.VIR_DOMAIN_RUNNING and self.state == "stop" and self.hypervisor == self.thishypervisor.name: self.stop_vm()