Unable to Delete Stale NSX VPCs and Subnets After Supervisor Cluster Loss - VMware NSX
search cancel

Unable to Delete Stale NSX VPCs and Subnets After Supervisor Cluster Loss - VMware NSX

book

Article ID: 457617

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Due to a storage failure, all Supervisor, SSP, and Kubernetes VMs were lost. When attempting to clean up the environment for redeployment, removing the remaining VPCs and subnets within NSX fails.

  • Attempting to delete the default VPC Connectivity Profile or default VPC Service Profile in the UI is greyed out. User deletion attempts via API return error 508069.

  • Attempting to remove IP blocks fails with error 612910.

  • Attempting to delete stale VPCs manually without the correct headers returns error 289.

Environment

VMware NSX 9.x

Cause

This issue is caused by a combination of expected system behaviors and orphaned dependency states:

  1. Default Profiles (Error 508069): The default VPC Connectivity Profile and default VPC Service Profile are system-created (is_default=true) and cannot be deleted by design. They are only removed when a non-default project is deleted. This is expected behavior.

  2. IP Blocks in Use (Error 612910): Stale VPCs (e.g., kube-system_<id>) are still attached to the default profile and hold IP allocations from the auto-SNAT block. NSX prevents the removal of an IP block while these allocations exist.

  3. Ownership/Permissions (Error 289): Stale VPC objects are owned by the Supervisor's principal identity (wcp-cluster-user-<id>). Standard admin modifications are rejected without an override header.

  4. Orphaned VM Ports: In some scenarios, orphaned VM ports remain attached to a VPC subnet, causing even recursive VPC deletion commands to fail until the ports are manually cleared.

Resolution

To resolve this issue, there are few APIs that needs to be ran.

If you believe you have encountered this issue, open a support case with Broadcom Support

Additional Information

Stuck VPC Object in Pending Delete State After Transitioning NSX Connectivity Modes