-
Notifications
You must be signed in to change notification settings - Fork 141
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
"Failed to create registration probe file" with readOnlyRootFilesystem #213
Comments
Thanks for the report, this mode https://github.com/kubernetes-csi/node-driver-registrar#health-check-with-an-exec-probe exists as a workaround to an issue related with the registration process getting stuck. Fortunately, I believe that the issue with the registration process getting stuck was fixed in kubernetes/kubernetes#110075 and the workaround shouldn't be needed anymore. For the issue that you raised it's kinda hard to fix it because the workaround relies on creating a tmp file whose existence is checked regularly to restart the Pod and the file is always getting created. A fix that would be backwards compatible is:
|
I think we can also use the fact that we didn't introduce any flags to enable/disable the feature, another idea would be to deprecate the exec probe and remove the code that creates the file by default from the codebase in a future release. |
@mauriciopoppe creating the file is fine, because we are passing The problem is that on the way to create It's not actually affecting us, because we don't use the probe mode anyways, but I figured I'd report the bug. That said, if you think this code is totally unnecessary, removing it would also be a "fix" for this issue. |
@ConnorJC3 thanks for pointing that out! I think I can remove these lines safely node-driver-registrar/pkg/util/util_unix.go Lines 91 to 94 in c759a11
|
I think that |
On the CSI Driver side, is the |
The same should be true for |
#214 removes the lines that attempted to create a directory and now we only create a file in the mounted volume, it should be available in the next release |
Reverting in #247 (comment), I think node-driver-registrar needs to create the |
Rather than not attempting to create the directory at all, could It seems like it already has a loop to create the directories in sequence and was just relying on the fact this would silently fail if the directory already existed - so instead of relying on that could it check if the directory exists first? Edit: I see you're using |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
Hi @mauriciopoppe As the #214 fix was reverted, what will be the next step to fix this please ? (I used the helm chart UPDATE : it does not prevent the driver to work, I just tested on a 1.22 cluster and the volumes are created successfully |
@yogeek I tried to also make node-driver-registrar compatible with The latest versions of node-driver-registrar should have the issue in #213 (comment) which only happens if the Deployment has |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
When using
readOnlyRootFilesystem: true
thenode-driver-registrar
tries to recursively create the directory the probe file is in, leading to an error:In this scenario
/var/lib/kubelet/plugins/ebs.csi.aws.com/
is ahostPath
mounted into the container (and registration works just fine), butnode-driver-registrar
tries to create/var/lib/kubelet/
despite the fact it already exists and fails, never creating the probe file.Semi-related: see kubernetes-sigs/aws-ebs-csi-driver#1333 (comment)
The text was updated successfully, but these errors were encountered: