juicedata / juicefs-csi-driver

JuiceFS CSI Driver
https://github.com/juicedata/juicefs
Apache License 2.0
222 stars 85 forks source link

[BUG] driver name csi.juicefs.com not found in the list of registered CSI drivers #1191

Open YaAYadeer opened 9 hours ago

YaAYadeer commented 9 hours ago

What happened: I deployed CSI successfully and created PV and PVC. However, I encountered an error while creating a pod: kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name csi.juicefs.com not found in the list of registered CSI drivers. But I use the command "kubectl get csidrivers.storage.k8s.io". I find csi.juicefs.com is in the list. Besides,I use kubectl logs -n kube-system juicefs-csi-node-xxx juicefs-plugin --tail 100 kubectl logs -n kube-system juicefs-csi-node-xxx juicefs-plugin --tail 100 to checked the logs,but find nothing wrong.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

YaAYadeer commented 9 hours ago

There exists the same issue https://github.com/juicedata/juicefs-csi-driver/issues/751,which is also in unclosed state

YaAYadeer commented 9 hours ago

@zwwhdls

YaAYadeer commented 9 hours ago

kubectl -n kube-system get pods -l app.kubernetes.io/name=juicefs-csi-driver NAME READY STATUS RESTARTS AGE juicefs-csi-controller-0 3/3 Running 0 84m juicefs-csi-controller-1 3/3 Running 0 83m juicefs-csi-dashboard-686b87466f-vkh4m 1/1 Running 0 84m juicefs-csi-node-8t5df 3/3 Running 0 84m juicefs-csi-node-lkgl2 3/3 Running 0 84m juicefs-csi-node-lsd4p 3/3 Running 0 84m juicefs-csi-node-slrlb 3/3 Running 0 84m juicefs-csi-node-sw8xn 3/3 Running 0 84m juicefs-csi-node-t85hs 3/3 Running 0 84m juicefs-csi-node-txdqp 3/3 Running 0 84m juicefs-csi-node-vcvnx 3/3 Running 0 84m

juicefs-csi-node-slrlb is deployed on the machine where the pod is scheduled

YaAYadeer commented 8 hours ago

