-
Notifications
You must be signed in to change notification settings - Fork 301
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
[Flake] Change image behavior of high-priority-group pod #4438
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mszadkow The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -517,6 +517,10 @@ var _ = ginkgo.Describe("Pod groups", func() { | |||
}, util.Timeout, util.Interval).Should(gomega.Succeed()) | |||
}) | |||
|
|||
ginkgo.By("Call high priority group pods to complete", func() { | |||
util.WaitForActivePodsAndTerminate(ctx, k8sClient, restClient, cfg, ns.Name, 2, 0) |
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.
Actually, I don't think we should be terminating them by the /exit, because the Pod is already being deleted due to preemptions. So, we just need to wait for SIGKILL by kubelet. To make it faster we can specify spec.graceTerminationPeriodSeconds. See #4434 (comment)
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.
Ah, sorry, this is already terminating the high-priority group. makes sense
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.
If we do not terminate them they will never finish and replacement pods can't be ungated
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.
yeah, got it.
@mszadkow were you able to repro the issue locally before fix and confirm the code fixes it? |
100 times repeated, but I did not catch it, even once. |
Ok, but as you use "BehaviorWaitForDeletion" command, isn't the "Check that the preempted pods are deleted" step now taking long becuase we need to wait 30s for SIGKILL? If this is the case we may just limit the graceful termination period to 1s. |
It's a different group (default) that I didn't touch. Update: |
What type of PR is this?
/kind flake
What this PR does / why we need it:
Prevent the situation that high-group-priority finish too fast.
Add control over when the pod group should finish.
Which issue(s) this PR fixes:
Fixes #4434
Special notes for your reviewer:
Does this PR introduce a user-facing change?