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: Delete test-conn-disrupt pods immediately after test run #2511

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

brb
Copy link
Member

@brb brb commented Apr 29, 2024

See commit msgs.

Test runs: cilium/cilium#32234

@brb brb force-pushed the pr/brb/early-terminate-conn-disrupt branch from 5d01c79 to 26a4bb8 Compare April 29, 2024 16:34
@brb brb changed the title WIP: early termination of test-conn-disrupt pods connectivity: Delete test-conn-disrupt pods immediately after test run Apr 29, 2024
@brb
Copy link
Member Author

brb commented Apr 30, 2024

Blocked by #2513.

@brb brb force-pushed the pr/brb/early-terminate-conn-disrupt branch from 26a4bb8 to 1ff5b5d Compare April 30, 2024 08:51
It's going to be passed by test-conn-disrupt pods deletion finalizer in
a subsequent commit.

Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/early-terminate-conn-disrupt branch from 1ff5b5d to 0a20b49 Compare April 30, 2024 12:21
@brb brb force-pushed the pr/brb/early-terminate-conn-disrupt branch from 0a20b49 to 72c9b93 Compare April 30, 2024 12:21
Otherwise, we risk to end up with not properly cleaning all installed
resource.

Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/early-terminate-conn-disrupt branch from 72c9b93 to 6b33813 Compare April 30, 2024 12:39
@brb brb requested a review from giorio94 April 30, 2024 12:41
@brb brb marked this pull request as ready for review April 30, 2024 12:45
@brb brb requested review from a team as code owners April 30, 2024 12:45
@brb brb requested a review from christarazi April 30, 2024 12:45
connectivity/builder/no_interrupted_connections.go Outdated Show resolved Hide resolved
connectivity/builder/no_interrupted_connections.go Outdated Show resolved Hide resolved
// Use a detached context to make sure this call is not affected by
// context cancellation. Usually, finalization (e.g., netpol removal)
// needs to happen even when the user interrupted the program.
if err := f(context.TODO()); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it could make sense to add a timeout to prevent finalizers from hanging forever in case of e.g., network connectivity problems.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What could be a reasonable timeout? 5min?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I was actually thinking about a way lower value (something between 1 and 5 seconds), but it may be indeed to low if we are waiting for any operation to actually happen (like in case of policies removal). Maybe 1 minute?

Delete the test-conn-disrupt pods immediately after the test run has
finished to reduce CPU consumption (the pods generate a lot of traffic,
and in most CI jobs Cilium runs with monitor aggregation disabled).

Suggested-by: Marco Iorio <[email protected]>
Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/early-terminate-conn-disrupt branch from 6b33813 to 0b6aeec Compare April 30, 2024 14:13
@michi-covalent michi-covalent added the priority/release-blocker This issue will prevent the release of the next version of Cilium. label Apr 30, 2024
Copy link
Member

@giorio94 giorio94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 30, 2024
@brb brb merged commit 06d596e into main Apr 30, 2024
12 of 13 checks passed
@brb brb deleted the pr/brb/early-terminate-conn-disrupt branch April 30, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/release-blocker This issue will prevent the release of the next version of Cilium. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants