Commissioning a host fails before the host is added to VMware Cloud Foundation. The task ends COMPLETED_WITH_FAILURE.
Error code: HOSTS_VALIDATION_FOR_COMMISSION_FAILED
The following error is observed in the SDDC Manager's operationsmanager.log:/var/log/vmware/vcf/operationsmanager/operationsmanager.log
Host ESXi version - [9.1.1.0100.25752147] is not supported. VCF supported ESXi versions - [9.1.1.0.25714478, 9.0.0.0.24755229]
The same failure is reported for each host in the commission request. Cluster expansion stays blocked.
VMware Cloud Foundation 9.1.1
VCFSupportedESXiVersionValidator requires an exact build match against the versions returned by LCM for productType=ESX and scope=DEPLOYMENT.
That list is the ESXi versions already present on hosts in the LCM logical-inventory cache, plus the ESXi versions in the VI BOM. A build that was just downloaded and used to image a host is not in that list until some host already in logical inventory is running it, or the BOM contains it.
On 9.1, after the first successful inventory sync, the 5-minute sync runs only when a refresh trigger is set. The hourly long poll sets that trigger. POST /lcm/inventory/refresh sets it and syncs immediately. A later periodic refresh reloads hosts already in logical inventory. It does not add a build that exists only on a host that has not been commissioned yet.
This issue will be fixed in VMware Cloud Foundation 9.1.2
Workaround:
Use this when the ESXi build is already running on a host in logical inventory and the LCM cache is stale. On SDDC Manager, refresh the cache, confirm the build is listed, then retry commission.
curl -sk -X POST http://localhost/lcm/inventory/refreshcurl -sk -H "Authorization: Bearer $TOKEN" "https://localhost/v1/compliant-versions?productType=ESX&scope=DEPLOYMENT"