This is a known issue impacting VMware NSX.
Workaround:
- First, manually remove the VTEP vmkernel interfaces on the ESXi host:
esxcli network ip interface remove --interface-name=vmk10 - repeat for all VTEP vmkernel interfaces.
- Then, manually remove the VTEP, vdrPort and spfPort ports from the DVS:
net-dvs [ -A | -D ] -p port switch_name - add/delete a port from a dvswitch
net-dvs -D -p xxxxxxxx-9801-4fed-xxxxxxxxxxxx dvs-name
- To find the port used for the VTEP/vdrPort/spfPort , run the command:
net-dvs -l -> then search the results for VTEP and the port should be listed just above the word VTEP, i.e. if you have 2 VTEP's, you should see the entry twice and need to run the command twice to remove both VTEP ports from the DVS.
- Run del nsx again on the ESXi host.
- If this still fails, you can run the following command, to force the hot swap of the CVDS to DVS:
./usr/lib64/vmware/nsx-opsagent/bin/nsxcfg-vswitch -s
- Then rerun del nsx again to complete the removal of NSX-T from the ESXi host.
- If this still fails, please go to mob of the ESXi host https://<esxi-host>/mob and destroy the VDS/NVDS with the properties