Symptoms:
/var/log/vmware/vmon/vmon.log
, below message can be found:yyyy-mm-ddThh:mm:ss.mssZ Er(02) host-2237 <vcha> Service pre-start command failed with exit code 1.
/var/log/vmware/vcha/fixVchaConfigFiles.log
, the below message can be found:yyyy-mm-ddThh:mm:ss.mssZ ERROR fixVchaConfigFiles Error updating configuration
Traceback (most recent call last):
File "/usr/lib/vmware-vcha/scripts/fixVchaConfigFiles.py", line 161, in main
updateConfiguration()
File "/usr/lib/vmware-vcha/scripts/fixVchaConfigFiles.py", line 84, in updateConfiguration
selfIp = getIpAddress(NODE_PRIVATE_IP_IFNAME)
File "/usr/lib/vmware-vcha/scripts/util.py", line 59, in getIpAddress
raise Exception("Failed to get IP address.")
Exception: Failed to get IP address.
This issue can happen with procedure below:
VMware vCenter Server 7.x
VMware vCenter Server 8.x
If the VCHA vNIC is disconnected, the service won't start because it needs an IP address to work
Even after the vNIC is connected, VCHA cannot start.
service-control --start --all
to start related services manually.Impact/Risks:
Usually such issue happens in test scenario.