-
Notifications
You must be signed in to change notification settings - Fork 181
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
fall back to look up the node by name #1966
fall back to look up the node by name #1966
Conversation
0811a20 to
59e364a
Compare
|
Started vanilla Block pipeline... Build Number: 1431 |
|
|
Started Vanilla block pre-checkin pipeline... Build Number: 1338 |
59e364a to
e6e4810
Compare
|
Started Vanilla block pre-checkin pipeline... Build Number: 1339 |
|
|
/ok-to-test |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chethanv28, divyenpatel, shalini-b 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 |
[cherry-pick 2.5] fall back to look up node by name (#1966)
[cherry-pick 2.6]fall back to look up node by name (#1966)
What this PR does / why we need it:
fall back to look up the node by name during controller unpublish.
This fix is required for platforms like TKGi where control plane nodes are upgraded first and workload nodes are upgraded later. While upgrading workload nodes, during Node drain operation,
ControllerUnpublishVolumeis called with Node name, as workload node is not yet upgraded to publish Node VM UUID as Node ID. WhenControllerUnpublishVolumeis called with Node name, VM lookup can not be done using UUID, so here we are adding fallback to perform one more look up to find VM by name from the in-memory cache.This change will help TKGi to utilize
use-csinode-idfeature (also known as decouple CSI from CPI) released in v2.5.0.Testing done:
Logs
Special notes for your reviewer:
Release note: