-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix: remove node driver registrar lifecycle hook #70
fix: remove node driver registrar lifecycle hook #70
Conversation
We need another PR to update our More info on the |
Could we update them in this PR itself? |
I think it could be a change that can be handled in a separate PR because the change is related to the installer while this PR is more concerned with the chart. Ideally, it would be nice to have both the changes in the same PR but I think we can split the changes into 2 PRs. Let me know what you think. |
Yeah, I think we should fix it in a separate PR. Could you please create an issue to update the installer? |
@vadasambar we should be updating our master with this change soon. Could you please update this PR and get it ready for review again? |
Will do and mention you here again. Thanks for the reminder. |
- was causing `/bin/sh not found` error - new node driver registrar version automatically removes the socket before terminating
@mugdha-adhav updated the PR but forgot to mention you. Can you take a look? I think the PR is ready for review. |
Could you please also remove the remaining references for the hook? And also could we update the |
The PR looks good. 👍🏼 |
/bin/sh not found
errorProblem
We see the following error message every time csi driver pod restarts
Solution
This problem happens because
node-driver-registrar
does not have/bin/sh
in it because it uses distroless image. This problem should happen every time warm metal pod shuts down.node-driver-registrar
versions < v2.0.0-rc1 don't remove the socket (/registration/csi-image.warm-metal.tech
and/registration/csi-image.warm-metal.tech-reg.sock
) automatically and we had to use thelifecycle
hook. Our current warm-metal chart inmaster
uses v2.8.0 version ofnode-driver-registrar
which automatically removes the sockets for us (kubernetes-csi/node-driver-registrar#21 (comment)). Hence, we don't need thelifecycle
hook anymore.Related
Checks
Helm lint passes without any issues: