Fix: Timeout during VPP installation 97/4997/3
authorPeter Mikus <pmikus@cisco.com>
Thu, 2 Feb 2017 08:34:47 +0000 (08:34 +0000)
committerPeter Mikus <pmikus@cisco.com>
Fri, 3 Feb 2017 14:39:07 +0000 (14:39 +0000)
Increase timeout during installation of VPP packages to 60s.

Change-Id: I9384564a45951bbfb648c99f25d8de70b79ab783
Signed-off-by: pmikus <pmikus@cisco.com>
resources/tools/topo_installation.py

index 3e3fda8..5dbaaaa 100755 (executable)
@@ -35,9 +35,9 @@ def ssh_no_error(ssh, cmd, sudo=False):
     """
 
     if sudo:
     """
 
     if sudo:
-        ret, stdo, stde = ssh.exec_command_sudo(cmd)
+        ret, stdo, stde = ssh.exec_command_sudo(cmd, timeout=60)
     else:
     else:
-        ret, stdo, stde = ssh.exec_command(cmd)
+        ret, stdo, stde = ssh.exec_command(cmd, timeout=60)
 
     if ret != 0:
         print 'Command execution failed: "{}"'.format(cmd)
 
     if ret != 0:
         print 'Command execution failed: "{}"'.format(cmd)