Remove debug text
This commit is contained in:
parent
a20aa76aeb
commit
47fb78f9df
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue