
This changeset contains updates for Mitaka. To build the basedisk (if necessary) and the cluster and launch a test VM once: ./tools/repeat-test.sh -b -r 1 To test Orchestration: ./tools/test-once.sh scripts/test/heat_stack.sh Change-Id: Idd96525c14abd5903a6631095ccd6797ba91365c
61 lines
1.5 KiB
Bash
Executable File
61 lines
1.5 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/mitaka/install-guide-ubuntu/neutron-controller-install.html
|
|
#------------------------------------------------------------------------------
|
|
|
|
echo "Setting up database for neutron."
|
|
setup_database neutron "$NEUTRON_DB_USER" "$NEUTRON_DBPASS"
|
|
|
|
source "$CONFIG_DIR/admin-openstackrc.sh"
|
|
|
|
neutron_admin_user=$(service_to_user_name neutron)
|
|
|
|
# Wait for keystone to come up
|
|
wait_for_keystone
|
|
|
|
echo "Creating neutron user and giving it admin role under service tenant."
|
|
openstack user create \
|
|
--domain default \
|
|
--password "$NEUTRON_PASS" \
|
|
"$neutron_admin_user"
|
|
|
|
openstack role add \
|
|
--project "$SERVICE_PROJECT_NAME" \
|
|
--user "$neutron_admin_user" \
|
|
"$ADMIN_ROLE_NAME"
|
|
|
|
echo "Registering neutron with keystone so that other services can locate it."
|
|
openstack service create \
|
|
--name neutron \
|
|
--description "OpenStack Networking" \
|
|
network
|
|
|
|
openstack endpoint create \
|
|
--region "$REGION" \
|
|
network \
|
|
public http://controller:9696
|
|
|
|
openstack endpoint create \
|
|
--region "$REGION" \
|
|
network \
|
|
internal http://controller:9696
|
|
|
|
openstack endpoint create \
|
|
--region "$REGION" \
|
|
network \
|
|
public http://controller:9696
|