Moved from database dump to hack.

Dropped a command to change the endpoints from localhost to
in the configure hook.

This is a temporary solution, pending automation of the database
update. (I was burning too much time getting a manual dump to work for
Pete Vander Giessen 4 years ago
parent 369abc1f6f
commit 56cd24f5d0
  1. BIN
  2. 6
  3. 17

Binary file not shown.

@ -23,6 +23,12 @@ done
# Grant nova user access to cell0
echo "GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'' IDENTIFIED BY 'nova';" | mysql-start-client -u root
# Endpoints from localhost ->
# TODO Rebuild database so that these are already set to,
# after lp:1824176 is addressed, and the process of building a new
# mysql.tar.xz is less fraught.
openstack endpoint list | grep localhost | while read line; do openstack endpoint set `echo $line | cut -d" " -f2` --url `echo $line | cut -d" " -f14 | sed 's/localhost/'`; done
# RabbitMQ
echo "Configuring RabbitMQ"
# Rabbitmq isn't always started when we run this. Wait for it to start.

@ -20,8 +20,23 @@ multipass copy-files microstack_rocky_amd64.snap $MACHINE:
multipass exec $MACHINE -- \
sudo snap install --classic --dangerous microstack*.snap
# Run microstack.launch and wait for it to complete.
# Run microstack.launch
multipass exec $MACHINE -- /snap/bin/microstack.launch breakfast
# Verify that endpoints are setup correctly
# List of endpoints should contain
if ! multipass exec $MACHINE -- /snap/bin/microstack.openstack endpoint list | grep ""; then
echo "Endpoints are not set to!";
exit 1;
# List of endpoints should not contain localhost
if multipass exec $MACHINE -- /snap/bin/microstack.openstack endpoint list | grep "localhost"; then
echo "Endpoints are not set to!";
exit 1;
# Verify that microstack.launch completed
IP=$(multipass exec $MACHINE -- /snap/bin/microstack.openstack server list | grep breakfast | cut -d" " -f9)
echo "Waiting for ping..."