From 47fb78f9dfe110f387d1fdd4c9160cd8f927a2c3 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 19:09:46 -0400 Subject: [PATCH] Remove debug text --- NodeInstance.py | 6 ------ VMInstance.py | 2 -- 2 files changed, 8 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index 2d5baba2..b2c90bae 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -139,15 +139,9 @@ class NodeInstance(): continue memfree = int(self.zk.get('/nodes/{}/memfree'.format(hypervisor))[0].decode('ascii')) - print(hypervisor) - print(daemon_state) - print(domain_state) - print(memfree) - print(most_memfree) if memfree > most_memfree: most_memfree = memfree target_hypervisor = hypervisor - print('Here - ' + target_hypervisor) if target_hypervisor == None: ansiiprint.echo('Failed to find migration target for VM "{}"; shutting down'.format(dom_uuid), '', 'e') diff --git a/VMInstance.py b/VMInstance.py index d23a2402..fe217865 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -45,13 +45,11 @@ class VMInstance: # Watch for changes to the hypervisor field in Zookeeper @zk.DataWatch('/domains/{}/hypervisor'.format(self.domuuid)) def watch_hypervisor(data, stat, event=""): - print(data.decode('ascii')) self.manage_vm_state() # Watch for changes to the state field in Zookeeper @zk.DataWatch('/domains/{}/state'.format(self.domuuid)) def watch_state(data, stat, event=""): - print(data.decode('ascii')) self.manage_vm_state() # Get data functions