Closed larhauga closed 4 years ago
hello!! csi-controller v2.0.0-rc.1 container doesn't start with following error.
kubectl describe pod vsphere-csi-node-wbnn4 -n=kube-system Events: Type Reason Age From Message
Normal Scheduled 29m default-scheduler Successfully assigned kube-system/vsphere-csi-controller-76b8d7d97b-gz4j9 to seliicbl01526-k8sw Normal Pulling 29m kubelet, seliicbl01526-k8sw Pulling image "quay.io/k8scsi/csi-attacher:v2.0.0" Normal Pulled 29m kubelet, seliicbl01526-k8sw Successfully pulled image "quay.io/k8scsi/csi-attacher:v2.0.0" Normal Created 29m kubelet, seliicbl01526-k8sw Created container csi-attacher Normal Started 29m kubelet, seliicbl01526-k8sw Started container csi-attacher Normal Pulling 29m kubelet, seliicbl01526-k8sw Pulling image "quay.io/k8scsi/csi-resizer:v0.3.0" Normal Created 29m kubelet, seliicbl01526-k8sw Created container csi-resizer Normal Pulled 29m kubelet, seliicbl01526-k8sw Successfully pulled image "quay.io/k8scsi/csi-resizer:v0.3.0" Normal Started 29m kubelet, seliicbl01526-k8sw Started container csi-resizer Normal Pulling 29m kubelet, seliicbl01526-k8sw Pulling image "gcr.io/cloud-provider-vsphere/csi/release/driver:v2.0.0-rc.1" Normal Pulled 29m kubelet, seliicbl01526-k8sw Successfully pulled image "gcr.io/cloud-provider-vsphere/csi/release/driver:v2.0.0-rc.1" Normal Created 29m kubelet, seliicbl01526-k8sw Created container vsphere-csi-controller Normal Started 29m kubelet, seliicbl01526-k8sw Started container vsphere-csi-controller Normal Pulling 29m kubelet, seliicbl01526-k8sw Pulling image "quay.io/k8scsi/livenessprobe:v1.1.0" Normal Pulling 29m kubelet, seliicbl01526-k8sw Pulling image "gcr.io/cloud-provider-vsphere/csi/release/syncer:v2.0.0-rc.1" Normal Created 29m kubelet, seliicbl01526-k8sw Created container liveness-probe Normal Started 29m kubelet, seliicbl01526-k8sw Started container liveness-probe Normal Pulled 29m kubelet, seliicbl01526-k8sw Successfully pulled image "quay.io/k8scsi/livenessprobe:v1.1.0" Normal Pulled 29m kubelet, seliicbl01526-k8sw Successfully pulled image "gcr.io/cloud-provider-vsphere/csi/release/syncer:v2.0.0-rc.1" Normal Created 29m kubelet, seliicbl01526-k8sw Created container vsphere-syncer Normal Started 29m kubelet, seliicbl01526-k8sw Started container vsphere-syncer Normal Pulling 29m kubelet, seliicbl01526-k8sw Pulling image "quay.io/k8scsi/csi-provisioner:v1.4.0" Normal Pulled 29m kubelet, seliicbl01526-k8sw Successfully pulled image "quay.io/k8scsi/csi-provisioner:v1.4.0" Normal Created 29m kubelet, seliicbl01526-k8sw Created container csi-provisioner Normal Started 29m kubelet, seliicbl01526-k8sw Started container csi-provisioner Warning Unhealthy 24m (x19 over 29m) kubelet, seliicbl01526-k8sw Liveness probe failed: Get http://10.1.248.1:9808/healthz: dial tcp 10.1.248.1:9808: connect: connection refused Warning BackOff 14m (x80 over 28m) kubelet, seliicbl01526-k8sw Back-off restarting failed container Warning BackOff 9m16s (x102 over 28m) kubelet, seliicbl01526-k8sw Back-off restarting failed container Warning BackOff 4m17s (x106 over 27m) kubelet, seliicbl01526-k8sw Back-off restarting failed container
kubectl get pods -A -o wide
kube-system vsphere-csi-controller-76b8d7d97b-gz4j9 2/6 CrashLoopBackOff 45 32m 10.1.248.1 seliicbl01526-k8sw
curl http://10.1.248.1:9808 curl: (7) Failed to connect to 10.1.248.1 port 9808: Connection refused
ping 10.1.248.1 PING 10.1.248.1 (10.1.248.1) 56(84) bytes of data. 64 bytes from 10.1.248.1: icmp_seq=1 ttl=64 time=0.032 ms 64 bytes from 10.1.248.1: icmp_seq=2 ttl=64 time=0.021 ms ^C --- 10.1.248.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1006ms rtt min/avg/max/mdev = 0.021/0.026/0.032/0.007 ms
Is this a BUG REPORT or FEATURE REQUEST?:
What happened: vsphere csi controller deployment does not start when the controller does not succeed to find file service backed by vSAN. In an environment where vSAN is not present, the
getDsToFileServiceEnabled
function fails, and the controller does not successfully start.This happens when
TargetvSANFileShareDatastoreURLs
is not configured.What you expected to happen: Expected the controller to successfully start, and to be able to provide the devices through the storage class.
How to reproduce it (as minimally and precisely as possible): In an environment without vSAN or file services (vSphere 6.7u3) the controller does not start.
Anything else we need to know?: https://github.com/kubernetes-sigs/vsphere-csi-driver/commit/760b9ab86cff4e85c9f5b775e9f67b3bf6a90921 looks to have introduced this bug, where previous errors would be ignored.
Environment:
uname -a
): 4.18.0-147.5.1.el8_1.x86_64