ESXi Host has just been re-imaged and NSX needs to be re-installed
Old ESXi object is hung in NSX from a previous task of adding a host to a cluster that failed
Stale ESXi host shows the configuration state as "Host Disconnected" in NSX UI
Removing the ESXi host from the cluster shows Host under the "Other Nodes" tab
Moving the ESXi host back into the cluster shows the configuration state as "Orphaned" in NSX UI
The API call DELETE https://<NSX Mgr IP>/policy/api/v1/infra/sites/default/enforcement-points/default/host-transport-nodes/<NSX Transportnode ID>?force=true&unprepare_host=false has been used to clean up the stale host entry in NSX
Moving the ESXi host back into the cluster shows host as "Not Configured" and does not trigger the installation of NSX on the host
Unable to use the "Configure NSX" option because the cluster is a VCP enabled cluster and all options are greyed out
In vSphere client, the ESXi is out of compliance with error message - "Desired configuration failed validation on host. Check compliance is skipped"
Environment
VCF 9.0.1
Cause
The ESXi host is not in compliance with desired configuration
The ESXi host was configured with a "Referenced host" from a different site
Resolution
The new host needs be in compliance with desired configuration
Ensure that the "Referenced host" used for configuring the host belongs to the same site as the new host
If host is not in compliance, follow the steps below to import configuration
Import from Host > Select reference host > Import
Check Compliance again and Apply the configuration
NOTE: NSX installation should begin automatically on the ESXi host once it is in compliance with the desired configuration