-
Notifications
You must be signed in to change notification settings - Fork 116
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
Don't track attachments of NFS volumes #937
base: master
Are you sure you want to change the base?
Conversation
@timebertt Thank you for your contribution. |
Thank you @timebertt for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below. |
We probably need to add tests for this PR. However, we wanted to open it to get some feedback on whether this is the correct approach/place to solve the issue. |
@timebertt do you think, we should generalise this to also skip the check in case the CSIDriver is configured with |
Sounds good. I had the impression that the attachment tracking doesn't work at all if there are no Another PR could then enhance the check for CSI drivers where no |
@kon-angelo @gardener/mcm-maintainers can you provide feedback on the PR and the above discussion? |
I agree to @kon-angelo's observation that this can be generically handled. @timebertt since you have raised this PR we can also do this in 2 steps. We can skip NFS volumes (as you have done in this PR) and then later we can generalise this. Since generalisation would required additional lookup of the CSIDriver object and looking up its |
Aside from my previous point, I kind of understand @timebertt 's suggestion. The MCM code relies on volumeattachments which also to my knowledge is only created for CSI volumes. We could probably update the logic in this PR to skip anything other than CSI volumes. (but my experience is just going through the code and this can be verified from one of the actual mcm maintainers). Though one point is that I am not particularly fond that we "skip" reporting the existence of volumes, rather than not accounting them when draining - if it makes sense. Like this can be somewhat troubling to debug I find. But the actual function doing the work I just feel that at some point we will go down a debugging rabbit hole because |
/kind bug
What this PR does / why we need it:
This PR filters out NFS volumes when draining nodes, so that MCM doesn't try to track their detachment and re-attachment.
There is no such thing as an attachment to a node for NFS volumes. NFS volumes only need to be mounted (by kubelet).
Accordingly, MCM always runs into the configured PV reattach timeout, if there are pods with NFS PVCs on the to-be-drained node.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
cc @xoxys
Release note: