Increase timeout for 'vpp restart' operations 99/3599/3
authorMiroslav Miklus <mmiklus@cisco.com>
Wed, 26 Oct 2016 14:49:26 +0000 (16:49 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 27 Oct 2016 20:25:48 +0000 (20:25 +0000)
Systemd first send SIGTERM and wait 90s (default value)
to send SIGKILL to terminate the vpp service.

Change-Id: Ia582cfdc4bebc5d3530e82692856fe733d0b001e
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
resources/libraries/python/DUTSetup.py

index e176dd7..78caeb7 100644 (file)
@@ -31,7 +31,7 @@ class DUTSetup(object):
             if node['type'] == NodeType.DUT:
                 ssh.connect(node)
                 (ret_code, stdout, stderr) = \
-                    ssh.exec_command_sudo('service vpp restart')
+                    ssh.exec_command_sudo('service vpp restart', timeout=120)
                 if int(ret_code) != 0:
                     logger.debug('stdout: {0}'.format(stdout))
                     logger.debug('stderr: {0}'.format(stderr))
@@ -89,7 +89,7 @@ class DUTSetup(object):
 
         (ret_code, stdout, stderr) = \
             ssh.exec_command('sudo -Sn bash {0}/{1}/dut_setup.sh'.format(
-                Constants.REMOTE_FW_DIR, Constants.RESOURCES_LIB_SH))
+                Constants.REMOTE_FW_DIR, Constants.RESOURCES_LIB_SH), timeout=120)
         logger.trace(stdout)
         logger.trace(stderr)
         if int(ret_code) != 0:

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.