Skip to content

[ansible] increase ansible cache timeout to 20 minutes#799

Merged
lguohan merged 1 commit intosonic-net:masterfrom
yxieca:cache
Feb 4, 2019
Merged

[ansible] increase ansible cache timeout to 20 minutes#799
lguohan merged 1 commit intosonic-net:masterfrom
yxieca:cache

Conversation

@yxieca
Copy link
Collaborator

@yxieca yxieca commented Feb 3, 2019

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

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.

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 lguohan merged commit 731ea42 into sonic-net:master Feb 4, 2019
@yxieca yxieca deleted the cache branch February 4, 2019 01:56
@yxieca
Copy link
Collaborator Author

yxieca commented Feb 4, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants