The deleted segments from NSX still appear on the vCenter inventory.
Numerous stale NSX port group entries are present in vCenter, not linked to any virtual machines.
VMware NSX-T Data Center
VMware NSX
The issue stems from a race condition during the cleanup process across two different manager nodes.
The Segment provider successfully deleted the Logical Switch on its node. However, during the cleanup of the segment binding map, the Segment binding map provider attempted to update the same Logical Switch from its manager node to remove the relationship between the switch and the associated profile. This is the expected behavior for binding map cleanup. Because the update was initiated concurrently from a separate manager node, it resulted in the Logical Switch being inadvertently recreated.
This issue is resolved in:
VMware NSX-T Data Center 3.2.4
VMware NSX 4.1.1 and higher
VMware NSX 4.2.0 and higher
Workaround
Stale entries can be removed from NSX using the following API call:
DELETE https://<NSX manager IP>/policy/api/v1/infra/segments/<Segment ID>
Important Note: