-
Notifications
You must be signed in to change notification settings - Fork 40k
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] When the hostname and nodename of a node do not match, ensure that pods carrying PVs with nodeAffinity are scheduled correctly. #125398
Conversation
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-sigs/prow repository. |
@AxeZhan can you add a release note? |
LGTM label has been added. Git tree hash: 27406546fb22f50719ba4ec9418ab5c4fef8855e
|
/approve |
/hold cancel |
/cc @alculquicondor |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, AxeZhan, msau42 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 |
Please prepare cherry-picks for all supported versions. |
@AxeZhan let me know if you are interested in making the necessary(or have time) cherry picks. This bug is also important for some of our clusters, so we are trying to get backporting fixes expedited if possible. |
@gnufied Hi gnufied! |
…398-upstream-release-1.31 Automated cherry pick of #125398: [scheduler] When the hostname and nodename of a node do not match, ensure that pods carrying PVs with nodeAffinity are scheduled correctly.
…398-upstream-release-1.29 Manually cherry pick of #125398: [scheduler] When the hostname and nodename of a node do not match, ensure that pods carrying PVs with nodeAffinity are scheduled correctly.
…398-upstream-release-1.30 Automated cherry pick of #125398: [scheduler] When the hostname and nodename of a node do not match, ensure that pods carrying PVs with nodeAffinity are scheduled correctly.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently, the scheduler assumes that the hostname and nodename of a node are the same when evaluating nodeAffinity for local PVs.
kubernetes/pkg/volume/util/util.go
Line 582 in 6b73ccc
Node name and hostname are distinct and are definitively known to be different in some clusters.
And this will make the pod scheduled to a wrong node or failed scheduling.
Which issue(s) this PR fixes:
Part of #125336
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: