Supervisor upgrade has failed - At CSI component upgrade" which cause the CSI Deployment to get deleted but never gets recreated
search cancel

Supervisor upgrade has failed - At CSI component upgrade" which cause the CSI Deployment to get deleted but never gets recreated

book

Article ID: 429925

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

  • The upgrade of the Supervisor cluster deployed using AVI failed.

  • When opening the current status of an ongoing Supervisor update by, the Update Status will show the following error :

    Log in to the vCenter Server as a vSphere administrator > Select Menu > Workload Management > Updates tab

    "A general system error occurred. Error message: Component CsiControllerUpgrade failed: Component CsiControllerUpgrade upgrade did not finish within 360 seconds timeout deadlineComponent upgrade failed."

  •  When running the following command from one of the supervisor cluster nodes to check the upgrade status we can observe that the CsiControllerUpgrade had TimedOut.

    # /usr/lib/vmware-wcp/upgrade/upgrade-ctl.py get-status | jq


    {
      "controller_id": "422272a################422b80ed",
      "state": "error",
      "messages": [
        {
          "level": "error",
          "message": "Component CsiControllerUpgrade failed: Component CsiControllerUpgrade upgrade did not finish within 360 seconds timeout deadline"
        },
        {
          "level": "error",
          "message": "Component upgrade failed."
        }
      ],
      "started_at": "2026-02-02T18:41:49.290624Z",
      "last_modified": "2026-02-02T18:49:32.985112Z",
      "progress": {
        "WCPClusterCapabilities": {
          "status": "upgraded",
          "messages": []
      
        <Snip>

        },
        "CsiControllerUpgrade": {
          "status": "failed",
          "messages": [
            {
              "level": "error",
              "message": "Component CsiControllerUpgrade failed: Component CsiControllerUpgrade upgrade did not finish within 360 seconds timeout deadline"
            }
          ]
        },
        "TMCUpgrade": {
          "status": "pending",
          "messages": [].

  • The upgrade-ctl-compupgrade.log on the supervisor cluster node will show events where the deletion of the old CSi config had timed out after 6 minutes "360 Seconds.

    Note: The default Timeout threshold for the CsiControllerUpgrade is 360 seconds.

    /var/log/vmwar/upgrade-ctl-compupgrade.log on the supervisor master node will show event similer to the following:

    2026-02-02T18:43:33.814Z INFO comphelper: Recreating config from /usr/lib/vmware-wcp/objects/csi/1.30
    2026-02-02T18:43:33.814Z INFO comphelper: Running ['kubectl', 'delete', '-f', '/usr/lib/vmware-wcp/objects/csi/1.30', '--ignore-not-found=true'].          [Delete started]

    2026-02-02T18:49:32.909Z INFO comphelper: Resetting timeout handler.    [TimeOut after 6 minutes] 
    2026-02-02T18:49:32.910Z ERROR compupgrade: {"error": "Exception", "message": "Component CsiControllerUpgrade upgrade did not finish within 360 seconds timeout deadline", "backtrace": ["  File \"/usr/lib/vmware-wcp/upgrade/compupgrade.py\", line 527, in do_upgrade_with_resume_failed_support\n    raise Exception(str(e))\n"]}

    Note: To ssh to the supervisor cluster node to check the logs see KB Troubleshooting vSphere Supervisor Control Plane VMs.

Environment

VMware vSphere Kubernetes Service deployed with AVI.

Cause

  • The CsiControllerUpgrade task will run as part of the superviser cluster upgrade and will delete  old vsphere-csi-controller  deployment and  the old vsphere-csi-webhook  deployment under the  vmware-system-csi namespace before installing  new CSI version:.

  • The CsiControllerUpgrade upgrade stuck due to vsphere-csi-controller service type LB never got deletes as part of the CsiControllerUpgrade task.

    # kubectl  get all -n vmware-system-csi


    NAME                             TYPE           CLUSTER-IP        EXTERNAL-IP   PORT(S)                         AGE
    service/vsphere-csi-controller   LoadBalancer   100.##.##.218   10.##.##.1     2112:30699/TCP,2113:30471/TCP    249d

  • The describe of the vsphere-csi-controller service shows that there is a deletionTimestamp set on the service but the service never got deleted.

# kubectl describe svc vsphere-csi-controller  -n vmware-system-csi

apiVersion: v1
kind: Service
metadata:
  creationTimestamp: "2025-05-29T14:31:27Z"
  deletionGracePeriodSeconds: 0
  deletionTimestamp: "2026-02-02T18:43:33Z"
  finalizers:
  - netoperator.vmware.com/service
  labels:
    app: vsphere-csi-controller
    service.route.lbapi.run.tanzu.vmware.com/gateway-name: vsphere-csi-controller
    service.route.lbapi.run.tanzu.vmware.com/gateway-namespace: vmware-system-csi
    service.route.lbapi.run.tanzu.vmware.com/type: direct
  name: vsphere-csi-controller
  namespace: vmware-system-csi
  resourceVersion: "324905850"
  uid: de1116c7-####-####-####-#####010f3d
spec:
  allocateLoadBalancerNodePorts: true
  clusterIP: 100.##.##.218
  clusterIPs:
  - 100.##.##.218
  externalTrafficPolicy: Cluster
  internalTrafficPolicy: Cluster
  ipFamilies:
  - IPv4
  ipFamilyPolicy: SingleStack
  ports:
  - name: ctlr
    nodePort: 30699
    port: 2112
    protocol: TCP
    targetPort: 2112
  - name: syncer
    nodePort: 30471
    port: 2113
    protocol: TCP
    targetPort: 2113
  selector:
    app: vsphere-csi-controller
  sessionAffinity: None
  type: LoadBalancer
status:
  loadBalancer:
    ingress:
    - ip: 10.##.##.1
      ipMode: VIP

  • The netop-controller-manager pods logs on the supervisor cluster context shows the deletion of vsphere-csi-controller service is pending the deletion of the gateway.


    # kubectl logs -n vmware-system-netop vmware-system-netop-controller-manager-<pod Name> -c manager | less

    2026-02-02T18:43:33.927844503Z stderr F I0202 18:43:33.918844       1 servicev2lb.go:277] controllers/LBService/vmware-system-csi/vsphere-csi-controller "msg"="Successfully requested delete of gateway. Will wait for gateway to be gone before removing corresponding service"  "name"="vsphere-csi-controller" "namespace"="vmware-system-csi"
    2026-02-02T18:43:33.927859869Z stderr F I0202 18:43:33.918860       1 lbservice_controller.go:89] controllers/LBService/vmware-system-csi/vsphere-csi-controller "msg"="Reconcile of LB type service done"
    2026-02-02T18:43:33.927862924Z stderr F I0202 18:43:33.918909       1 lbservice_controller.go:86] controllers/LBService/vmware-system-csi/vsphere-csi-controller "msg"="Reconcile of LB type service started"
    2026-02-02T18:43:33.935493104Z stderr F I0202 18:43:33.933497       1 servicev2lb.go:277] controllers/LBService/vmware-system-csi/vsphere-csi-controller "msg"="Successfully requested delete of gateway. Will wait for gateway to be gone before removing corresponding service"  "name"="vsphere-csi-controller" "namespace"="vmware-system-csi"


  • The  describe of vsphere-csi-controller gateway on the supervisor cluster context shows that it has been marked for deletion but never got deleted.

    # kubectl describe gateway  vsphere-csi-controller -n vsphere-csi-controller

    apiVersion: networking.x-k8s.io/v1alpha1pre1

    kind: Gateway
    metadata:
      annotations:
        lbapi.run.tanzu.vmware.com/trace-id: domain-c9:264dedfb-#####-####-####-#####b9f252
      creationTimestamp: "2025-05-29T14:34:18Z"
      deletionGracePeriodSeconds: 0
      deletionTimestamp: "2026-02-02T18:43:33Z"
      finalizers:
      - gateway.ako.vmware.com
      generation: 2
      name: vsphere-csi-controller
      namespace: vmware-system-csi
      ownerReferences:
      - apiVersion: v1
        kind: Service
        name: vsphere-csi-controller
        uid: de1116c7-###-####-####-#####1010f3d
      resourceVersion: "324905853"
      uid: 652b35a6-####-###-####-#####a6d0e


Resolution