VPC Resources Remain in NSX UI After vSphere Supervisor Deletion
search cancel

VPC Resources Remain in NSX UI After vSphere Supervisor Deletion

book

Article ID: 429181

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

After deactivating or deleting a vSphere Supervisor, administrators may find that associated VPC resources are not automatically removed and remain visible in the NSX Manager UI.

  • The Delete option for these VPCs is greyed out in the NSX UI.

  • Manual deletion via API fails with an HTTP 403 Forbidden error.

  • Log messages indicate ownership validation failures or "Principal Identity" mismatches.

Environment

  • VMware NSX
  • vCenter Server
  • VMware vSphere

Cause

The issue is caused by a synchronization failure and an Ownership Lock between the vCenter WCP service and the NSX Management Cluster.

  1. Identity Ownership: VPCs created by the Supervisor are owned by a specific Principal Identity. NSX security prevents other users (including local Administrators) from modifying or deleting these system-managed objects.

  2. Service Interruption: If the vCenter wcpsvc (Workload Control Plane service) restarts or crashes during the cleanup process, the session for the "Owner" identity is lost.

  3. Communication Gap: If the NSX Management Cluster undergoes a leadership transition (VIP failover) during this window, security tokens cannot be validated, leading to the 403 Forbidden error.

  4. Ownership Mismatch: Because the system cannot re-authenticate as the original "Owner," it attempts the deletion as the 'Administrator,' which NSX correctly blocks to maintain system integrity.

Resolution

In most cases, re-establishing the secure identity connection allows the automated process to finish.

  1. Restart Management Services: Restart the vCenter wcpsvc and, if necessary, the NSX Manager services (or reboot the appliances).

  2. Wait for Sync: Allow 15–30 minutes for the WCP service to re-authenticate with NSX and resume the cleanup task.

Use of API to delete the VPC:
If the resources remain stuck after restarting services, they can be manually removed using the NSX API by bypassing the ownership check.

Note: This requires a tool like Postman or curl.

  • API URL: DELETE https://<nsx-mgr-ip>/policy/api/v1/enforcement-points/default/vpc/<vpc-id>

  • Required Header: X-Allow-Overwrite: true

The X-Allow-Overwrite: true header allows a local administrator to override the Principal Identity lock and delete orphaned system-managed objects.