VCSA / vCenter 6.5 Upgrade Fails Due on Stage 2 Pre-Check

Mindwatering Incorporated

Author: Tripp W Black

Created: 01/15/2018 at 04:14 PM

 

Category:
VMWare
vCenter

Issue:
While running the VCSA upgrade, an error was experienced after the new 6.5 appliance was created, but before Stage 2 where the existing appliance data is migrated.


Error message:
"internal error during execution"

When I view the logs on the server, I found the following log entries:
...
Traceback (most recent call last):
File "/tmp/vmware-root/tmpvmware30/py/utils/featureState_utils.py", line 26, in _setAUTOMATED_VUM_UPGRADE
import featureState
Import Error: No module named featureState
2018-01-08T05:34;38.56Z INFO base_commands Excecuting command --('/usr/bin/python', '/tmp/vmware-root/tmpvmware30/UpgradeOrchestrator.py', '-m', 'requirements', '-f', '/tmp/vmware-root/tmpvmware30/config.json', '-o', '/tmp/vmware-root/tmpvmware30/upgrade-requirements-status.json', '--logDir', '/var/log/vmware/upgrade', '--logFileName', 'requirements-upgrade-runner.log', '--cancelFile', '/var/tmp/upgrade_cancel.op', '-1' 'en'] on localhost
2018-01-08T05:35:04:331Z INFO apply_networking Extracting active network adapters on host localhost
2018-01-08T05:35:04:339Z INFO apply_networking Active Network adapters found are ['eth0']
2018-01-08T05:35:04:339Z INFO __main__ Found network interfaces on source machine: ['eth0']
2018-01-08T05:35:04:339Z ERROR __main__ FAILED: Found upgrade requirements mismatches.
2018-01-08T05:35:04:344Z INFO root Exiting with exit-code 0

We investigated the eth0 configuration and the VCSA VM's MAC address. However, eth0 was properly configured, and specified in 70-persistent-net, and the ifcfg-eth0-config files.


Solution:
After working with VMware support, they found that the actual issue was a missing properties file which was keeping the VMware ESX Agent Manager - vmware-eam service from running.

The eam.properties file was empty. We populated a stock file via vim, updating a couple lines: the host ID more than midway down, and the hostname FQDN near the bottom. See bolded entries in a copy of the file below.

Afterwards, the EAM service was started, and the upgrade proceeded normally.



eam.properties File:

#########################################################################
# Copyright 2013-2017 VMware, Inc. All rights reserved. VMware Confidential
#########################################################################
vc.proxy.host=localhost
vc.proxy.port=80
# Hostname or IP of the EAM server
# Fill only if EAM is not running on the same host as VC
eam.host=
# EAM service port used to configure the HTTP connector of the application server.
eam.int.http.port=15005
# Port and scheme configuration which is used by the ESX 6.x hosts to reach EAM Vib
# file server.
eam.ext.port=443
eam.ext.scheme=https
# Port and scheme configuration which is used by the ESX 5.x hosts to reach EAM Vib
# file server.
eam.ext.port.deprecated=80
eam.ext.scheme.deprecated=http
eam.support_linked_clone=true
eam.clear_db_on_startup=false
eam.debug_ref_count=false
eam.recent_event_size=20
# Value is specified in minutes (set to 24h = 1440m)
eam.scan_for_unknown_agent_vms=1440
# The timeout to wait for hostd to restart on a host (set to 5m=300s)
eam.hostd_restart_timeout=300
# The following entries will be added verbatim to the advanced options
# of hosts on which EAM is enabled. All are optional.
Net.DVFilterBindIpAddress=169.254.0.1
Net.TrafficFilterIpAddress=
#The IP for the VSWIF NIC on the dvFilter switch (for ESX classic).
Net.DVFilterVswifIpAddress=169.254.0.2
# Resource bundle configuration
eam.resourcebundle.filename=eam-resourcebundle.jar
# VLSI embedded tcServer configuration
#
tcserver.tmp.dir=/var/tmp/vmware/eam/tomcat
eam.web.root=/usr/lib/vmware-eam/web
# EAM SSL configuration
#
eam.keystore.type=VKS
eam.key.alias=vpxd-extension
eam.keystore.storename=vpxd-extension
# CM configuration
#
cm.url=http://localhost:18090/cm/sdk/?hostid=abcd1234-123a-1234-ab12-abcd12345
cm.wait.attempts=360
cm.wait.intervalSeconds=5
# SSO configuration
#
sso.wait.attempts=360
sso.wait.intervalSeconds=5
# VC SSL configuration
#
vc.truststore.type=VKS
vc.truststore.storename=TRUSTED_ROOTS
vc.tunnelSdkUri.template=https://##{VC_HOST_NAME}##:8089/sdk/vimService
vc.tunnelSdkUri=https://vcsa.mindwatering.net:8089/sdk/vimService
drs.demandCapacityRatio=100
eam.web.root=/usr/lib/vmware-eam/web






previous page

×