For VMware Integrated Openstack pre-3.0
Notes:
- PUBLIC_VIP should be replaced with actual public vip used in the deployment.
- PUBLIC_HOSTNAME should be replaced with the desired hostname.
- Log in to management server, switch to root user, and run this command:
/opt/vmware/vpostgres/current/bin/psql -U omsdb
- Run this query:
UPDATE node_group SET attributes = regexp_replace(attributes, 'public_hostname":"PUBLIC_VIP"', 'public_hostname":"PUBLIC_HOSTNAME"', 'g') WHERE name = 'LoadBalancer';
- Exit omsdb by running this command:
\q
- Run vim by running this command:
viocli show -p (still from root)
- Search for this line:
public_hostname = PUBLIC_VIP
Replace it with:
public_hostname = PUBLIC_HOSTNAME
- Run viocli deployment configure.
Note: This will incur some downtime.
- Log in to database01 node, switch to root, and run mysql;
- Run this query:
UPDATE endpoint SET url = regexp_replace(url, , 'PUBLIC_VIP', 'PUBLIC_HOSTNAME');
For VMware Integrated Openstack 3.0 thru 4.1
Notes:
- The only thing you must update is public_hostname in OMS and run viocli deployment configure.
- PUBLIC_VIP should be replaced with actual public vip used in the deployment
- PUBLIC_HOSTNAME should be replaced with the desired hostname
- Login to management server
- Run this command to enter the database:
sudo /opt/vmware/vpostgres/current/bin/psql -U omsdb
- Run this query for full (HA) deployment:
UPDATE node_group SET attributes = regexp_replace(attributes, 'public_hostname":"<PUBLIC_VIP>"', 'public_hostname":"<PUBLIC_HOSTNAME>"', 'g') WHERE name = 'LoadBalancer';
- Run this query for compact mode deployment:
UPDATE node_group SET attributes = regexp_replace(attributes, 'public_hostname":"<PUBLIC_VIP>"', 'public_hostname":"<PUBLIC_HOSTNAME>"', 'g') WHERE name = 'ControlPlane';
- Run this command to exit the database:
\q and hit Enter
- Run this command:
sudo viocli show -p
- Open the file from the previous command in a text editor.
- Search for the "public_hostname = <PUBLIC_VIP>" line. Replace it with "public_hostname = <PUBLIC_HOSTNAME>"
- Run this command to push the configuration to your VMware Integrated Openstack deployment.
NOTE: This will incur some downtime.
sudo viocli deployment configure