Here are some details: 1.The version of juicefs-csi-driver is 0.25.2 2.kubectl logs -n kube-system juicefs-csi-node-slrlb juicefs-plugin --tail 100 I1122 08:05:28.125702 7 main.go:127] "main: Run CSI node" I1122 08:05:28.138855 7 grace.go:56] "grace: Serve gracefully shutdown is listening" addr="/tmp/juicefs-csi-shutdown.sock" I1122 08:05:28.167414 7 node.go:207] "main: Pod Reconciler Started" I1122 08:05:28.167459 7 driver.go:53] "driver: get version info" driver="csi.juicefs.com" verison="v0.25.2-dirty" commit="95f5b7ca4e2554b05c54604126d27471e539beb5" date="2024-11-04T07:56:36Z" I1122 08:05:28.188651 7 driver.go:118] "driver: Listening for connection on address" address="/csi/csi.sock" 3.kubectl logs -n kube-system juicefs-csi-node-slrlb node-driver-registrar --tail 50 I1122 09:33:46.326013 1 connection.go:243] GRPC request: {} I1122 09:33:46.326180 1 main.go:90] Received GetInfo call: &InfoRequest{} I1122 09:33:46.326313 1 connection.go:249] GRPC response: {"endpoint":"/var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sock","name":"csi.juicefs.com","supported_versions":["1.0.0"],"type":"CSIPlugin"} I1122 09:33:46.326328 1 connection.go:250] GRPC error: I1122 09:33:46.326391 1 node_register.go:106] health check succeeded I1122 09:33:56.324704 1 node_register.go:133] Attempting to open a gRPC connection with: "/registration/csi.juicefs.com-reg.sock" I1122 09:33:56.324750 1 connection.go:213] Connecting to unix:///registration/csi.juicefs.com-reg.sock I1122 09:33:56.325253 1 node_register.go:141] Calling node registrar to check if it still responds I1122 09:33:56.325271 1 connection.go:242] GRPC call: /pluginregistration.Registration/GetInfo I1122 09:33:56.325275 1 connection.go:243] GRPC request: {} I1122 09:33:56.325484 1 main.go:90] Received GetInfo call: &InfoRequest{} I1122 09:33:56.325636 1 connection.go:249] GRPC response: {"endpoint":"/var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sock","name":"csi.juicefs.com","supported_versions":["1.0.0"],"type":"CSIPlugin"} I1122 09:33:56.325653 1 connection.go:250] GRPC error: I1122 09:33:56.325729 1 node_register.go:106] health check succeeded I1122 09:34:06.325135 1 node_register.go:133] Attempting to open a gRPC connection with: "/registration/csi.juicefs.com-reg.sock" I1122 09:34:06.325185 1 connection.go:213] Connecting to unix:///registration/csi.juicefs.com-reg.sock I1122 09:34:06.325658 1 node_register.go:141] Calling node registrar to check if it still responds I1122 09:34:06.325682 1 connection.go:242] GRPC call: /pluginregistration.Registration/GetInfo I1122 09:34:06.325686 1 connection.go:243] GRPC request: {} I1122 09:34:06.325865 1 main.go:90] Received GetInfo call: &InfoRequest{} I1122 09:34:06.326030 1 connection.go:249] GRPC response: {"endpoint":"/var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sock","name":"csi.juicefs.com","supported_versions":["1.0.0"],"type":"CSIPlugin"} I1122 09:34:06.326048 1 connection.go:250] GRPC error: I1122 09:34:06.326131 1 node_register.go:106] health check succeeded I1122 09:34:16.324675 1 node_register.go:133] Attempting to open a gRPC connection with: "/registration/csi.juicefs.com-reg.sock" I1122 09:34:16.324719 1 connection.go:213] Connecting to unix:///registration/csi.juicefs.com-reg.sock I1122 09:34:16.325220 1 node_register.go:141] Calling node registrar to check if it still responds I1122 09:34:16.325242 1 connection.go:242] GRPC call: /pluginregistration.Registration/GetInfo I1122 09:34:16.325247 1 connection.go:243] GRPC request: {} I1122 09:34:16.325469 1 main.go:90] Received GetInfo call: &InfoRequest{} I1122 09:34:16.325638 1 connection.go:249] GRPC response: {"endpoint":"/var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sock","name":"csi.juicefs.com","supported_versions":["1.0.0"],"type":"CSIPlugin"} I1122 09:34:16.325651 1 connection.go:250] GRPC error: I1122 09:34:16.325723 1 node_register.go:106] health check succeeded I1122 09:34:26.325614 1 node_register.go:133] Attempting to open a gRPC connection with: "/registration/csi.juicefs.com-reg.sock" I1122 09:34:26.325657 1 connection.go:213] Connecting to unix:///registration/csi.juicefs.com-reg.sock I1122 09:34:26.326154 1 node_register.go:141] Calling node registrar to check if it still responds I1122 09:34:26.326176 1 connection.go:242] GRPC call: /pluginregistration.Registration/GetInfo I1122 09:34:26.326180 1 connection.go:243] GRPC request: {} I1122 09:34:26.326415 1 main.go:90] Received GetInfo call: &InfoRequest{} I1122 09:34:26.326592 1 connection.go:249] GRPC response: {"endpoint":"/var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sock","name":"csi.juicefs.com","supported_versions":["1.0.0"],"type":"CSIPlugin"} I1122 09:34:26.326609 1 connection.go:250] GRPC error: I1122 09:34:26.326931 1 node_register.go:106] health check succeeded I1122 09:34:36.325180 1 node_register.go:133] Attempting to open a gRPC connection with: "/registration/csi.juicefs.com-reg.sock" I1122 09:34:36.325252 1 connection.go:213] Connecting to unix:///registration/csi.juicefs.com-reg.sock I1122 09:34:36.325863 1 node_register.go:141] Calling node registrar to check if it still responds I1122 09:34:36.325905 1 connection.go:242] GRPC call: /pluginregistration.Registration/GetInfo I1122 09:34:36.325910 1 connection.go:243] GRPC request: {} I1122 09:34:36.326123 1 main.go:90] Received GetInfo call: &InfoRequest{} I1122 09:34:36.326288 1 connection.go:249] GRPC response: {"endpoint":"/var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sock","name":"csi.juicefs.com","supported_versions":["1.0.0"],"type":"CSIPlugin"} I1122 09:34:36.326304 1 connection.go:250] GRPC error: I1122 09:34:36.326389 1 node_register.go:106] health check succeeded