forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler: revert "Filter gated pods before calling isPodWorthRequeue…
…ing" The main part of PR kubernetes#124618 was adding this if check: pkg/scheduler/internal/queue/scheduling_queue.go: movePodsToActiveOrBackoffQueue if pInfo.Gated { continue } This was supposed to shortcut expensive work. But if a pod is gated because a plugin's PreEnqueue return false, then the event that caused movePodsToActiveOrBackoffQueue to be called must not be ignored for the pod. PreEnqueue has to be called for the pod again to check whether it is now scheduleable. This affects DRA when using claim templates. This is independent from using classic DRA or structured parameters, in both cases a pod gets created, then the claim, and pod scheduling can only start once the claim exists. Depending on timing, the scheduler sees the pod update (because the claim name is recorded in status) or the claim add first. If it first sees the pod update, the pod gets stuck because the claim is still unknown. Then when the claim add event is processed, the pod gets skipped because of the check above and remains stuck.
- Loading branch information
Showing
3 changed files
with
25 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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