Error "Cannot delete. Its in use currently, has networks: 1. 'Network Name'" when deleting NSX-T Manager from the VMware Cloud Director UI.
search cancel

Error "Cannot delete. Its in use currently, has networks: 1. 'Network Name'" when deleting NSX-T Manager from the VMware Cloud Director UI.

book

Article ID: 433536

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When attempting to delete an NSX-T Manager from the VMware Cloud Director (VCD) UI, the operation fails with the following error:

Cannot delete [NSX-T Manager Name]. Its in use currently, has networks: 1. [Network Name].

  • All related Organization VDCs (OVDCs), Edge Gateways, and External Networks associated with that NSX-T Manager have already been removed from the VCD UI.

  • The specific "Network Name" mentioned in the error cannot be located or searched for within the VCD UI.

The /opt/vmware/vcloud-director/logs/vcloud-director.debug.log report a similar error as below:

| ERROR | pool-jetty-xxx | DefaultExceptionMapper | Internal server exception | requestId=xxxx-xx-xxx-xxxxx,request=DELETE https://VCDFQDN/api/admin/extension/nsxtManagers/xxxxorg.springframework.dao.DataIntegrityViolationException: could not delete: [com.vmw

Environment

VMware Cloud Director 10.6.x

 

Cause

This issue occurs due to stale network references remaining in the VMware Cloud Director database. Even though the networks are not visible in the UI, existing entries in the VCD Database prevent the deletion of the manager.

Resolution

This issue requires a manual database modification to clear the stale references.

For assistance, please get in touch with Broadcom Technical Support and reference this Knowledge Article ID (433536) in your service request. For more information, see Creating and managing Broadcom support cases.