The default ssh connection plugin will cause a task to fail if a
connection cannot be made first time. The failures have been found to
cause a number of builds to fail.
This patch adds a new connection plugin called ssh_retry and sets it as
the default one to use.
The plugin can be enabled by setting the following options in
ansible.cfg:
[defaults] connection_plugins = plugins/connection_plugins
transport = ssh_retry
Reviewed: https:/ /review. openstack. org/158676 /git.openstack. org/cgit/ stackforge/ os-ansible- deployment/ commit/ ?id=10562b410d1 f726dbf656dd566 ea5604b29d9c1b
Committed: https:/
Submitter: Jenkins
Branch: juno
commit 10562b410d1f726 dbf656dd566ea56 04b29d9c1b
Author: git-harry <email address hidden>
Date: Wed Feb 4 14:41:35 2015 +0000
Add ssh_retry connection plugin
The default ssh connection plugin will cause a task to fail if a
connection cannot be made first time. The failures have been found to
cause a number of builds to fail.
This patch adds a new connection plugin called ssh_retry and sets it as
the default one to use.
The plugin can be enabled by setting the following options in
ansible.cfg:
[defaults]
connection_ plugins = plugins/ connection_ plugins
transport = ssh_retry
[ssh_retry]
retries = 3
Note, the default retries is 3.
Change-Id: Ic187fb154cfa7b 6fa95b19bee4757 ec976f3f368 0244f11196642e2 90c1eb727d)
Co-Authored-By: Hugh Saunders <email address hidden>
Closes-Bug: #1404343
(cherry picked from commit e9f7a0dec128ffc