The seperate login_timeout isn't used by the higher level copy_xyz functions, mostly the default setting of 10-seconds is used. However, The timeout for DNS is 6-seconds per server, with the vast majority of hosts using at least two, possibly three DNS servers. Adding a small margin of two seconds to that gives 20-seconds. However even this may be tight if there is significant load on the system, or slower centralized-auth methods are in-use.
Signed-off-by: Chris Evich <[email protected]> --- client/virt/virt_utils.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/virt/virt_utils.py b/client/virt/virt_utils.py index 2b37f76..7759b2d 100644 --- a/client/virt/virt_utils.py +++ b/client/virt/virt_utils.py @@ -719,7 +719,7 @@ def wait_for_login(client, host, port, username, password, prompt, linesep="\n", linesep, log_filename, internal_timeout) -def _remote_scp(session, password_list, transfer_timeout=600, login_timeout=10): +def _remote_scp(session, password_list, transfer_timeout=600, login_timeout=20): """ Transfer file(s) to a remote host (guest) using SCP. Wait for questions and provide answers. If login_timeout expires while waiting for output @@ -793,7 +793,7 @@ def _remote_scp(session, password_list, transfer_timeout=600, login_timeout=10): def remote_scp(command, password_list, log_filename=None, transfer_timeout=600, - login_timeout=10): + login_timeout=20): """ Transfer file(s) to a remote host (guest) using SCP. -- 1.7.1 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
