I was readdressing one part of vSphere 6.0 datacenter including VCSA and VR appliances. After changing VR IP I was able to connect it to VCSA. But since I've changed VCSA IP I can't change VCSA IP in VAMI because of "Bad exit code: 1" problem and VCSA can't connect VR. Replication jobs to DR run until reboot. Powering VR off and on didn't resolve problem and VRM service doesn't run. I can see errors in /var/log/boot.msg:
haveged already running
Waiting for network to come up (attempt 1 of 10)...
Configuration for eth0 found
No route to host
Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException:
com.vmware.vim.vmomi.client.exception.ConnectionException: java.net.NoRouteToHostException: No
route to host
... etc ...
... 10 more
Initialization error: No route to host
Traceback (most recent call last):
File "/opt/vmware/share/htdocs/service/hms/cgi/boot.py", line 153, in main
File "/opt/vmware/share/htdocs/service/hms/cgi/boot.py", line 76, in func
File "/opt/vmware/share/htdocs/service/hms/cgi/boot.py", line 520, in update_extension_login
File "/opt/vmware/share/htdocs/service/hms/cgi/ovf.py", line 438, in hms_register_extension
jks, passwd, alias
File "/opt/vmware/share/htdocs/service/hms/cgi/ovf.py", line 360, in register_extension
commands.execute(cmd, 'stdout', __HMS_HOME__)
File "/opt/vmware/share/htdocs/service/hms/cgi/commands.py", line 326, in execute
Exception: No route to host
Unable to obtain password from OVF Environment.
<notice -- Nov 10 12:27:05.529875000> 'vaos start' exits with status 0
I've found old vCenter IP in /opt/vmware/etc/vami/ovfEnv.xml and try to change it but it change back after reboot. vSphere Replication is configured to use the embedded vPostgreSQL database and it looks like old VCSA IP is somewhere there.
I can see this errors in /opt/vmware/hms/logs/hms.log:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'primary
GroupResumedEventHandler' defined in class path resource [META-INF/eventlog.xml]: Cannot resolv
e reference to bean 'primaryGroupPauseResumeEventHandler' while setting bean property 'targetOb
ject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creat
ing bean with name 'primaryGroupPauseResumeEventHandler': Injection of autowired dependencies f
ailed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not a
utowire field: private com.vmware.hms.server.ManagedObjectFactory com.vmware.hms.eventhandlers.
PrimaryGroupPauseResumeEventHandler.managedObjectFactory; nested exception is org.springframewo
rk.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'siteManager':
Requested bean is currently in creation: Is there an unresolvable circular reference?
Any idea to solve it, please?