From 4b5cac2e070f06001ca693c104b02ab6fd6b9c74 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 6 Jun 2018 14:59:47 -0500 Subject: [PATCH] tests: increase ssh timeout and retries in ansible.cfg We see quite a few failures in the CI related to testing nodes losing ssh connection. This modification allows ansible to retry more times and wait longer before timing out. This seems to really affect testing scenarios that use a large amount of testing nodes. The centos7_cluster scenario specifically has 12 nodes and suffered from these failures often. Signed-off-by: Andrew Schoen --- ansible.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index e4c21b5db..74ee1b5a0 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -24,7 +24,7 @@ retry_files_enabled = False # This is the default SSH timeout to use on connection attempts # CI slaves are slow so by setting a higher value we can avoid the following error: # Timeout (12s) waiting for privilege escalation prompt: -timeout = 30 +timeout = 60 [ssh_connection] # see: https://github.com/ansible/ansible/issues/11536 @@ -33,4 +33,4 @@ ssh_args = -o ControlMaster=auto -o ControlPersist=600s pipelining = True # Option to retry failed ssh executions if the failure is encountered in ssh itself -retries = 5 +retries = 10 -- 2.39.5