Don't go unhealthy for migrate/unmigrate VMs

This commit is contained in:
2020-01-08 17:36:17 -05:00
parent 23b1f6cb00
commit 9cab1c6eb5
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ def getClusterInformation(zk_conn):
vm_report_status = list(range(0, vm_count))
for index, vm in enumerate(vm_list):
vm_state = vm['state']
if vm_state != 'start' and vm_state != 'disable':
if vm_state not in ['start', 'disable', 'migrate', 'unmigrate']:
vm_healthy_status[index] = False
else:
vm_healthy_status[index] = True