kubernetes-sigs / vsphere-csi-driver

vSphere storage Container Storage Interface (CSI) plugin
https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/index.html
Apache License 2.0
295 stars 177 forks source link

csi-resizer failed to check if plugin supports node resize #323

Closed gianmarcomurru closed 4 years ago

gianmarcomurru commented 4 years ago

/kind bug

What happened:

kubectl logs vsphere-csi-controller-74d598cb77-mw96b csi-resizer
I0818 10:33:05.762355       1 main.go:61] Version : v0.3.0-0-g150071d
I0818 10:33:05.763521       1 connection.go:151] Connecting to unix:///csi/csi.sock
I0818 10:33:05.764261       1 common.go:111] Probing CSI driver for readiness
F0818 10:33:05.766773       1 main.go:72] failed to check if plugin supports node resize: error getting node capabilities: rpc error: code = Unimplemented desc = unknown service csi.v1.Node

How to reproduce it (as minimally and precisely as possible): After installing vsphere-cpi via Helm (Docs) I installed vphere-csi like this: Created a secret: kubectl create secret generic vsphere-config-secret --from-file=csi-vsphere.conf --namespace=kube-system Created Roles, ServiceAccount and ClusterRoleBinding and CSI Drivers:

kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/master/manifests/v2.0.0/vsphere-7.0/vanilla/deploy/vsphere-csi-node-ds.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/master/manifests/v2.0.0/vsphere-7.0/vanilla/deploy/vsphere-csi-controller-deployment.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/master/manifests/v2.0.0/vsphere-7.0/vanilla/rbac/vsphere-csi-controller-rbac.yaml

Anything else we need to know?:

Environment:

NAME=“Ubuntu” VERSION=“18.04.3 LTS (Bionic Beaver)” ID=ubuntu ID_LIKE=debian PRETTY_NAME=“Ubuntu 18.04.3 LTS” VERSION_ID=“18.04" HOME_URL=“https://www.ubuntu.com/” SUPPORT_URL=“https://help.ubuntu.com/” BUG_REPORT_URL=“https://bugs.launchpad.net/ubuntu/” PRIVACY_POLICY_URL=“https://www.ubuntu.com/legal/terms-and-policies/privacy-policy” VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

Helm for vsphere-cpi

gianmarcomurru commented 4 years ago

I just need to use vsphere version 6.7 U3

rohansadale commented 4 years ago

@gianmarcomurru did using vSphere 6.7U3 resolve the issue?

Deployment of vsphere-csi-controller-deployment-for-OCP.yaml fails with below error -

$ oc logs -n kube-system deployment/vsphere-csi-controller csi-resizer I0818 22:49:07.078731 1 main.go:61] Version : v0.3.0-0-g150071d I0818 22:49:07.081675 1 connection.go:151] Connecting to unix:///csi/csi.sock I0818 22:49:07.083030 1 common.go:111] Probing CSI driver for readiness F0818 22:49:07.088578 1 main.go:72] failed to check if plugin supports node resize: error getting node capabilities: rpc error: code = Unimplemented desc = unknown service csi.v1.Node

Openshift CP - 4.5 vCenter - 6.7 U3

I am following the link - https://veducate.co.uk/how-to-install-vsphere-csi-driver-openshift

chethanv28 commented 4 years ago

@rohansadale Can you confirm the yaml file used for the vsphere-csi-controller deployment. Is it from here: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/master/manifests/v2.0.0/vsphere-67u3/vanilla/deploy/vsphere-csi-controller-deployment.yaml ?

saintdle commented 4 years ago

@gianmarcomurru did using vSphere 6.7U3 resolve the issue?

Deployment of vsphere-csi-controller-deployment-for-OCP.yaml fails with below error -

$ oc logs -n kube-system deployment/vsphere-csi-controller csi-resizer I0818 22:49:07.078731 1 main.go:61] Version : v0.3.0-0-g150071d I0818 22:49:07.081675 1 connection.go:151] Connecting to unix:///csi/csi.sock I0818 22:49:07.083030 1 common.go:111] Probing CSI driver for readiness F0818 22:49:07.088578 1 main.go:72] failed to check if plugin supports node resize: error getting node capabilities: rpc error: code = Unimplemented desc = unknown service csi.v1.Node

Openshift CP - 4.5 vCenter - 6.7 U3

I am following the link - https://veducate.co.uk/how-to-install-vsphere-csi-driver-openshift

Hi, are you using all the files from my repo? or mixing with the files in this repo that this issue is linked to?

nilic commented 4 years ago

@saintdle I have the same problem with your files on vSphere 6.7u3. Possible reason: #250