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
task_executor - use correct value for ssh connection retries #75155
task_executor - use correct value for ssh connection retries #75155
Conversation
Since the task and connection both have the same 'retries' keyword, the task default would override the connection value.
It was 0 before the move to config and was changed to 3 by accident.
Simply do not pass 'retries' from the task to the connection options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
short term this fix is fine, long term I want to resurrect the keyword
config option to allow plugins to map to EXISTING specific keywords vs doing auto-matching on option name, to avoid collisions, falling back to the automap.
In the end, completely solving the issue will require adding a deprecation and removal of the current automap function.
Belt and suspenders
e1359ee
to
f105d7d
Compare
Ideally we could remove the code in I will open PRs to rename the key name in those collections. |
f105d7d
to
e85ef3f
Compare
…tries (ansible#75155) Since the task and connection both have the same 'retries' keyword, the task default would override the connection value. Do not pass 'retries' from the task to the connection options. * Set ssh_connection retries default value back to 0 It was 0 before the move to config and was changed to 3 by accident. (cherry picked from commit a8de35e) Co-authored-by: Sam Doran <sdoran@redhat.com>
cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None>
…tries (#75155) (#75191) Since the task and connection both have the same 'retries' keyword, the task default would override the connection value. Do not pass 'retries' from the task to the connection options. * Set ssh_connection retries default value back to 0 It was 0 before the move to config and was changed to 3 by accident. (cherry picked from commit a8de35e) Co-authored-by: Sam Doran <sdoran@redhat.com>
…nnect-retries-rename cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@9ed46f8
…nnect-retries-rename cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@9ed46f8
…nnect-retries-rename cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@f78cafe
…ies-rename cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None>
…ies-rename cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None>
…ies-rename cdaws_ssm - rename retries setting SUMMARY There was a bug in Ansible that would result in task retries overriding the connection retries. Using a different name for the connection retries setting avoids this issue on versions of Ansible that are missing the bug fix. ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/connection/aws_ssm.py ADDITIONAL INFORMATION Related to ansible/ansible#75155. Reviewed-by: Jill R <None>
SUMMARY
Since the task and connection both have the same 'retries' keyword, the task default would override the connection value. Making sure not to pass the task value for 'retries' to the connection options resolves the issue.
Set the default value for
ssh
connectionretries
to0
.Rename the config key from
retries
toreconnection_retries
as a belt and suspenders approach.Fixes #75142.
ISSUE TYPE
COMPONENT NAME
lib/ansible/executor/task_executor.py