Skip to content

Commit 61460d8

Browse files
committed
Workaround: Disable SSH pipelining
There is a race condition in Ansible that can result in this failure: msg: |- MODULE FAILURE See stdout/stderr for the exact error rc: -13 See ansible/ansible#78344 and ansible/ansible#81777. In stackhpc/stackhpc-kayobe-config#1108 we applied a workaround to increase the ControlPersist timeout to 1 hour, but this does not always work. Disabling SSH pipelining prevents the issue at the cost of Ansible execution duration.
1 parent 201e0d9 commit 61460d8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ansible/deploy-openstack-config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,25 @@
118118
vars:
119119
kayobe_environment_path: "{{ src_directory }}/kayobe-config/etc/kayobe/environments/{{ kayobe_config_environment }}"
120120

121+
# WORKAROUND:
122+
# There is a race condition in Ansible that can result in this failure:
123+
# msg: |-
124+
# MODULE FAILURE
125+
# See stdout/stderr for the exact error
126+
# rc: -13
127+
# See https://github.com/ansible/ansible/issues/78344 and
128+
# https://github.com/ansible/ansible/issues/81777.
129+
# In https://github.com/stackhpc/stackhpc-kayobe-config/pull/1108 we applied
130+
# a workaround to increase the ControlPersist timeout to 1 hour, but this
131+
# does not always work.
132+
# Disabling SSH pipelining prevents the issue at the cost of Ansible
133+
# execution duration.
134+
- name: Disable SSH pipelining
135+
ansible.builtin.replace:
136+
path: "{{ src_directory }}/{{ kayobe_config_name }}/etc/kayobe/ansible.cfg"
137+
regexp: "^pipelining.*=.*"
138+
replace: "pipelining = False"
139+
121140
- name: Ensure hooks directory are present
122141
ansible.builtin.file:
123142
dest: "{{ src_directory }}/{{ kayobe_config_name }}/etc/kayobe/hooks/{{ item }}"

0 commit comments

Comments
 (0)