Remove debug text

This commit is contained in:
Joshua Boniface 2018-06-11 19:09:46 -04:00
parent a20aa76aeb
commit 47fb78f9df
2 changed files with 0 additions and 8 deletions

View File

@ -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')

View File

@ -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