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

[1.29] Update vSphere CPI/CSI Charts #5218

Closed
caroline-suse-rancher opened this issue Jan 8, 2024 · 1 comment
Closed

[1.29] Update vSphere CPI/CSI Charts #5218

caroline-suse-rancher opened this issue Jan 8, 2024 · 1 comment

Comments

@caroline-suse-rancher
Copy link
Contributor

This issue is to track the progress on updating the vSphere CPI/CSI charts for 1.29 release line. For reference to how we've done this in the past, please see #4275

@mdrahman-suse
Copy link
Contributor

Validated on RC v1.29.3-rc1+rke2r1

Testing

pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: claim1
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: vsphere-csi-sc
  resources:
    requests:
      storage: 1Gi
pod.yaml
apiVersion: "v1"
kind: "Pod"
metadata:
  name: "basic"
  labels:
    name: "basic"
spec:
  nodeSelector:
    kubernetes.io/os: linux
  containers:
    - name: "basic"
      image: ranchertest/mytestcontainer:unprivileged
      ports:
        - containerPort: 8080
          name: "basic"
      volumeMounts:
        - mountPath: "/data"
          name: "pvol"
  volumes:
    - name: "pvol"
      persistentVolumeClaim:
        claimName: "claim1"
  • Create a Ubuntu VM in vSphere7
  • Add config and vsphere details
  • Install rke2
  • Ensure the cluster is up
  • Deploy pvc.yaml and pod.yaml attached to pvc
  • Validate pvc attached to instance in vSphere

Replication

  • Observed *vsphere-csi pods in ImagePullBackOff, pod deployment in Pending state and no pvc is attached to the instance
$ rke2 -v
rke2 version v1.29.2+rke2r1 (08699dfffdf75a61a5e6064f9f8efe8ddae857fe)
go version go1.21.7 X:boringcrypto
  • ProviderID
$ kubectl describe nodes | grep -i provider
                    rke2.io/node-args: ["server","--write-kubeconfig-mode","644","--cloud-provider-name","rancher-vsphere"]
ProviderID:                   vsphere://4216015c-0cf7-8d41-5ed6-3fc7eab87537
  • Cluster
NAME          STATUS   ROLES                       AGE     VERSION
rancherhost   Ready    control-plane,etcd,master   3m16s   v1.29.2+rke2r1

NAMESPACE     NAME                                                    READY   STATUS             RESTARTS   AGE
default       basic                                                   0/1     Pending            0          23s
kube-system   etcd-rancherhost                                        1/1     Running            0          3m25s
kube-system   helm-install-rancher-vsphere-cpi-mwwlt                  0/1     Completed          0          3m36s
kube-system   helm-install-rancher-vsphere-csi-bg5h2                  0/1     Completed          0          3m36s
kube-system   helm-install-rke2-canal-xhl8t                           0/1     Completed          0          3m36s
kube-system   helm-install-rke2-coredns-vmx6s                         0/1     Completed          0          3m36s
kube-system   helm-install-rke2-ingress-nginx-mqp22                   0/1     Completed          0          3m36s
kube-system   helm-install-rke2-metrics-server-8fjk6                  0/1     Completed          0          3m36s
kube-system   helm-install-rke2-snapshot-controller-crd-svmpc         0/1     Completed          0          3m36s
kube-system   helm-install-rke2-snapshot-controller-h8xxg             0/1     Completed          0          3m36s
kube-system   helm-install-rke2-snapshot-validation-webhook-d9xht     0/1     Completed          0          3m36s
kube-system   kube-apiserver-rancherhost                              1/1     Running            0          3m51s
kube-system   kube-controller-manager-rancherhost                     1/1     Running            0          3m50s
kube-system   kube-proxy-rancherhost                                  1/1     Running            0          3m45s
kube-system   kube-scheduler-rancherhost                              1/1     Running            0          3m50s
kube-system   rancher-vsphere-cpi-cloud-controller-manager-xf6h8      1/1     Running            0          3m27s
kube-system   rke2-canal-c4bc7                                        2/2     Running            0          3m27s
kube-system   rke2-coredns-rke2-coredns-6fd7bb5597-2s4lb              1/1     Running            0          3m27s
kube-system   rke2-coredns-rke2-coredns-autoscaler-55fb4bbbcf-z4rhl   1/1     Running            0          3m27s
kube-system   rke2-ingress-nginx-controller-k6x7c                     1/1     Running            0          2m46s
kube-system   rke2-metrics-server-544c8c66fc-w768z                    1/1     Running            0          2m55s
kube-system   rke2-snapshot-controller-59cc9cd8f4-7vqht               1/1     Running            0          2m54s
kube-system   rke2-snapshot-validation-webhook-54c5989b65-6ss5c       1/1     Running            0          2m56s
kube-system   vsphere-csi-controller-65dfb876cd-665wr                 0/5     ImagePullBackOff   0          3m27s
kube-system   vsphere-csi-controller-65dfb876cd-985ff                 0/5     ImagePullBackOff   0          3m27s
kube-system   vsphere-csi-controller-65dfb876cd-qqqrp                 0/5     ImagePullBackOff   0          3m27s
kube-system   vsphere-csi-node-4wkw6                                  0/3     ImagePullBackOff   0          3m14s
  • Chart status and version
