
This changeset contains updates for Newton. Notable changes include: - Ubuntu 14.04 LTS (trusty) replaced by Ubuntu 16.04 LTS (xenial) - Higher RAM requirements, the controller VM needs 5120 MB - Script order changed (install-guide changes) - By default, mariadb does not use a root password but socket auth (sudo) - Nova does not configure any default flavors anymore; we create m1.nano and that's all there is when the cluster is built. - Remaining differences to install-guide marked in the source code - As always, new races fixed Change-Id: Id59e145140252c4384584a3899e01a38e8a57158
98 lines
3.2 KiB
Bash
Executable File
98 lines
3.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset
|
|
|
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
|
|
|
source "$TOP_DIR/config/paths"
|
|
source "$CONFIG_DIR/credentials"
|
|
source "$LIB_DIR/functions.guest.sh"
|
|
|
|
exec_logfile
|
|
|
|
indicate_current_auto
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Set up OpenStack Networking (neutron) for controller node.
|
|
# http://docs.openstack.org/newton/install-guide-ubuntu/neutron-controller-install.html
|
|
#------------------------------------------------------------------------------
|
|
|
|
source "$CONFIG_DIR/admin-openstackrc.sh"
|
|
|
|
neutron_admin_user=neutron
|
|
|
|
# Wait for keystone to come up
|
|
wait_for_keystone
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Configure the metadata agent
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
echo "Configuring the metadata agent."
|
|
conf=/etc/neutron/metadata_agent.ini
|
|
iniset_sudo $conf DEFAULT nova_metadata_ip controller
|
|
iniset_sudo $conf DEFAULT metadata_proxy_shared_secret "$METADATA_SECRET"
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Configure Compute to use Networking
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
echo "Configuring Compute to use Networking."
|
|
conf=/etc/nova/nova.conf
|
|
iniset_sudo $conf neutron url http://controller:9696
|
|
iniset_sudo $conf neutron auth_url http://controller:35357
|
|
iniset_sudo $conf neutron auth_type password
|
|
iniset_sudo $conf neutron project_domain_name default
|
|
iniset_sudo $conf neutron user_domain_name default
|
|
iniset_sudo $conf neutron region_name "$REGION"
|
|
iniset_sudo $conf neutron project_name "$SERVICE_PROJECT_NAME"
|
|
iniset_sudo $conf neutron username "$neutron_admin_user"
|
|
iniset_sudo $conf neutron password "$NEUTRON_PASS"
|
|
iniset_sudo $conf neutron service_metadata_proxy True
|
|
iniset_sudo $conf neutron metadata_proxy_shared_secret "$METADATA_SECRET"
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Finalize installation
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
echo "Populating the database."
|
|
sudo neutron-db-manage \
|
|
--config-file /etc/neutron/neutron.conf \
|
|
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
|
|
upgrade head
|
|
|
|
echo "Restarting nova services."
|
|
sudo service nova-api restart
|
|
|
|
echo "Restarting neutron-server."
|
|
sudo service neutron-server restart
|
|
|
|
echo "Restarting neutron-linuxbridge-agent."
|
|
sudo service neutron-linuxbridge-agent restart
|
|
|
|
echo "Restarting neutron-dhcp-agent."
|
|
sudo service neutron-dhcp-agent restart
|
|
|
|
echo "Restarting neutron-metadata-agent."
|
|
sudo service neutron-metadata-agent restart
|
|
|
|
if type neutron-l3-agent; then
|
|
# Installed only for networking option 2 of the install-guide.
|
|
echo "Restarting neutron-l3-agent."
|
|
sudo service neutron-l3-agent restart
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Set up OpenStack Networking (neutron) for controller node.
|
|
# http://docs.openstack.org/newton/install-guide-ubuntu/neutron-verify.html
|
|
#------------------------------------------------------------------------------
|
|
|
|
echo -n "Verifying operation."
|
|
until neutron ext-list >/dev/null 2>&1; do
|
|
sleep 1
|
|
echo -n .
|
|
done
|
|
echo
|
|
|
|
neutron ext-list
|