From 852a43fdd5cc888591324dcef4aa957e976954ed Mon Sep 17 00:00:00 2001 From: git-harry Date: Mon, 19 Feb 2018 14:22:51 +0000 Subject: [PATCH] Increase Ansible SSH connection retries Retries for Ansible SSH connections have been enabled in master but not the stable branches. Testing using openstack-ansible-ops multi-node AIOs results in failures due to SSH connection errors on a regular basis. This change increases the number of retries from 3 to 5 to increase the time allowed for a connection to be made from approximately 20 seconds to approximately 50 seconds. This will then provide for this setting to be backported to all stable branches. Change-Id: I45dcf6313e1daf63b35b8620b3467eebac0eb95d --- scripts/openstack-ansible.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openstack-ansible.rc b/scripts/openstack-ansible.rc index 20b8f7cf7c..a24c4a4241 100644 --- a/scripts/openstack-ansible.rc +++ b/scripts/openstack-ansible.rc @@ -47,7 +47,7 @@ export ANSIBLE_HOST_KEY_CHECKING="${ANSIBLE_HOST_KEY_CHECKING:-False}" export ANSIBLE_TIMEOUT="${ANSIBLE_TIMEOUT:-5}" export ANSIBLE_TRANSPORT="${ANSIBLE_TRANSPORT:-ssh}" export ANSIBLE_SSH_PIPELINING="${ANSIBLE_SSH_PIPELINING:-True}" -export ANSIBLE_SSH_RETRIES="${ANSIBLE_SSH_RETRIES:-3}" +export ANSIBLE_SSH_RETRIES="${ANSIBLE_SSH_RETRIES:-5}" export ANSIBLE_PIPELINING="${ANSIBLE_SSH_PIPELINING}" export ANSIBLE_STRATEGY_PLUGINS="${ANSIBLE_STRATEGY_PLUGINS:-/etc/ansible/roles/plugins/strategy}"