diff options
author | selias <samelias@cisco.com> | 2017-10-03 10:32:35 +0200 |
---|---|---|
committer | selias <samelias@cisco.com> | 2017-10-03 11:05:24 +0200 |
commit | fcee621dda66ed8b218158c36afbf07bd08b23a1 (patch) | |
tree | 8a6ffaef85596ec6d5f9fc570fc034d4e31ef1e6 /resources/libraries/python/honeycomb | |
parent | 0513ce5642dcf58b21f9b77d6b50e4e9a7a94f04 (diff) |
HC Test: increase timeout for archiving HC log file
- add timeout parameter to ssh.scp method
- increase timeout in "Archive Honeycomb Log" keyword
- increase timeout for copying ODL client in setup
Change-Id: I9e914d5f439fd14471b10b611efdbb6afada4c6e
Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/python/honeycomb')
-rw-r--r-- | resources/libraries/python/honeycomb/HoneycombSetup.py | 2 | ||||
-rw-r--r-- | resources/libraries/python/honeycomb/HoneycombUtil.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/resources/libraries/python/honeycomb/HoneycombSetup.py b/resources/libraries/python/honeycomb/HoneycombSetup.py index 9ac217909e..b5e964dd6c 100644 --- a/resources/libraries/python/honeycomb/HoneycombSetup.py +++ b/resources/libraries/python/honeycomb/HoneycombSetup.py @@ -466,7 +466,7 @@ class HoneycombSetup(object): "cp -r {src}/*karaf_{odl_name}* {dst}".format( src=src_path, odl_name=odl_name, dst=dst_path) - ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=120) + ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=180) if int(ret_code) != 0: raise HoneycombError( "Failed to copy ODL client on node {0}".format(node["host"])) diff --git a/resources/libraries/python/honeycomb/HoneycombUtil.py b/resources/libraries/python/honeycomb/HoneycombUtil.py index 39c076d9c3..86feb78d94 100644 --- a/resources/libraries/python/honeycomb/HoneycombUtil.py +++ b/resources/libraries/python/honeycomb/HoneycombUtil.py @@ -453,5 +453,6 @@ class HoneycombUtil(object): ssh.scp( ".", "/tmp/honeycomb.log", - get=True) + get=True, + timeout=60) ssh.exec_command("rm /tmp/honeycomb.log") |