Cannot remediate NSX prepared Host that are stateless
book
Article ID: 387724
calendar_today
Updated On:
Products
VMware NSX
Issue/Introduction
This issue affects NSX 4.2.1, and upgrading to this version will result in encountering the problem.
Reboots of stateless hosts can cause this issue
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.
In the process of the upgrading the NSX vibs on the ESXI and you use Host profiles to remediate the following ERROR is generated: "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."
Log lines similar to the below are encountered in /var/log/nsxaVim.log
2025-01-28T09:51:05Z nsxaVim: [2107567]: ERROR Failed to fetch or update ports dvs (## ## ## ## ## ## ## ## ## ## ## ##): {'fault': 'NotFound', 'msg': 'The object or item referred to could not be found.', 'faultMessage': []}^@
Environment
NSX
Cause
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 .
Resolution
This is a known issue impacting VMware NSX .
Workaround
Place the ESXI into Maintenance mode ,move the host to the Datacenter level of the vCenter Inventory
Once the ESXI has been removed from the cluster it should begin uninstalling NSX from the host automatically. To confirm that NSX vibs have been removed run the below command on the ESXI shell esxcli software vib list | grep nsx