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

node-driver-registrar v2.6.0 fails to create /var/lib/kubelet/plugins/csi-secrets-store/registration #1088

Closed
haugom opened this issue Oct 31, 2022 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@haugom
Copy link
Contributor

haugom commented Oct 31, 2022

What steps did you take and what happened:

  1. I used the helm chart secrets-store-csi-driver to install the secrets-store-csi-driver with the v2.6.0 version of the node-driver-registrar
  2. the daemonset crashes
main.go:107] "Failed to create registration probe file" err="open /var/lib/kubelet/plugins/csi-secrets-store/registration: no such file or directory" registrationProbePath="/var/lib/kubelet/plugins/csi-secrets-store/registration"

What did you expect to happen:

The daemonset should succeed.

Anything else you would like to add:

I maybe be using the helm chart wrong or have missed something. I had a bot that detected a new version of node-driver-registrar (and liveness) images and it updated my values for me.

I checked the changelog but did not see any breaking change so I rolled it out.

After reading the code and trying to locate the error message I believe the error is this:

the reason it fails as is because the hostPath folder /var/lib/kubelet/plugins/csi-secrets-store is mounted in the containers as /csi and not /var/lib/kubelet/plugins/csi-secrets-store

The node-driver-registrar wants to create a file registration and tries to resolve the path by using the directory name of the --kubelet-registration-path and concatenating it with /registration, but that folder does not exist when the container runs because the it is mounted under /csi

Which provider are you using:

For this issue it does not matter but I am using vault-csi-driver.

Environment:

  • Secrets Store CSI Driver version: v1.2.4
  • node-driver-registrar: v2.6.0
  • Kubernetes version: 1.23
@haugom haugom added the kind/bug Categorizes issue or PR as related to a bug. label Oct 31, 2022
@aramase
Copy link
Member

aramase commented Oct 31, 2022

@haugom We have not updated to v2.6.0 for node-driver-registrar yet. We will test and update when ready. I would recommend using only the manifests and images tagged in this repo as they're tested. For any other versions used, there is no support.

/close

@k8s-ci-robot
Copy link
Contributor

@aramase: Closing this issue.

In response to this:

@haugom We have not updated to v2.6.0 for node-driver-registrar yet. We will test and update when ready. I would recommend using only the manifests and images tagged in this repo as they're tested. For any other versions used, there is no support.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sarahhenkens
Copy link

Ran into this same problem. With v2.6.1 releases as well. I think its time to update the helm charts IMO

@sarahhenkens
Copy link

sarahhenkens commented Nov 17, 2022

Can we reopen this @aramase?

@aramase
Copy link
Member

aramase commented Nov 17, 2022

@sarahhenkens The helm charts work fine now with node-driver-registrar v2.5.1. We have not upgraded to the v2.6.1 release and as mentioned in the thread above, we recommend only using the versions we have in the repo which are tested. There is a bug in v2.6.0 and v2.6.1 release which is being discussed here: kubernetes-csi/node-driver-registrar#244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants