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
Scheduler volumebinding plugin - handle Lost PVC as UnschedulableAndUnresolvable #105245
Scheduler volumebinding plugin - handle Lost PVC as UnschedulableAndUnresolvable #105245
Conversation
@yibozhuang: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @yibozhuang. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
492d064
to
b30d832
Compare
/ok-to-test |
b30d832
to
59fde30
Compare
/assign @thockin |
/assign |
// GetPodVolumes returns a pod's PVCs separated into bound, unbound with delayed binding (including provisioning) | ||
// and unbound with immediate binding (including prebound) | ||
GetPodVolumes(pod *v1.Pod) (boundClaims, unboundClaimsDelayBinding, unboundClaimsImmediate []*v1.PersistentVolumeClaim, err error) | ||
// GetPodVolumes returns a pod's PVCs separated into bound, lost, |
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.
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.
Thanks for the suggestion! Moved the additional check to podHasPVCs
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.
@msau42 I've made the change as suggested, can you have another look whenever you get a chance? Thanks!
UnschedulableAndUnresolvable This change adds an additional check in the volumebinding scheduler plugin to handle PVC with phase ClaimLost which will allow the scheduler to return UnschedulableAndUnresolvable during the PreFilter stage and skip the rest of the node evaluation since the PVC is bound to a PV that does not exist. Without this change, the FailedScheduling error message would look like: 0/10 nodes are available: 2 node(s) had taint {node/test: true}, that the pod didn't tolerate, 6 node(s) had taint {node/unhealthy: true}, that the pod didn't tolerate, 2 pvc(s) bound to non-existent pv(s) Which is still evaluating every single node to determine that the pod cannot be scheduled because the PVC is bound to a non-existent PV With this change, the FailedScheduling error message would look like: 0/10 nodes are available: 1 persistentvolumeclaim "foo" bound to non-existent persistentvolume "bar" Signed-off By: Yibo Zhuang <yibzhuang@gmail.com>
59fde30
to
b8fe514
Compare
/retest |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msau42, yibozhuang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This change adds an additional check in the volumebinding scheduler
plugin to handle PVC with phase ClaimLost which will allow the
scheduler to return
UnschedulableAndUnresolvable
during the PreFilterstage and skip the rest of the node evaluation since the PVC is
bound to a PV that does not exist.
Without this change, the FailedScheduling error message would look like:
Which is still evaluating every single node to determine that the pod
cannot be scheduled because the PVC is bound to a non-existent PV
With this change, the FailedScheduling error message would look like:
Signed-off By: Yibo Zhuang yibzhuang@gmail.com
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: