Increase Ansible default timeout#398
Merged
BillAnastasiadis merged 1 commit intoSUSE:mainfrom Oct 23, 2025
Merged
Conversation
2bcb9a1 to
0e00d3a
Compare
| # for avoiding the ansible ssh connection failure introduced by | ||
| # https://github.com/ansible/ansible/pull/78826 in "ansible-core 2.15.0" | ||
| ssh_share += ' --ssh-extra-args="-l cloudadmin -o UpdateHostKeys=yes -o StrictHostKeyChecking=accept-new"' | ||
| ansible_cmd_seq.append({"cmd": ssh_share}) |
Collaborator
Author
There was a problem hiding this comment.
@mpagot we are adding env=original_env in the ansible-playbook commands, but not in this initial plain ansible command. Do we want to add it here too, or doesn't really matter? All the problems I can think of usually happen in the playbook runs..
f797d2d to
339d5a8
Compare
339d5a8 to
64ad53a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increases the default timeout for Ansible globally, to avoid timeouts in ssh connections after 12 seconds (10s default and +2 seconds always added by ansible).
Reading material:
explanation of issue: https://notes.aflukasz.pl/en/2025/08/01/ansible-12s-timeout
ansible docs: https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-timeout, https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ssh_connection.html#parameter-timeout
Related ticket: https://jira.suse.com/browse/TEAM-10522
Verification run: https://openqa.suse.de/tests/19480210