Cannot delete organization VDC network <network-name>
Within /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, the following snippet can be seen:
com.vmware.vcloud.api.presentation.service.BadRequestException: Cannot delete organization VDC network <Name of Network>(<ID of Network>) at com.vmware.vcloud.networking.model.network.OrgVdcNetwork.undeployAndDelete(OrgVdcNetwork.java:155) at com.vmware.vcloud.networking.services.handlerproxy.activity.networks.OrgVdcNetworkActivity.deleteOrgVdcNetwork(OrgVdcNetworkActivity.java:39)
This is a known issue affecting VMware Cloud Director 10.4.x versions.
The issue is resolved in VMware Cloud Director 10.5, available at Download Broadcom products and software.
If you cannot upgrade to VMware Cloud Director 10.5, please use the workaround specified in the Workaround section below.
Workaround:
1. From the Provider portal, click External Networks.
2. Locate the external Network that is connected to the affected OrgVDC network.
3. Click the name of the external network to display its details.
4. From the URL of the browser,copy the full URI of the external network. For example:
https://vcd.example.com/provider/cloud/ext-networks/urn:vcloud:network:312dfe56-4601-411f-9159-f8390a0cc6f6/configure/general
5. Login into NSX-T.
6. Click Networking in the top tab.
7. Click Segments under Connectivity.
8. Locate the segment that is backing the External Network in VCD.
9. Edit the segment and add the URI from Step 4 into the tags section and with scope type "SYSTEM".
10. Save the changes made to the Segment.
11. The Org VDC network can now be deleted successfully from the VCD UI.