Symptoms:
"failed to install software on a host <hostname>:java.rmi.RemoteExcepion:
[Live installation error] Error in running ['/rtc/init.d/nsx-opsagent'. 'stop'. 'upgrade']: Return code : 1 Output OK to upgrade nsx-opsagent stop nsx-opsagent stop watchdog
Terminating watchdog process with process PID 2105211 sh: you need to specify whom to kill nsx-ops-agent service is stopping cp: can't stat"
cpu48:4580298)Mod: 5098: Unloading module <vmk-module-uuid> ...
cpu48:4580298)vdl2: VDL2Cleanup:756: [nsx@6876 comp="nsx-esx" subcomp="<vmk-module-uuid>"]Starting cleanup
cpu48:4580298)ALERT: Mod: 5251: Failed to unload module <vmk-module-uuid>, since its consumed resource count is 1. Waiting...
cpu48:4580298)ALERT: Mod: 5280: Failed to unload module <vmk-module-uuid>, since its consumed resource count is
com.vmware.nsx.spf.enabled
com.vmware.nsx.vdl2.enabled
com.vmware.net.portset.fc.enabled
com.vmware.net.portset.fc.mcast.enabled
# net-dvs -l | grep com.vmware.nsx.kcp (Also confirm for com.vmware.nsx.spf, com.vmware.nsx.vdl2, com.vmware.net.portset.fc and com.vmware.net.portset.fc.mcast)
com.vmware.nsx.kcp.enable = true , propType = CONFIG
com.vmware.nsx.kcp.enable = true , propType = CONFIG
# net-dvs -u "<property>" -p hostPropList <switchName>
# esxcfg-vswitch -l
# net-dvs -u com.vmware.nsx.kcp.enable -p hostPropList RegionA01-VDS7
com.vmware.nsx.kcp.enable = false , propType = CONFIG
com.vmware.nsx.kcp.enable = false , propType = CONFIG
# /etc/init.d/nsx-opsagent status
# /etc/init.d/nsx-opsagent start
# nsxcli> del nsx
esxcli software vib list | grep -i nsx