ESXi upgrade pre-check fails with error: Missing host <ESXi_FQDN> from the SDDC Manager inventory
book
Article ID: 371320
calendar_today
Updated On:
Products
VMware SDDC ManagerVMware Cloud Foundation 5.x
Issue/Introduction
ESXi host upgrade or Upgrade Pre-check fails with error: Missing host <ESXI_FQDN> from the SDDC Manager inventory".
In vCenter inventory the ESXi FQDN is esxi01.example.com and in SDDC it is ESXI01.example.com
Environment
VMware Cloud Foundation 5.x
Cause
The cause of the issue is due to a mismatch of ESXi host name.
ESXi host name in the vCenter Inventory differs with the host name in SDDC manager.
Resolution
Take snapshot of SDDC Manager VM
SSH to SDDC Manager with vcf and su to root
List the hosts and their ids from the host table (Here you will notice case sensitive difference in the host name.)
psql -h localhost -U postgres -d platform -c "select id, hostname from host where hostname='ESXI01.example.com'"
for VCF 5.1:
/usr/pgsql/13/bin/psql -h localhost -U postgres -d platform -c "select id, hostname from host where hostname='ESXI01.example.com'"
Sample Output
id | hostname
--------------------------------------+-----------------------------
########-####-####-####-########35de | ESXI01.example.com
Update the host name with the one in the vCenter Inventory.
psql -h localhost -U postgres -d platform -c "update host set hostname='esxi01.example.com' where id='<id of the host from Step # 3>';
For VCF 5.1:
/usr/pgsql/13/bin/psql -h localhost -U postgres -d platform -c "update host set hostname='esxi01.example.com' where id='<id of the host from Step # 3>';
Re-run the command in Step # 3 to ensure that the host names are updated correctly and matching with the ones in the vCenter Inventory.