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