-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Automated cherry pick of #117804: Refactor FindAttachablePluginBySpec out of CSI code path #119363
Automated cherry pick of #117804: Refactor FindAttachablePluginBySpec out of CSI code path #119363
Conversation
reconstructVolume() is called when kubelet may not have connection to the API server yet, therefore it cannot get CSIDriver instances to figure out if a CSI volume is attachable or not. Refactor reconstructVolume(), so it does not need FindAttachablePluginBySpec for CSI volumes, because all of them are deviceMountable (i.e. FindDeviceMountablePluginBySpec always returns the CSI volume plugin).
During CSI volume reconstruction it's not possible to tell, if the volume is attachable or not - CSIDriver instance may not be available, because kubelet may not have connection to the API server at that time. Adding uncertain state during reconstruction + adding a correct state when the API server is available.
node.status.volumesInUse should report only attachable volumes, therefore it needs to wait for the reconciler to update uncertain attachability of volumes from the API server.
To volumesNeedUpdateFromNodeStatus - because both devicePath and uncertain attach-ability needs to be fixed from node status.
to be in sync with volumesNeedUpdateFromNodeStatus.
/hold |
/triage accepted |
/kind bug |
/retest |
/lgtm |
LGTM label has been added. Git tree hash: 2e335215fff357fd52f723a2cde145567471c510
|
/hold cancel |
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.
For RelEng:
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, xmudrii 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 |
/retest |
Cherry pick of #117804 on release-1.27.
#117804: Refactor FindAttachablePluginBySpec out of CSI code path
For details on the cherry pick process, see the cherry pick requests page.
Related to #117745 - picking the fix to 1.27.
This PR fixes behavior of
NewVolumeManagerReconstruction
feature, which is still off-by-default in 1.27. In theory, it should be a very harmless cherry pick. It allows us to testNewVolumeManagerReconstruction
in 1.27 and potentially enable it back by default in a future 1.27 patch release.Regression test for #117745 on master branch looks green today (Jul 17th): https://testgrid.k8s.io/sig-storage-kubernetes#kind-disruptive