Skip to content

Commit 5bddebb

Browse files
author
sanjeev
committed
In case of Hyper-v ssvm/cpvm reboot takes time so made changes to handle this
1 parent 937aee3 commit 5bddebb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tools/marvin/marvin/lib/utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,16 @@ def get_process_status(hostip, port, username, password, linklocalip, process, h
208208
process)
209209

210210
# Double hop into router
211-
timeout = 5
211+
if str(hypervisor).lower() == 'hyperv':
212+
timeout = 12
213+
else:
214+
timeout = 5
212215
# Ensure the SSH login is successful
213216
while True:
214217
res = ssh.execute(ssh_command)
215-
216-
if res[0] != "Host key verification failed.":
218+
if "Connection refused".lower() in res[0].lower():
219+
pass
220+
elif res[0] != "Host key verification failed.":
217221
break
218222
elif timeout == 0:
219223
break

0 commit comments

Comments
 (0)