"Host profile apply failed with error: NSX Switch configuration failed in NSX. Please check transport node realization status in NSX for current status and error details."
var/run/log/nsxaVim.log in the ESXi support bundle:
nsxaVim: [2107567]: ERROR Failed to fetch or update ports dvs (## ## ## ## ## ## ## ## ## ## ## ##): {'fault': 'NotFound', 'msg': 'The object or item referred to could not be found.', 'faultMessage': []}^@
nsxaVim: [1052597]: INFO Result msg:[b"Port opaque data validation failed on VDS: ['## ## ## ## ## ## ## ## ## ## ## ##']"]^@
VMware NSX
VMware NSX-T Data Center
The ESXi are NSX prepared and are stateless, so they need an auto-deploy server to provide the required start files when hosts power on.
The code assumes that there DVS and ports exist on the host but at this time, the stateless host only has the temporary DVS (with prefix M-), and fails as a result of this.
This issue is resolved in VMware NSX 4.2.2, available at Broadcom downloads.
If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.
Workaround
esxcli software vib list | grep nsx