GET /policy/api/v1/infra/segments/test-segment/state
{
"segment_path": "/infra/segments/test-segment",
"state": "failed",
"details": []
}
VMware NSX-T Data Center
VMware NSX
The failed state occurs when a vDS referenced by NSX no longer exists in the vCenter inventory. The failed state has no functional dataplane impact.
This issue is resolved in VMware NSX 9.0, available at Broadcom downloads.
If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.
Workaround
Note: The following steps require care and precision to execute correctly. If in doubt, please open a support case, and a technical support engineer can implement them.
Step 1: Confirm which vDS exist in vCenter and their UUID
3. Open a new browser tab and use the url https://VCENTER_FQDN_or_IP/mob/?moid=<value identified above i.e. dvs-2040052>:
The UUID of the vDS is 50 1d 74 40 ## ## ## b1-bd ## ## ## 41 fc 21 6f
4. Compile a list of UUIDS for all vDS. Note if there are multiple Compute Managers configured, check all vCenters.
Step 2: Remediation
delete_lsstate_stale_vds.py, to one NSX Managerpython3 ./delete_lsstate_stale_vds.py --detect_stale_vds
#Stale VDS ID
-----------------------------------------------
50 03 59 ## ## ## ## ## ## ## ## ## ## ## 84 e9
50 25 5f ## ## ## ## ## ## ## ## ## ## ## 5e 40
50 25 db ## ## ## ## ## ## ## ## ## ## ## e0 cc
50 03 76 ## ## ## ## ## ## ## ## ## ## ## d9 bd
50 03 0b ## ## ## ## ## ## ## ## ## ## ## 81 db
python3 ./delete_lsstate_stale_vds.py --vds_id "<VDS ID>" --read_only
python3 ./delete_lsstate_stale_vds.py --vds_id "50 03 59 ## ## ## ## ## ## ## ## ## ## ## 84 e9" --read_only
python3 ./delete_lsstate_stale_vds.py --vds_id "<Stale vDS UUID>" --cleanup
python3 ./delete_lsstate_stale_vds.py --vds_id "50 03 59 ## ## ## ## ## ## ## ## ## ## ## 84 e9" --cleanup
start search resync allNote: If a valid vDS is deleted from the NSX DB in error, the vDS will remain in vCenter. It can be reloaded to the NSX DB by restarting the inventory service on all 3 Manager as an admin CLI user: restart service cm-inventory