Skip to content
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

connectivity: Retry getting the policy revision #1541

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

pchaigno
Copy link
Member

This commit adds some retry logic to the policy revision retrieval in case of a timeout. Such timeouts can happen because of simple connectivity blips.

This piece of code has been identified as fairly critical [1]. We attempt to retrieve these policy revisions when applying and deleting policies. If we fail to retrieve the policy revision, we fail the whole policy deletion. That can lead to failures in subsequent tests because of the leftover policy.

1 - #1260
Fixes: #1260.

@pchaigno pchaigno force-pushed the pr/pchaigno/retry-get-policy-revision branch from 773b73b to b1fa187 Compare April 26, 2023 19:16
@pchaigno pchaigno temporarily deployed to ci April 26, 2023 19:16 — with GitHub Actions Inactive
This commit adds some retry logic to the policy revision retrieval in
case of a timeout. Such timeouts can happen because of simple
connectivity blips.

This piece of code has been identified as fairly critical [1]. We
attempt to retrieve these policy revisions when applying and deleting
policies. If we fail to retrieve the policy revision, we fail the whole
policy deletion. That can lead to failures in subsequent tests because
of the leftover policy.

1 - #1260
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno force-pushed the pr/pchaigno/retry-get-policy-revision branch from b1fa187 to abeac63 Compare April 26, 2023 19:38
@pchaigno pchaigno temporarily deployed to ci April 26, 2023 19:38 — with GitHub Actions Inactive
@pchaigno pchaigno requested a review from squeed April 26, 2023 19:38
@pchaigno pchaigno merged commit b4ec712 into main Apr 26, 2023
12 checks passed
@pchaigno pchaigno deleted the pr/pchaigno/retry-get-policy-revision branch April 26, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connectivity blip leads to failure to remove policy
2 participants