Stale NSX port groups observed on vCenter , though the Segments have been deleted from NSX
search cancel

Stale NSX port groups observed on vCenter , though the Segments have been deleted from NSX

book

Article ID: 373354

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

The deleted segments from NSX still appear on the VCenter.

Numerous stale NSX port group entries are present in vCenter, not linked to any virtual machines.

Environment

NSX-T Data Center 3.2.x
NSX 4.0.x, 4.1.0

Cause

When deletion of a logical segment is initiated, the segment provider on one manager node deletes the logical segment. At the same time, the segment binding map provider on another manager node tries to delete the segment binding map of a segment that is already deleted. This creates a conflict and hence the segment binding map provider ends up recreating the logical switch.

Resolution

This issue is resolved in VMware NSX 3.2.4
This issue is resolved in VMware NSX 4.1.1
This issue is resolved in VMware NSX 4.2.0

Additional Information

Workaround

We can delete the stale entries through API calls.

DELETE https://<NSX manager IP>/policy/api/v1/infra/segments/<Segment IP>

Currently there is no workaround available to delete multiple logical segments at once.