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 ###.###.###.### could not be verified by hostnameverifier PgjdbcHostnameVerifier.
VCD: 10.6.1
TCP: 5.0
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.backupvi /opt/vmware/vcloud-director/etc/global.properties##.##.##.## to the correct IP address. Example format:database.jdbcUrl=jdbc:postgresql://###.###.###.###:5432/vcloud?socketTimeout=90&ssl=truerepmgr cluster show | grep primary If the issue persists and the global.properties file has the correct IP address take a look see Error: "Invalid database configuration: The hostname x.x.x.x could not be verified by hostnameverifier PgjdbcHostnameVerifier." occurs during upgrade to VMware Cloud Director 10.6.1