Some more debug and a little fix to the terminate check

This commit is contained in:
2018-06-11 22:05:36 -04:00
parent f843f294c9
commit 069696dbd4
2 changed files with 4 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class NodeInstance():
def flush(self):
self.inflush = True
ansiiprint.echo('Flushing node "{}" of running VMs'.format(self.name), '', 'i')
self.zk.set('/nodes/{}/domainstate'.format(self.name), 'flushed'.encode('ascii'))
ansiiprint.echo('Domain list: ' + ', '.join(self.domain_list), '', 'i')
for dom_uuid in self.domain_list:
most_memfree = 0
target_hypervisor = None
@ -157,6 +157,7 @@ class NodeInstance():
# Wait 2s between migrations
time.sleep(2)
self.zk.set('/nodes/{}/domainstate'.format(self.name), 'flushed'.encode('ascii'))
self.inflush = False
def unflush(self):