ESXi prechecks fail during VCF9 upgrade in SDDC 5.X
search cancel

ESXi prechecks fail during VCF9 upgrade in SDDC 5.X

book

Article ID: 433094

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware Cloud Foundation

Issue/Introduction

  • Running prechecks for ESXi hosts during a vCF9 upgrade in SDDC 5.X may fail with below errors. This occurs when the ESXi host returns a short hostname instead of a Fully Qualified Domain Name (FQDN), causing a NullPointerException in the EsxiThirdPartyVIBSValidator workflow.
  • Error 1

Check if ESXi host boot device and boot bank size are sufficient
ERROR
ESXi storage system check failed on host with error: null
High: Do not perform upgrade without addressing this issue.
Please ensure connection credentials are up-to-date and there is network connectivity to the ESXi host

  • Error 2

Internal error occurred while trying to perform third party VIBs validation
ERROR 
While trying to perform third party VIBs validation internal error occurred. Host has following third-party VIBs java.lang.NullPointerException
High: Do not perform upgrade without addressing this issue.
Host has following third-party VIBs java.lang.NullPointerException. For more details visit 'Third-Party Custom VIBs' page 'Update/Patches -> Third-Party Custom VIBs'

  • There are no boot device issues, no unsupported 3rd party VIBs 
  • Error 3

ERROR
Error Description
Vpxa service is not running on the host

Impact
High: Do not perform upgrade without addressing this issue.

Remediation
Go to host's services UI and start the VMware vCenter Agent (vpxa) service

  • Error in Operations manager logs in SDDC references FQDN (Log Location: cd /var/log/vmware/vcf/operationmanager)

DEBUG [vcf_om,6995ce4152e0df97fe07f3a####,####] [c.v.e.s.c.c.v.vsphere.VcManagerBase,precheck-validation8] Connecting to https://<HOSTNAME_FQND>:443/sdk
[...]
DEBUG [vcf_om,,6995ce4152e0df97fe07f3a####,#### [c.v.e.s.c.c.vmware.esx.EsxCliClient,precheck-validation8] Creating HostSystem stub for host with MOR: null
DEBUG [vcf_om,,6995ce4152e0df97fe07f3a####,#### [c.v.e.s.c.c.v.vsphere.VsphereClient,precheck-validation8] Destroying 1 open views
INFO  [vcf_om,6995ce4152e0df97fe07f3a####,#### [o.b.jsse.provider.ProvTlsClient,precheck-validation8] [client #41925 @7a68eb##] disconnected from <ESXI_FQDN>:443

  • However, the logs /var/run/log/hostd.log on host  is currently referenced only by its short hostname instead of the fully qualified domain name (FQDN).

In(166) Hostd[2098713]: [Originator@6876 sub=Vimsvc.TaskManager opID=#### sid=#### user=<ESXI_SDDC -SVC Account>] Task Created : haTask--vim.SearchIndex.findByDnsName-###
In(166) Hostd[2098727]: [Originator@6876 sub=Vimsvc.TaskManager opID=#### sid=#### user=<ESXI_SDDC -SVC Account>] Task Completed : haTask--vim.SearchIndex.findByDnsName-19311272 Status success
[...]
In(166) Hostd[2098727]: [Originator@6876 sub=Vimsvc.ha-eventmgr opID=#### sid=#### ] Event 135359 : User <ESXI_SDDC -SVC Account>@<SDDC IP> logged in as VMware vim-java 1.0
In(166) Hostd[2098737]: [Originator@6876 sub=Vimsvc.TaskManager opID=#### sid=#### user=svc-ESXI_fqdn] Task Created : haTask-ha-host-vim.host.ServiceSystem.start-19311299
In(166) Hostd[2098711]: [Originator@6876 sub=Hostsvc.VmkVprobSource] VmkVprobSource::Post event: (vim.event.EventEx) {
In(166) Hostd[2098701]: -->    key = 12,
In(166) Hostd[2098701]: -->    chainId = 0,
In(166) Hostd[2098701]: -->    createdTime = "<Date && TIME>",
In(166) Hostd[2098701]: -->    userName = "",
In(166) Hostd[2098701]: -->    host = (vim.event.HostEventArgument) {
In(166) Hostd[2098701]: -->     name = "<Host Shortname>",
In(166) Hostd[2098701]: -->     host = 'vim.HostSystem:ha-host'
In(166) Hostd[2098701]: -->    },
In(166) Hostd[2098701]: -->    eventTypeId = "esx.audit.ssh.enabled",
In(166) Hostd[2098701]: -->    objectId = "ha-host",
In(166) Hostd[2098701]: -->    objectType = "vim.HostSystem",

Environment

  • VMware SDDC Manager 5.x
  • VMware Cloud Foundation (VCF) 9.0.x

Cause

The esxcli client retrieves the short hostname rather than the FQDN. The precheck workflow expects the FQDN to populate the DnsConfig.domainName. When only the short name is returned, the lookup fails with a NULL value, triggering a false positive error.

Resolution

To resolve the precheck failure, populate the domain name on the ESXi host to ensure the Fully Qualified Domain Name (FQDN) is correctly returned during the upgrade workflow.

Option 1:

Login to the affected host via SSH as a root user, set the domain name on the ESXi host to populate the domain name field:

esxcli system hostname set --domain=<domain_name> 
esxcli system hostname get

Option 2: If the issue persists, update the configuration via the vCenter Server UI:

  • Navigate to the vCenter Server UI.
  • Select the affected ESXi host > Configure > Networking > TCP/IP configuration.
  • Select the Default TCP/IP stack > Edit.
  • Configure the correct Domain name and Host name to establish the complete FQDN.
  • Rerun the SDDC Manager precheck.

A code fix is planned for SDDC in future releases. Subscribe to this article to be updated on the fix status - Refer KB  275360 to see how to subscribe 

Additional Information

While a code fix is planned for SDDC in future releases, to accept short name as well, make sure that the nslookup/ DNS entry for the Hosts replies with the FQDN.

This issue is also seen when the Domain name is missing on the ESXi host. Using the option 2 from the Resolution we can update the domain of the ESXi host.