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

PV mount to POD fails and csi.driver is not listed #51

Open
ludurr opened this issue Jul 27, 2021 · 3 comments
Open

PV mount to POD fails and csi.driver is not listed #51

ludurr opened this issue Jul 27, 2021 · 3 comments

Comments

@ludurr
Copy link

ludurr commented Jul 27, 2021

Hi,
i have used helm charts to install chubaofs. Then i created PVC based on the example provided, but

  • now it fails to mount the PV to POD:
Warning  FailedMount  115s (x2760 over 3d21h)  kubelet  MountVolume.MountDevice failed for volume "pvc-bc87ba3e-7321-492a-a812-64ef33239fcb" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name csi.lab.com not found in the list of registered CSI drivers
  • also should i be able/ or not to list the driver
kubectl  get csidrivers.storage.k8s.io
No resources found
  • version used:
  server: chubaofs/cfs-server:2.2.2
  client: chubaofs/cfs-client:2.2.2
  csi_driver: chubaofs/cfs-csi-driver:2.2.2.110.0
  csi_provisioner: quay.io/k8scsi/csi-provisioner:v1.6.0
  driver_registrar: quay.io/k8scsi/csi-node-driver-registrar:v1.3.0
  csi_attacher: quay.io/k8scsi/csi-attacher:v2.0.0
  grafana: grafana/grafana:6.4.4
  prometheus: prom/prometheus:v2.13.1
  consul: consul:1.6.1
  • kubectl and kubernetes version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"clean", BuildDate:"2021-03-18T01:10:43Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"clean", BuildDate:"2021-03-18T01:02:01Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}

Thank you

@ludurr
Copy link
Author

ludurr commented Jul 28, 2021

I can answer the 1st part of my query: error message when mounting PVC/PV to POD: driver name csi.lab.com not found in the list of registered CSI drivers

  • its because the chubaofs helm chart csi-node daemon template has incorrect mapping of the workernode's hostpath for containers: csi-driver-registrar csi-driver.

@Huweicai
Copy link
Member

Does your cfs-csi-node runs well ?
If runs well, can you provide the log of that cfs-csi-node which happend this error?
Login to the cfs-driver container, and you can found them at:

  • /cfs/logs/cfs-driver.out
  • /cfs/logs/pvc-bc87ba3e-7321-492a-a812-64ef33239fcb/client

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

2 participants