[ansible] increase ansible cache timeout to 20 minutes#799
Merged
lguohan merged 1 commit intosonic-net:masterfrom Feb 4, 2019
Merged
[ansible] increase ansible cache timeout to 20 minutes#799lguohan merged 1 commit intosonic-net:masterfrom
lguohan merged 1 commit intosonic-net:masterfrom
Conversation
Ansible timeout internal variables in cache in 10 minutes by default.
However, we have some playbooks run more more than 10 minutes and would
lose some ansible variables during execution. The error message wasn't
super clear. It would be something like following:
fatal: [host_name]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible
_Ethernet0' is undefined"}
And the line number would point at the next line after the task actually
took too long.
Warm reboot test is currently taking about 11 minutes to complete and
it triggered this caching issue.
Signed-off-by: Ying Xie <[email protected]>
lguohan
approved these changes
Feb 4, 2019
Collaborator
Author
|
Made to 201811 branch on 2/3/2019 |
yxieca
added a commit
that referenced
this pull request
Feb 4, 2019
Ansible timeout internal variables in cache in 10 minutes by default.
However, we have some playbooks run more more than 10 minutes and would
lose some ansible variables during execution. The error message wasn't
super clear. It would be something like following:
fatal: [host_name]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible
_Ethernet0' is undefined"}
And the line number would point at the next line after the task actually
took too long.
Warm reboot test is currently taking about 11 minutes to complete and
it triggered this caching issue.
Signed-off-by: Ying Xie <[email protected]>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…omatically (sonic-net#15655) src/sonic-swss-common * 8a53f04 - (HEAD -> 202205, origin/202205) Fix pipeline issue caused by urllib3 v2 (9 hours ago) [Liu Shilong] * 3a1032f - [Ci] Fix collect log error in azp template (sonic-net#799) (35 hours ago) [xumia]
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
* [201811][sairedis][swss] advance sub modules head Submodule src/sonic-sairedis 18ad5f9..4c75b7f: > Fixed conditional operator. (sonic-net#487) Submodule src/sonic-swss 1e99c93..cd12d48: > [teamsyncd]: Add information for LAG membership changes (sonic-net#982) > Fix vlan incremental config and add vs test cases (sonic-net#799) Signed-off-by: Ying Xie <[email protected]> * [swss] include more swss changes Submodule src/sonic-swss cd12d48..f44029d: > [MirrorOrch]: Init the next hop ip with 0 instead of default constructor (sonic-net#953) > [AclOrch]: Fix the acl mirror counter doubled by inactive mirror and active again (sonic-net#952) Signed-off-by: Ying Xie <[email protected]>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…omatically (sonic-net#16064) #### Why I did it src/sonic-swss-common ``` * 449ac55 - (HEAD -> 202305, origin/202305) [Ci] Fix collect log error in azp template (sonic-net#799) (2 days ago) [xumia] ``` #### How I did it #### How to verify it #### Description for the changelog
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…omatically (sonic-net#15656) #### Why I did it src/sonic-swss-common ``` * 7465f1b - (HEAD -> 202211, origin/202211) Fix pipeline issue caused by urllib3 v2 (12 hours ago) [Liu Shilong] * 82f9d76 - [Ci] Fix collect log error in azp template (sonic-net#799) (2 days ago) [xumia] ``` #### How I did it #### How to verify it #### Description for the changelog
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.
Summary:
Fixes # (issue)
Type of change
Approach
How did you do it?
Ansible timeout internal variables in cache in 10 minutes by default. However, we have some playbooks run more more than 10 minutes and would lose some ansible variables during execution. The error message wasn't super clear. It would be something like following:
fatal: [host_name]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible_Ethernet0' is undefined"}
And the line number would point at the next task after the task actually took too long.
Warm reboot test could take up to 11 minutes to complete and it triggered this caching issue sometimes.
How did you verify/test it?
warm reboot test fails before the change and passes after the change.