Error in method invocation [Errno2] Host name lookup failure during vCenter 8 upgrade Stage 2
search cancel

Error in method invocation [Errno2] Host name lookup failure during vCenter 8 upgrade Stage 2

book

Article ID: 438903

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Upgrading vCenter Server from 7.0 to 8.0

  • The vCenter Server 7.0 has been deployed using an FQDN, but an IP address was entered as source appliance in the Upgrade wizard Stage 1 Step 3 ("Connect to source appliance")

  • An error occurred during Stage 2 Step 2 (“Connect to source vCenter Server”) with the following message:

Pre-upgrade check failed due the following problem: Error in method invocation [Errno2] Host name lookup failure

  • The following message can be found in the /var/log/vmware/applmgmt/applmgmt.log file on the newly deployed vCenter Server 8.0 appliance:

ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.vcenter.deployment.upgrade in check - [Errno 2] Host name lookup failure
Traceback (most recent call last):
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
    method_result = self._invoke_int(
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 249, in _invoke_int
    method_result = iface.invoke(ctx, method_id, input_value)
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 371, in invoke
    meth_output = method(**meth_args)
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/deployment_impl.py", line 336, in check
    return validator.validate(spec, dt.get_type())
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/spec_validators.py", line 1891, in validate
    self._validate_source_appliance(spec, dep_type)
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/spec_validators.py", line 1729, in _validate_source_appliance
    self.validate_ssl(source.hostname, source.sso_admin_username,
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/spec_validators.py", line 891, in validate_ssl
    is_host_valid, emsg = self.net_utils.validate_address_with_ssl_cert(
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/network_utils.py", line 400, in validate_address_with_ssl_cert
    if NetworkUtils.validate_reverse_lookup_fqdn(address, cert_fqdns):
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/network_utils.py", line 357, in validate_reverse_lookup_fqdn
    hostnames = socket.gethostbyaddr(address)
socket.herror: [Errno 2] Host name lookup failure

Environment

VMware vCenter Server 8.0

Cause

  • The Upgrade Wizard requires reverse DNS lookup, which fails if DNS servers are incorrectly configured.

For example, because the IP address entered in the “DNS servers” field is incorrect.

 

  • Verify the IP addresses of the configured DNS servers in /etc/resolv.conf or from the following message in /var/log/vmware/upgrade/bootstrap.log on the newly deployed vCenter Server 8.0 appliance.

YYYY-MM-DDTHH:MM:SS.###Z INFO transfer_network File '/etc/resolv.conf' has contents: # This is /run/systemd/resolve/resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.1
nameserver ###.###.###.###
nameserver ###.###.###.###
search .

Resolution

Ensure that the source vCenter Server's record is registered with the DNS server and retry with the correct DNS server IP address.

Additional Information

If you enter a source vCenter Server FQDN in the Upgrade Wizard Stage 1 Step 3 and the system cannot resolve that name, the following error occurs in Stage 2 Pre-upgrade check result:

Failed to connect to source appliance <Source VC FQDN> port 443: [Errorno -3] Temporary failure in name resolution