Add tick counting during graceful shutdown to forcibly stop if blocked

This commit is contained in:
2018-06-02 16:28:18 -04:00
parent b199039453
commit ea97b51edb
2 changed files with 11 additions and 2 deletions

View File

@ -97,7 +97,8 @@ class NodeInstance(threading.Thread):
while True:
# Toggle state management of all VMs
for domain, instance in self.s_domain.items():
instance.manage_vm_state()
if instance.inshutdown == False:
instance.manage_vm_state()
# Remove any non-running VMs from our list
for domain in self.domain_list: