-
Notifications
You must be signed in to change notification settings - Fork 159
Handle Existing MountPoints in NodePublish and NodeStage #95
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
Comments
No longer just throws an error but does not check for compatibility |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
/assign @hantaowang |
The kubernetes mount interface and mount-linux has some functionality to do TODO #1 and #3 via checking /proc/mounts and proc/self/mountinfo. The difference between the two files is that
I can probably get all the information I need from mountinfo, but the currently utilities that parse it are not exported and do work exactly as I want it to - so I may have to reimplement some of the logo with modifications If we were only considering mounts from attached block devices, I can do it all with proc/mounts because the utility for praising that is already implemented well with Interface.List(). However this fails for fs mounts since proc/mounts only has a mapping from devices. So emptydir (or dirs on the host machines) will all mount from sda which does not uniquely identify the source. |
This is specific to PD driver which can only be a block device |
What is then the difference between GetBlock() and GetMount() in NodePublish? Which one is the one normally used in the case of staging and then publishing a GCE PD and when would the other be used? I see that only GetBlock() results in deriving the device path. |
/cc @jingxu97 |
Currently if there is an existing mount point in the place where we are trying to mount the code will just throw an error. We should confirm whether it is compatible or not and return success (for idempotency) or throw and error respectively.
The text was updated successfully, but these errors were encountered: