kvaps / kube-linstor

Containerized LINSTOR SDS for Kubernetes, ready for production use.
Apache License 2.0
130 stars 25 forks source link

CSI Plugin Not Registering on Nodes #52

Closed zchef2k closed 2 years ago

zchef2k commented 2 years ago

This is my first time working with DRBD and Linstor. Following the README, I can get most everything up and running. However, the CSI plugin fails to register on the nodes. I can provision PVCs from Kubernetes but pods won't attach to them, which is strange.

Here are logs from the csi-node pod:

I0108 15:00:47.982707       1 main.go:113] Version: v2.2.0
I0108 15:00:47.983302       1 main.go:137] Attempting to open a gRPC connection with: "/csi/csi.sock"
I0108 15:00:47.983328       1 connection.go:153] Connecting to unix:///csi/csi.sock
I0108 15:00:47.983742       1 main.go:144] Calling CSI driver to discover driver name
I0108 15:00:47.983775       1 connection.go:182] GRPC call: /csi.v1.Identity/GetPluginInfo
I0108 15:00:47.983787       1 connection.go:183] GRPC request: {}
I0108 15:00:47.987578       1 connection.go:185] GRPC response: {"name":"linstor.csi.linbit.com","vendor_version":"v0.13.1"}
I0108 15:00:47.987648       1 connection.go:186] GRPC error: <nil>
I0108 15:00:47.987657       1 main.go:154] CSI driver name: "linstor.csi.linbit.com"
I0108 15:00:47.987714       1 node_register.go:52] Starting Registration Server at: /registration/linstor.csi.linbit.com-reg.sock
I0108 15:00:47.987884       1 node_register.go:61] Registration Server started at: /registration/linstor.csi.linbit.com-reg.sock
I0108 15:00:47.987938       1 node_register.go:83] Skipping healthz server because HTTP endpoint is set to: ""
I0108 15:00:49.379501       1 main.go:80] Received GetInfo call: &InfoRequest{}
I0108 15:00:49.412651       1 main.go:90] Received NotifyRegistrationStatus call: &RegistrationStatus{PluginRegistered:false,Error:RegisterPlugin error -- plugin registration failed with err: rpc error: code = Unknown desc = failed to retrieve node topology: failed to get storage pools for node: 404 Not Found,}
E0108 15:00:49.412696       1 main.go:92] Registration process failed with error: RegisterPlugin error -- plugin registration failed with err: rpc error: code = Unknown desc = failed to retrieve node topology: failed to get storage pools for node: 404 Not Found, restarting registration container.

Here is a message from a pod attempting to mount a provisioned PVC:

AttachVolume.Attach failed for volume "pvc-de8fe93c-7431-4e62-981f-49b2541a95de" : CSINode rke1w does not contain driver linstor.csi.linbit.com

However, I can plainly see the storage was provisioned:

image

What might I be doing wrong? When installing from helm I'm pretty much using your example values.

Thanks.

kvaps commented 2 years ago

Hi, could you provide also output of linstor n l and linstor sp l commands?

Is linstor-satellite daemonset running on rke1w?

kubectl get pod -n linstor --field-selector spec.nodeName=rke1w -l app=linstor-satellite

check the configurator logs:

kubectl logs -n linstor <pod_name> -c configurator
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue is being automatically closed due to inactivity.