After upgrading VMware vCenter Server to version 9.1, namespaces in vSphere Supervisor Cluster may get stuck in a “Configuring” state due to missing K8s-compliant storage policy names
search cancel

After upgrading VMware vCenter Server to version 9.1, namespaces in vSphere Supervisor Cluster may get stuck in a “Configuring” state due to missing K8s-compliant storage policy names

book

Article ID: 439835

calendar_today

Updated On:

Products

VMware Cloud Foundation Tanzu Kubernetes Runtime VMware vSphere Kubernetes Service VMware vSphere ESXi

Issue/Introduction

  • After upgrading VMware vCenter Server to version 9.1, namespaces in vSphere Supervisor Cluster may get stuck in a “Configuring” state.

  • This issue is typically observed in environments with pre-existing storage policies already assigned to namespaces before the upgrade.

  • vCenter UI shows alarm:

    •  "Failed to update K8s compliant names for pre-existing storage policies. Please restart WCP service once issue is resolved."

  • Namespace error message:

    • Unknown error - K8s compliant name for policy {{} <policy-id>} found as nil: 1

Environment

VMware Cloud Foundation 9.1

Cause

Starting with vCenter 9.1, the Workload Control Plane (WCP) service must assign Kubernetes-compatible names to all storage policies. This update is performed during the initial service startup after the vCenter upgrade. If the WCP service is unable to communicate with the Supervisor Cluster API or the Profile-Based Management (vmware-sps) service during this initial task, the naming process fails. Because the namespaces require these compliant names to map storage policies to Kubernetes storage classes, the namespaces cannot complete their configuration.

 

Resolution

The issue is resolved by ensuring core service health and re-triggering the WCP initialization task.

  1. Make sure SPS service is running and supervisor is healthy:
    • Ensure all Supervisor Cluster components are healthy in the vSphere Client under Workload Management > Supervisor Clusters.

    • Verify the status of the SPS service on the vCenter Server Appliance:
      service-control --status vmware-sps

    • If the SPS service is stopped, start it:
      service-control --start vmware-sps

  2. After validating SPS service has started and Supervisor is showing as healthy , check Namespace UI again for K8s compliant name for policy found as nil

    • If there is still an error, rename the policy from the vSphere UI to something unique. Make sure that the policy name does not overlap with any existing storageclass names across all Supervisor Cluster Kubernetes Instances via "kubectl get sc"  

  3. Restart the WCP Service:
    • Establish an SSH session to the vCenter Server Appliance.

    • Restart the WCP service to re-initiate the storage policy naming task:

      service-control --stop wcp
      service-control --start wcp

  4. Verification:
    • Confirm the namespaces transition from Configuring to Running.

    • Verify the vCenter alarm is cleared automatically.

If namespaces are still stuck after completing the above steps, contact Broadcom Support for further investigation.