VMware Cloud Director upgrade failed
During an upgrade via /opt/vmware/vcloud-director/bin/upgrade the following error is seen in the console.
The same error is seen in the upgrade log located at /opt/vmware/vcloud-director/logs/upgrade-<date>.log
Unable to perform upgrade: org.postgresql.util.PSQLException: The hostname XXX.XX.X.XXX could not be verified by hostnameverifier PgjdbcHostnameVerifier.
VMware Cloud Director 10.6.x
The database.jdbcUrl line in the /opt/vmware/vcloud-director/etc/global.properties file contains an incorrect database IP address.
Important: If you encounter this error, roll back to the snapshot taken before the upgrade, before making any of these changes.
See Roll Back Your VMware Cloud Director Appliance When an Upgrade Fails for more information.
To resolve this issue, perform the following steps.
cp /opt/vmware/vcloud-director/etc/global.properties /opt/vmware/vcloud-director/etc/global.properties.backup
vi /opt/vmware/vcloud-director/etc/global.properties
##.##.##.## to the correct IP address. Example format:database.jdbcUrl=jdbc:postgresql://###.###.##.##:5432/vcloud?socketTimeout=90&ssl=true
repmgr cluster show | grep primary