$ helm ls -A
NAME                            	NAMESPACE  	REVISION	UPDATED                                	STATUS  	CHART                                       	APP VERSION
rancher-vsphere-cpi             	kube-system	1       	2024-03-18 19:38:05.51389472 +0000 UTC 	deployed	rancher-vsphere-cpi-1.5.100                 	1.26.1
rancher-vsphere-csi             	kube-system	1       	2024-03-18 19:38:05.555502028 +0000 UTC	deployed	rancher-vsphere-csi-3.0.1-rancher101        	3.0.1-rancher1
...

Validation

  • Observed *vsphere-csi pods, pod deployment in Running state and pvc is attached
Screen Shot 2024-03-18 at 3 07 25 PM
$ rke2 -v
rke2 version v1.29.3-rc2+rke2r1 (1c82f7ed292c4ac172692bb82b13d20733909804)
go version go1.21.8 X:boringcrypto
  • ProviderID
$ kubectl describe nodes | grep -i provider
                    rke2.io/node-args: ["server","--write-kubeconfig-mode","644","--cloud-provider-name","rancher-vsphere"]
ProviderID:                   vsphere://4216015c-0cf7-8d41-5ed6-3fc7eab87537
  • Cluster
NAME          STATUS   ROLES                       AGE     VERSION
rancherhost   Ready    control-plane,etcd,master   13m   v1.29.3+rke2r1

NAMESPACE     NAME                                                   READY   STATUS      RESTARTS      AGE
default       basic                                                  1/1     Running     0             104s
kube-system   etcd-rancherhost                                       1/1     Running     0             10m
kube-system   helm-install-rancher-vsphere-cpi-wmn26                 0/1     Completed   0             11m
kube-system   helm-install-rancher-vsphere-csi-ntbn9                 0/1     Completed   0             11m
kube-system   helm-install-rke2-canal-cfssw                          0/1     Completed   0             11m
kube-system   helm-install-rke2-coredns-d7c4l                        0/1     Completed   0             11m
kube-system   helm-install-rke2-ingress-nginx-z6f79                  0/1     Completed   0             11m
kube-system   helm-install-rke2-metrics-server-gz7lw                 0/1     Completed   0             11m
kube-system   helm-install-rke2-snapshot-controller-crd-66zbh        0/1     Completed   0             11m
kube-system   helm-install-rke2-snapshot-controller-zn4fb            0/1     Completed   0             11m
kube-system   helm-install-rke2-snapshot-validation-webhook-pc4zw    0/1     Completed   0             11m
kube-system   kube-apiserver-rancherhost                             1/1     Running     0             11m
kube-system   kube-controller-manager-rancherhost                    1/1     Running     0             11m
kube-system   kube-proxy-rancherhost                                 1/1     Running     0             11m
kube-system   kube-scheduler-rancherhost                             1/1     Running     0             11m
kube-system   rancher-vsphere-cpi-cloud-controller-manager-f4kkh     1/1     Running     0             11m
kube-system   rke2-canal-m9nm8                                       2/2     Running     0             11m
kube-system   rke2-coredns-rke2-coredns-5b7d84d764-qgl7s             1/1     Running     0             11m
kube-system   rke2-coredns-rke2-coredns-autoscaler-b49765765-6k6nv   1/1     Running     0             11m
kube-system   rke2-ingress-nginx-controller-b48wm                    1/1     Running     0             10m
kube-system   rke2-metrics-server-544c8c66fc-c9lrd                   1/1     Running     0             10m
kube-system   rke2-snapshot-controller-59cc9cd8f4-fn2bw              1/1     Running     0             10m
kube-system   rke2-snapshot-validation-webhook-54c5989b65-txxd4      1/1     Running     0             10m
kube-system   vsphere-csi-controller-7bd49dff97-btzk5                5/5     Running     1 (10m ago)   11m
kube-system   vsphere-csi-controller-7bd49dff97-cm2dx                5/5     Running     0             11m
kube-system   vsphere-csi-controller-7bd49dff97-tz2pw                5/5     Running     0             11m
kube-system   vsphere-csi-node-2xw82                                 3/3     Running     2 (10m ago)   10m
  • Chart status and version
$ helm ls -A
NAME                            	NAMESPACE  	REVISION	UPDATED                                	STATUS  	CHART                                       	APP VERSION
rancher-vsphere-cpi             	kube-system	1       	2024-03-18 19:55:27.430669671 +0000 UTC	deployed	rancher-vsphere-cpi-1.7.001                 	1.28.0
rancher-vsphere-csi             	kube-system	1       	2024-03-18 19:55:27.283842049 +0000 UTC	deployed	rancher-vsphere-csi-3.1.2-rancher101        	3.1.2-rancher1
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants