mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
In case of Hyper-v ssvm/cpvm reboot takes time so made changes to handle this
This commit is contained in:
parent
937aee34ed
commit
5bddebb8fc
@ -208,12 +208,16 @@ def get_process_status(hostip, port, username, password, linklocalip, process, h
|
|||||||
process)
|
process)
|
||||||
|
|
||||||
# Double hop into router
|
# Double hop into router
|
||||||
timeout = 5
|
if str(hypervisor).lower() == 'hyperv':
|
||||||
|
timeout = 12
|
||||||
|
else:
|
||||||
|
timeout = 5
|
||||||
# Ensure the SSH login is successful
|
# Ensure the SSH login is successful
|
||||||
while True:
|
while True:
|
||||||
res = ssh.execute(ssh_command)
|
res = ssh.execute(ssh_command)
|
||||||
|
if "Connection refused".lower() in res[0].lower():
|
||||||
if res[0] != "Host key verification failed.":
|
pass
|
||||||
|
elif res[0] != "Host key verification failed.":
|
||||||
break
|
break
|
||||||
elif timeout == 0:
|
elif timeout == 0:
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user