vCenter Pre-upgrade fails

Error: Internal error occurred during execution of upgrade process.

Resolution: Send upgrade log files to VMware technical support team for further Assistance.

 

Upgrade logs say:

less /var/log/vmware/upgrade/bootstrap.log
2018-03-23T20:14:34.11Z ERROR transport.guestops Invalid command: “/bin/bash” –login -c ‘/opt/vmware/share/vami/vami_get_network eth0 1>/tmp/vmware-root/exec-vmware47-
stdout 2>/tmp/vmware-root/exec-vmware235-stderr’
None
2018-03-23T20:14:34.12Z ERROR upgrade_commands Unable to execute pre-upgrade checks on host 10.1.0.209
Traceback (most recent call last):
File “/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py”, line 2199, in execute
preupgradeResult = self._executePreupgradeChecks()
File “/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py”, line 2655, in _executePreupgradeChecks
srcIpv4Address, srcIpv4SubnetMask, srcIpv6Address, srcIpv6Prefix = retrieveNetworkingConfiguration(self.opsManager)
File “/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/transfer_network.py”, line 1309, in retrieveNetworkingConfiguration
interface)
File “/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/apply_networking.py”, line 188, in _retrieveNetworkIdentity
networkConfig = vamiGetNetwork(processManager, interface)
File “/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/apply_networking.py”, line 144, in vamiGetNetwork
output = _execNetworkConfigCommand(processManager, [VAMI_GET_NETWORK_CMD, interface])
File “/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/apply_networking.py”, line 66, in _execNetworkConfigCommand
cr = transport.executeCommand(processManager, cmd)
File “/usr/lib/vmware/cis_upgrade_runner/libs/sdk/transport/__init__.py”, line 122, in executeCommand
return processManager.pollProcess(processUid, True)
File “/usr/lib/vmware/cis_upgrade_runner/libs/sdk/proxy.py”, line 81, in __call__
ret = self.func(*args, **kwargs)
File “/usr/lib/vmware/cis_upgrade_runner/libs/sdk/transport/guestops.py”, line 1184, in pollProcess
self._checkInvalidCommandError(processInfo, stderr)
File “/usr/lib/vmware/cis_upgrade_runner/libs/sdk/transport/guestops.py”, line 1123, in _checkInvalidCommandError
raise ExecutionException(error, ErrorCode.INVALID_REQUEST)
ExecutionException: (‘Invalid command: “/bin/bash” –login -c \’/opt/vmware/share/vami/vami_get_network eth0 1>/tmp/vmware-root/exec-vmware47-stdout 2>/tmp/vmware-root/
exec-vmware235-stderr\”, 1)

2018-03-23T20:14:39.442Z ERROR __main__ ERROR: Fatal error during upgrade REQUIREMENTS. For more details take a look at: /var/log/vmware/upgrade/requirements-upgrade-runner.log

 

Now look at the source appliance.

VMware VirtualCenter 6.0.0 build-3339084
vCenter:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:AC:53:FD
inet addr:x.x.x.x Bcast:x.x.x.x Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45028984 errors:0 dropped:28266 overruns:0 frame:0
TX packets:16476384 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:74680502042 (71220.8 Mb) TX bytes:7187692049 (6854.7 Mb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:147809637 errors:0 dropped:0 overruns:0 frame:0
TX packets:147809637 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:93984509789 (89630.6 Mb) TX bytes:93984509789 (89630.6 Mb)

Running /opt/vmware/share/vami/vami_get_network  less returns an dependency error:

vCenter:~ # /opt/vmware/share/vami/vami_get_network eth0 1 | less
/opt/vmware/share/vami/vami_get_network: error while loading shared libraries: libvami-common.so: cannot open shared object file: No such file or directory

 

To resolve this, re-create the link to dependency by running the below commands.

echo “LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/opt/vmware/lib/vami/” >> /etc/profile
echo ‘export LD_LIBRARY_PATH’ >> /etc/profile

 

Re-run the command to confirm if it is returning the IP details

/opt/vmware/share/vami/vami_get_network

vCenter55:~ # /opt/vmware/share/vami/vami_get_network
interface: eth0
config_present: true
config_flags: STATICV4
config_ipv4addr: 10.1.0.209
config_netmask: 255.255.252.0
config_broadcast: 10.1.3.255
config_gatewayv4:
config_ipv6addr:
config_prefix:
config_gatewayv6: 10
autoipv6:
active_ipv4addr: 10.1.0.209
active_netmask: 255.255.252.0
active_broadcast: 10.1.3.255
active_ipv6addr:
active_prefix:
active_gatewayv4: 10.1.0.61
active_gatewayv6:
hasdhcpv6: 1
Traceback (most recent call last):
File “/opt/vmware/share/vami/vami_ovf_process”, line 25, in <module>
import libxml2
File “/usr/lib64/python2.6/site-packages/libxml2.py”, line 1, in <module>
ImportError: No module named libxml2mod
managed:

 

vami_ovf_process and libxml2.py can be ignored

Re-run the upgrade/migration.

Related Posts
%d bloggers like this: