Skip to content
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

fix node discovery when nodes are not upgraded to v2.5.0 #1971

Conversation

divyenpatel
Copy link
Member

@divyenpatel divyenpatel commented Sep 15, 2022

What this PR does / why we need it:
This PR helps fix node discovery when nodes are not upgraded to use v2.5.0 release of the driver, but CSI controller is upgraded to use v2.5.0

This is happening on TKGi platform during upgrade. After upgrading master node to use v2.5.0 bits, node discovery is failing as worker nodes are not yet upgraded and still have Node name as Node ID in the CSINodes object. For this case, we need to fall back and discover node using the ProviderID set on the Node object.

This PR is needed along with #1966

Testing done:
TKGI team has validated upgrading CSI driver with this change.

Special notes for your reviewer:

Release note:

fix node discovery when nodes are not upgraded to v2.5.0

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 15, 2022
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 15, 2022
@divyenpatel divyenpatel changed the title fix node discovery when nodes are not upgraded to v2.5.0 [wip] fix node discovery when nodes are not upgraded to v2.5.0 Sep 15, 2022
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 15, 2022
pkg/common/cns-lib/node/manager.go Show resolved Hide resolved
pkg/common/cns-lib/node/nodes.go Outdated Show resolved Hide resolved
pkg/common/cns-lib/node/nodes.go Show resolved Hide resolved
@divyenpatel divyenpatel force-pushed the fix-node-discovery-when-nodes-not-upgraded branch 3 times, most recently from da0dd70 to a7c5d08 Compare September 15, 2022 19:08
@divyenpatel divyenpatel changed the title [wip] fix node discovery when nodes are not upgraded to v2.5.0 fix node discovery when nodes are not upgraded to v2.5.0 Sep 15, 2022
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 15, 2022
@divyenpatel divyenpatel force-pushed the fix-node-discovery-when-nodes-not-upgraded branch from a7c5d08 to 1c77bc9 Compare September 15, 2022 19:18
@divyenpatel
Copy link
Member Author

@chethanv28 @shalini-b I have addressed your review comments and also performed e2e upgrade validation for this PR.

@shalini-b
Copy link
Collaborator

/approve

Copy link
Collaborator

@chethanv28 chethanv28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 15, 2022
@k8s-ci-robot
Copy link
Contributor

[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:
  • OWNERS [chethanv28,divyenpatel,shalini-b]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants