Skip to content

Workaround: Disable SSH pipelining #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions ansible/deploy-openstack-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,25 @@
vars:
kayobe_environment_path: "{{ src_directory }}/kayobe-config/etc/kayobe/environments/{{ kayobe_config_environment }}"

# WORKAROUND:
# 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 https://github.com/ansible/ansible/issues/78344 and
# https://github.com/ansible/ansible/issues/81777.
# In https://github.com/stackhpc/stackhpc-kayobe-config/pull/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.
- name: Disable SSH pipelining
ansible.builtin.replace:
path: "{{ src_directory }}/{{ kayobe_config_name }}/etc/kayobe/ansible.cfg"
regexp: "^pipelining.*=.*"
replace: "pipelining = False"

- name: Ensure hooks directory are present
ansible.builtin.file:
dest: "{{ src_directory }}/{{ kayobe_config_name }}/etc/kayobe/hooks/{{ item }}"
Expand Down