This is a known issue affecting VMware NSX-T Datacenter 2.4.x.
The issue is fixed in the version - NSX 2.5.1 and VCF 3.10
Workaround:
To work around this issue:
- Reboot the failed upgraded hosts to fix module unloading error.
- Run this script to remove NSX-T 2.4.x:
#!/bin/sh
set -ex
# Remove uplinks
esxcfg-vswitch -Q vmnic1 -V uplink-1 "DvsPortset-0"
# Remove vmks
DVPortID=$(nsxdp-cli vswitch instance list | grep vmk50 | awk '{print $3}')
esxcfg-vmknic --netstack=vxlan -d -v 10 -s DvsPortset-0
esxcfg-vmknic --netstack=hyperbus -d -v $DVPortID -s "DvsPortset-0"
# Remove VDR port
vmkload_mod -u nsxt-vdrb
# Remove Opaque switch
vsish -e set /net/portsets/DvsPortset-0/destroy destroy
# Remove NSX-T 2.4.x vibs
esxcli software vib remove -f -n nsx-adf -n nsx-aggservice -n nsx-cli-libs -n nsx-common-libs -n nsx-esx-datapath -n nsx-exporter -n nsx-host -n nsx-metrics-libs -n nsx-mpa -n nsx-nestdb-libs -n nsx-nestdb -n nsx-netcpa -n nsx-opsagent -n nsx-platform-client -n nsx-profiling-libs -n nsx-proxy -n nsx-python-gevent -n nsx-python-greenlet -n nsx-python-logging -n nsx-python-protobuf -n nsx-rpc-libs -n nsx-sfhc -n nsx-upm-libs -n nsx-vdpi
- Go back to NSX Manager > System > Fabric > Nodes and resolve the failed hosts. This installs the NSX-T 2.5.0 VIBs on them.