VMs on Dead Host should get status REQUESTED_START instead of REQUESTED_NEW

This commit is contained in:
ahmadbilalkhalid 2019-07-22 11:32:29 +05:00
parent eb015de8f1
commit 3739b299f1
1 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ def remaining_resources(host_specs, vms_specs):
return remaining
def get_suitable_host(etcd_client, vm_prefix, host_prefix, vm_specs):
vm_pool = VmPool(etcd_client, vm_prefix)
hosts = etcd_client.get_prefix(host_prefix, value_in_json=True)
@ -135,7 +136,7 @@ def dead_host_mitigation(client: Etcd3Wrapper, dead_hosts_keys):
)
for vm in vms_hosted_on_dead_host:
vm.value["host"] = ""
vm.value["status"] = "REQUESTED_NEW"
vm.value["status"] = "REQUESTED_START"
client.put(vm.key, vm.value, value_in_json=True)