Host commissioning fails with HOSTS_VALIDATION_FOR_COMMISSION_FAILED: ESXi build is not in the VCF supported ESXi versions list
search cancel

Host commissioning fails with HOSTS_VALIDATION_FOR_COMMISSION_FAILED: ESXi build is not in the VCF supported ESXi versions list

book

Article ID: 458882

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware SDDC Manager / VCF Installer

Issue/Introduction

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.

Environment

VMware Cloud Foundation 9.1.1

Cause

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.

Resolution

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.

  1. SSH into the SDDC Manager with the vcf user and then elevate to root with su.

  2. Run the following command to refresh the LCM cache.

    curl -sk -X POST http://localhost/lcm/inventory/refresh

    Expect HTTP 204. Wait about 15 seconds.

  3. Query the compliant ESX versions after running the LCM refresh.

    curl -sk -H "Authorization: Bearer $TOKEN" "https://localhost/v1/compliant-versions?productType=ESX&scope=DEPLOYMENT"

  4. The imaged ESXi build must appear in the response.

  5. Retry the host commission task.