To resolve the issue:
- Change the Primary Appliance Host Name following the below procedure.
- In DNS, create an additional record with the new primary host name.
Note: Do not remove the existing DNS record with the old host name yet.
- Wait for DNS replication and zone distribution to occur.
- Log in as root on the primary vRealize Automation appliance management interface https://vrealize-automation-appliance-FQDN:5480
- Click Network > Address.
- In the Hostname text box, enter the new primary host name, and click Save Settings.
- From a console session as root on the primary vRealize Automation appliance, run the script:
/usr/lib/vcac/tools/change-hostname/change-hostname_master.sh new-primary-hostname old-primary-hostname
- Run the script one time for each directory in the current environment. There might be multiple directories per tenant.
For example, if you have two directories, run the script twice, one after the other.
- Run this script from a console session:
sed -i "s/old-primary-hostname/new-primary-hostname/g" "/etc/haproxy/conf.d/10-psql.cfg" "/etc/haproxy/conf.d/20-vcac.cfg"
echo new-primary-hostname > /usr/local/horizon/conf/flags/sysconfig.hostname
-
Restart the primary vRealize Automation appliance.
-
Log in as root on each replica vRealize Automation appliance management interface https://vrealize-automation-appliance-FQDN:5480
-
Click vRA Settings > Cluster.
-
Use Join Cluster to re-join each replica node to the cluster.
-
Verify that all authentication connectors are working correctly.
-
In DNS, remove the existing DNS record with the old primary host name.
- Change a Replica vRealize Automation Appliance Host Name following the below procedure:
- In DNS, create an additional record with the new replica host name.
Note: Do not remove the existing DNS record with the old host name yet.
- Wait for DNS replication and zone distribution to occur.
- Log in as root on the replica vRealize Automation appliance management interface https://vrealize-automation-appliance-FQDN:5480
- Click Network > Address.
- In the Hostname text box, enter the new primary host name, and click Save Settings.
- From a console session as root on the replica vRealize Automation appliance, run the script:
/usr/lib/vcac/tools/change-hostname/change-hostname_replica.sh new-replica-hostname old-replica-hostname
- From a console session as root on the primary vRealize Automation appliance, run the script:
/usr/lib/vcac/tools/change-hostname/change-hostname_master.sh new-replica-hostname old-replica-hostname
sed -i "s/old-replica-hostname/new-replica-hostname/g" "/etc/haproxy/conf.d/10-psql.cfg" "/etc/haproxy/conf.d/20-vcac.cfg"
echo primary-hostname > /usr/local/horizon/conf/flags/sysconfig.hostname
-
From a console session as
root on each replica vRealize Automation appliance, run the commands:
sed -i "s/old-replica-hostname/new-replica-hostname/g" "/etc/haproxy/conf.d/10-psql.cfg" "/etc/haproxy/conf.d/20-vcac.cfg" "/usr/local/horizon/conf/flags/sysconfig.hostname"
echo new-replica-hostname > /usr/local/horizon/conf/flags/sysconfig.hostname
-
Log in as root on the replica vRealize Automation appliance management interface, https://vrealize-automation-appliance-FQDN:5480
-
Click vRA Settings > Cluster.
-
Use Join Cluster to re-join the replica node to the cluster.
-
Verify that all authentication connectors are working correctly.
-
In DNS, remove the existing DNS record with the old replica host name.
After following above steps, if you do not see all connectors listed (in case of vRealize Automation configured in High Availability mode), refer to the KB to rejoin the vRA cluster:
Once you see Identity Provider connectors, change the IdP Hostname under Identity Providers to load Bblancer 'VIP' FQDN (in the case of HA configured vRA appliances).