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

Deployment failure: node-driver-registrar can not connect to /csi/csi.sock #250

Closed
okartau opened this issue Apr 26, 2019 · 1 comment
Closed

Comments

@okartau
Copy link
Contributor

okartau commented Apr 26, 2019

We have deployment failure case where node-driver-registrar sidecar on node fails to connect to /csi/sock.
This is Clearlinux distro on HW-based host with NVDIMM memory.
Clear version is 28880, kernel is 5.0.7, and container runtime is CRIO.
With node-driver-registrar v1.0.2, we see repeated 60 second connecting timeouts which lead to exit of pod, restart, and CrashLoop.
We also tried to switch to v1.1.0 where meaningful change is "try connecting without timeout",
there the picture changes, sidecar container does not exits but remains running, trying, but does not succeed. BTW, this "don't exit" behavior kind hides the real problem (proposal is to create node-driver-registrar feature request to implement some more intelligent solution, like readiness probe: #248 (comment)).
We found issue with similar symptoms and suspected SELinux involvement, but there is no SELinux.
The newest evidence from running strace of node-driver-registrar shows this:

socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3<UNIX:[67224]>
setsockopt(3<UNIX:[67224]>, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
connect(3<UNIX:[67224]>, {sa_family=AF_UNIX, sun_path="/csi/csi.sock"}, 16) = -1 ENOENT (No such file or directory)

Means, this is different from kubernetes-csi/node-driver-registrar#36
We have lot of evidence from Clear-based deployment (using 'make start' cluster of VMs) but most of times such is created as docker-based.
Does CRIO-based runtime cause some difference in how local socket is passed into container?

@okartau
Copy link
Contributor Author

okartau commented Apr 26, 2019

it was a different issue, a misconfig that led to node driver failure to connect to TCP socket of kubelet, so it did not even create the /csi/csi.sock.
node-driver-registrar was correct, there was no socket.

@okartau okartau closed this as completed Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant