Pike update

This changeset contains update for Pike.

Notable changes include:
- First release after big documentation move (URLs changed)

Change-Id: I73288f3d32c5883b1b27d8827a367086de560046
This commit is contained in:
Roger Luethi
2017-08-22 17:44:09 +02:00
parent 84e3d0456b
commit 96c6e7fcea
22 changed files with 123 additions and 109 deletions

View File

@@ -17,7 +17,7 @@ NET_IF_2="manual 203.0.113.0"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Size of second disk in MB (/dev/sdb) # Size of second disk in MB (/dev/sdb)
# Test volume is 1 GB; backing volume must be bigger # Test volume is 1 GB; backing volume must be bigger
SECOND_DISK_SIZE=1040 SECOND_DISK_SIZE=1280
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# http://docs.openstack.org/mitaka/install-guide-ubuntu/environment.html # http://docs.openstack.org/mitaka/install-guide-ubuntu/environment.html

View File

@@ -1,10 +1,10 @@
# This file contains OpenStack configuration data. It is used by both # This file contains OpenStack configuration data. It is used by both
# host (osbash, Windows batch) and VM guest scripts. # host (osbash, Windows batch) and VM guest scripts.
# ocata (production release; cloud-archive:ocata) # pike (production release; cloud-archive:pike)
# ocata-proposed (pre-release testing: cloud-archive:ocata-proposed) # pike-proposed (pre-release testing: cloud-archive:pike-proposed)
# ocata-staging (ppa:openstack-ubuntu-testing/ocata) # pike-staging (ppa:openstack-ubuntu-testing/pike)
: ${OPENSTACK_RELEASE:=ocata} : ${OPENSTACK_RELEASE:=pike}
# CirrOS image URL # CirrOS image URL
if [ "$(uname -m)" = "x86_64" ]; then if [ "$(uname -m)" = "x86_64" ]; then
@@ -19,7 +19,7 @@ unset arch
CIRROS_IMG_NAME="cirros" CIRROS_IMG_NAME="cirros"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# http://docs.openstack.org/mitaka/install-guide-ubuntu/environment-networking.html # https://docs.openstack.org/install-guide/environment-networking.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Networks used by OpenStack training-labs setup # Networks used by OpenStack training-labs setup
@@ -31,7 +31,7 @@ NETWORK_2="provider 203.0.113.0"
PXE_INITIAL_NODE_IP="10.0.0.240" PXE_INITIAL_NODE_IP="10.0.0.240"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# http://docs.openstack.org/ocata/install-guide-ubuntu/launch-instance-networks-provider.html # https://docs.openstack.org/install-guide/launch-instance-networks-provider.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Public network # Public network
@@ -42,7 +42,7 @@ PXE_INITIAL_NODE_IP="10.0.0.240"
: ${END_IP_ADDRESS:=203.0.113.200} : ${END_IP_ADDRESS:=203.0.113.200}
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# http://docs.openstack.org/mitaka/install-guide-ubuntu/launch-instance-networks-private.html # https://docs.openstack.org/install-guide/launch-instance-selfservice.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Private demo network # Private demo network

View File

@@ -44,27 +44,27 @@ sudo apt update
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Enable the OpenStack repository # Enable the OpenStack repository
# http://docs.openstack.org/ocata/install-guide-ubuntu/environment-packages.html # https://docs.openstack.org/install-guide/environment-packages-ubuntu.html
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# NOTE: Using pre-release staging ppa is not documented in install-guide # NOTE: Using pre-release staging ppa is not documented in install-guide
# https://launchpad.net/~ubuntu-cloud-archive/+archive/ubuntu/ocata-staging # https://launchpad.net/~ubuntu-cloud-archive/+archive/ubuntu/pike-staging
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
echo "Installing packages needed for add-apt-repository." echo "Installing packages needed for add-apt-repository."
sudo apt -y install software-properties-common sudo apt -y install software-properties-common
case "$OPENSTACK_RELEASE" in case "$OPENSTACK_RELEASE" in
ocata) pike)
REPO=cloud-archive:ocata REPO=cloud-archive:pike
SRC_FILE=cloudarchive-ocata.list SRC_FILE=cloudarchive-pike.list
;; ;;
ocata-proposed) pike-proposed)
REPO=cloud-archive:ocata-proposed REPO=cloud-archive:pike-proposed
SRC_FILE=cloudarchive-ocata-proposed.list SRC_FILE=cloudarchive-pike-proposed.list
;; ;;
ocata-staging) pike-staging)
REPO=ppa:ubuntu-cloud-archive/ocata-staging REPO=ppa:ubuntu-cloud-archive/pike-staging
SRC_FILE=ubuntu-cloud-archive-ubuntu-ocata-staging-xenial.list SRC_FILE=ubuntu-cloud-archive-ubuntu-pike-staging-xenial.list
;; ;;
*) *)
echo >&2 "Unknown OpenStack release: $OPENSTACK_RELEASE. Aborting." echo >&2 "Unknown OpenStack release: $OPENSTACK_RELEASE. Aborting."

View File

@@ -22,7 +22,7 @@ echo "Will bind MySQL server to $DB_IP."
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Install and configure the database server # Install and configure the database server
# http://docs.openstack.org/ocata/install-guide-ubuntu/environment-sql-database.html # https://docs.openstack.org/install-guide/environment-sql-database-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Sourced MySQL password from credentials: $DATABASE_PASSWORD" echo "Sourced MySQL password from credentials: $DATABASE_PASSWORD"

View File

@@ -54,7 +54,7 @@ apt_download cinder-api cinder-scheduler python-cinderclient
apt_download openstack-dashboard apt_download openstack-dashboard
# Cinder Volumes # Cinder Volumes
apt_download lvm2 cinder-volume apt_download lvm2 cinder-volume thin-provisioning-tools
# Nova Compute # Nova Compute
apt_download nova-compute nova-compute-qemu qemu sysfsutils apt_download nova-compute nova-compute-qemu qemu sysfsutils

View File

@@ -14,7 +14,7 @@ exec_logfile
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Finalize the installation # Finalize the installation
# http://docs.openstack.org/mitaka/install-guide-ubuntu/environment-packages.html # https://docs.openstack.org/install-guide/environment-packages-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Note: We assume that apt_init.sh set up repos and updated the apt index files # Note: We assume that apt_init.sh set up repos and updated the apt index files

View File

@@ -14,7 +14,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Memcached # Memcached
# http://docs.openstack.org/ocata/install-guide-ubuntu/environment-memcached.html # https://docs.openstack.org/install-guide/environment-memcached-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Installing memcache packages." echo "Installing memcache packages."

View File

@@ -14,14 +14,14 @@ indicate_current_auto
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Install the message broker service (RabbitMQ). # Install the message broker service (RabbitMQ).
# http://docs.openstack.org/ocata/install-guide-ubuntu/environment-messaging.html # https://docs.openstack.org/install-guide/environment-messaging-ubuntu.html
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
echo "Installing RabbitMQ." echo "Installing RabbitMQ."
sudo apt install -y rabbitmq-server sudo apt install -y rabbitmq-server
echo -n "Waiting for RabbitMQ to start." echo -n "Waiting for RabbitMQ to start."
while ! sudo rabbitmqctl status >/dev/null; do until sudo rabbitmqctl status >/dev/null; do
sleep 1 sleep 1
echo -n . echo -n .
done done

View File

@@ -14,9 +14,13 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up Block Storage service controller (cinder controller node) # Set up Block Storage service controller (cinder controller node)
# http://docs.openstack.org/ocata/install-guide-ubuntu/cinder-controller-install.html # https://docs.openstack.org/cinder/pike/install/cinder-controller-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Prerequisites
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Setting up database for cinder." echo "Setting up database for cinder."
setup_database cinder "$CINDER_DB_USER" "$CINDER_DBPASS" setup_database cinder "$CINDER_DB_USER" "$CINDER_DBPASS"
@@ -40,42 +44,42 @@ openstack role add \
"$ADMIN_ROLE_NAME" "$ADMIN_ROLE_NAME"
echo "Registering cinder with keystone so that other services can locate it." echo "Registering cinder with keystone so that other services can locate it."
openstack service create \
--name cinder \
--description "OpenStack Block Storage" \
volume
openstack service create \ openstack service create \
--name cinderv2 \ --name cinderv2 \
--description "OpenStack Block Storage" \ --description "OpenStack Block Storage" \
volumev2 volumev2
openstack endpoint create \ openstack service create \
--region "$REGION" \ --name cinderv3 \
volume public http://controller:8776/v1/%\(tenant_id\)s --description "OpenStack Block Storage" \
volumev3
openstack endpoint create \ openstack endpoint create \
--region "$REGION" \ --region "$REGION" \
volume internal http://controller:8776/v1/%\(tenant_id\)s volumev2 public http://controller:8776/v2/%\(project_id\)s
openstack endpoint create \ openstack endpoint create \
--region "$REGION" \ --region "$REGION" \
volume admin http://controller:8776/v1/%\(tenant_id\)s volumev2 internal http://controller:8776/v2/%\(project_id\)s
openstack endpoint create \ openstack endpoint create \
--region "$REGION" \ --region "$REGION" \
volumev2 public http://controller:8776/v2/%\(tenant_id\)s volumev2 admin http://controller:8776/v2/%\(project_id\)s
openstack endpoint create \ openstack endpoint create \
--region "$REGION" \ --region "$REGION" \
volumev2 internal http://controller:8776/v2/%\(tenant_id\)s volumev3 public http://controller:8776/v3/%\(project_id\)s
openstack endpoint create \ openstack endpoint create \
--region "$REGION" \ --region "$REGION" \
volumev2 admin http://controller:8776/v2/%\(tenant_id\)s volumev3 internal http://controller:8776/v3/%\(project_id\)s
openstack endpoint create \
--region "$REGION" \
volumev3 admin http://controller:8776/v3/%\(project_id\)s
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Install and configure cinder # Install and configure components
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Installing cinder." echo "Installing cinder."
@@ -143,6 +147,16 @@ conf=/etc/apache2/conf-available/cinder-wsgi.conf
sudo sed -i --follow-symlinks '/WSGIDaemonProcess/ s/processes=[0-9]*/processes=1/' $conf sudo sed -i --follow-symlinks '/WSGIDaemonProcess/ s/processes=[0-9]*/processes=1/' $conf
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# not in install-guide: as of 2017-08-22, cinder wsgi processes can not
# read /etc/cinder due to permission problem introduced with Pike packages
# (drwxr-x--- root cinder) vs. cinder:www-data
if ls -ld /etc/cinder | grep "root cinder"; then
echo "Setting owner for /etc/cinder."
sudo chown cinder:cinder /etc/cinder
else
echo "XXX Workaround for /etc/cinder owner no longer needed."
fi
echo "Restarting the Compute API service." echo "Restarting the Compute API service."
sudo service nova-api restart sudo service nova-api restart
@@ -150,6 +164,11 @@ echo "Restarting the Block Storage services."
sudo service cinder-scheduler restart sudo service cinder-scheduler restart
sudo service apache2 restart sudo service apache2 restart
# Not in the install-guide: AUTH="source $CONFIG_DIR/admin-openstackrc.sh"
echo "Removing unused SQLite database file." echo -n "Waiting for cinder to start."
sudo rm -v /var/lib/cinder/cinder.sqlite until node_ssh controller "$AUTH; openstack volume service list" >/dev/null \
2>&1; do
echo -n .
sleep 1
done
echo

View File

@@ -15,7 +15,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Install and configure a storage node # Install and configure a storage node
# http://docs.openstack.org/ocata/install-guide-ubuntu/cinder-storage-install.html # https://docs.openstack.org/cinder/pike/install/cinder-storage-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
MY_MGMT_IP=$(get_node_ip_in_network "$(hostname)" "mgmt") MY_MGMT_IP=$(get_node_ip_in_network "$(hostname)" "mgmt")
@@ -24,6 +24,10 @@ echo "IP address of this node's interface in management network: $MY_MGMT_IP."
echo "Installing qemu support package for non-raw image types." echo "Installing qemu support package for non-raw image types."
sudo apt install -y qemu sudo apt install -y qemu
# not in install-guide (needed to prevent lvcreate error):
echo "Installing thin-provisioning-tools."
sudo apt install -y thin-provisioning-tools
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Prerequisites # Prerequisites
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -115,12 +119,9 @@ echo "Restarting cinder service."
sudo service tgt restart sudo service tgt restart
sudo service cinder-volume restart sudo service cinder-volume restart
# Not in the install-guide:
sudo rm -v /var/lib/cinder/cinder.sqlite
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Verify the Block Storage installation # Verify Cinder operation
# http://docs.openstack.org/ocata/install-guide-ubuntu/cinder-verify.html # https://docs.openstack.org/cinder/pike/install/cinder-verify.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Verifying Block Storage installation on controller node." echo "Verifying Block Storage installation on controller node."
@@ -182,7 +183,7 @@ check_cinder_services
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Verify the Block Storage installation # Verify the Block Storage installation
# http://docs.openstack.org/ocata/install-guide-ubuntu/launch-instance-cinder.html # https://docs.openstack.org/install-guide/launch-instance-cinder.html
# (partial implementation without instance) # (partial implementation without instance)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@@ -14,7 +14,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Install the Image Service (glance). # Install the Image Service (glance).
# http://docs.openstack.org/ocata/install-guide-ubuntu/glance-install.html # https://docs.openstack.org/glance/pike/install/install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -133,7 +133,7 @@ sudo service glance-api restart
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Verify the Image Service installation # Verify the Image Service installation
# http://docs.openstack.org/ocata/install-guide-ubuntu/glance-verify.html # https://docs.openstack.org/glance/pike/install/verify.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo -n "Waiting for glance to start." echo -n "Waiting for glance to start."

View File

@@ -17,7 +17,7 @@ wait_for_keystone
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Install the Orchestration Service (heat) # Install the Orchestration Service (heat)
# http://docs.openstack.org/project-install-guide/orchestration/ocata/install-ubuntu.html # https://docs.openstack.org/heat/pike/install/install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -205,8 +205,8 @@ ENDTIME=$(date +%s)
echo "Restarting heat servies took $((ENDTIME - STARTTIME)) seconds." echo "Restarting heat servies took $((ENDTIME - STARTTIME)) seconds."
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Verify operation of Orchestration Service (heat). # Verify operation
# http://docs.openstack.org/project-install-guide/orchestration/ocata/verify.html # https://docs.openstack.org/heat/pike/install/verify.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Listing service components." echo "Listing service components."

View File

@@ -13,7 +13,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up OpenStack Dashboard (horizon) # Set up OpenStack Dashboard (horizon)
# http://docs.openstack.org/ocata/install-guide-ubuntu/horizon-install.html # https://docs.openstack.org/horizon/pike/install/install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -30,17 +30,6 @@ echo "Installing horizon."
sudo apt install -y openstack-dashboard sudo apt install -y openstack-dashboard
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# XXX changing owner/permissions (work-around for packaging bug -- the
# Dashboard will not work without it)
sudo ls -l /var/lib/openstack-dashboard/
sudo namei -l /var/lib/openstack-dashboard/
sudo chown www-data:www-data /var/lib/openstack-dashboard
sudo chown www-data:www-data /var/lib/openstack-dashboard/secret_key
sudo chmod 700 /var/lib/openstack-dashboard
sudo chmod 600 /var/lib/openstack-dashboard/secret_key
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Edit the /etc/openstack-dashboard/local_settings.py file. # Edit the /etc/openstack-dashboard/local_settings.py file.
conf=/etc/openstack-dashboard/local_settings.py conf=/etc/openstack-dashboard/local_settings.py
auth_host=controller auth_host=controller
@@ -71,7 +60,7 @@ echo "memcached listening on $interface_ip:$port."
interface_name=$(getent hosts "$auth_host" | awk '{ print $2 }') interface_name=$(getent hosts "$auth_host" | awk '{ print $2 }')
# Line should read something like: 'LOCATION' : 'controller:11211', # Line should read something like: 'LOCATION' : 'controller:11211',
if grep "LOCATION.*$interface_name:$port" $conf; then if sudo grep "LOCATION.*$interface_name:$port" $conf; then
echo "$conf agrees." echo "$conf agrees."
else else
echo >&2 "$conf disagrees. Aborting." echo >&2 "$conf disagrees. Aborting."
@@ -79,7 +68,7 @@ else
fi fi
echo "CACHES configuration in $conf:" echo "CACHES configuration in $conf:"
awk '/^CACHES =/,/^}/' $conf sudo awk '/^CACHES =/,/^}/' $conf
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Enabling Identity API version 3." echo "Enabling Identity API version 3."

View File

@@ -15,9 +15,13 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up keystone for controller node # Set up keystone for controller node
# http://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html # https://docs.openstack.org/keystone/pike/install/keystone-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Prerequisites
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Setting up database for keystone." echo "Setting up database for keystone."
setup_database keystone "$KEYSTONE_DB_USER" "$KEYSTONE_DBPASS" setup_database keystone "$KEYSTONE_DB_USER" "$KEYSTONE_DBPASS"
@@ -34,7 +38,7 @@ mysql -u keystone -p"$KEYSTONE_DBPASS" keystone -h controller -e quit
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Installing keystone." echo "Installing keystone."
sudo apt install -y keystone sudo apt install -y keystone apache2 libapache2-mod-wsgi
conf=/etc/keystone/keystone.conf conf=/etc/keystone/keystone.conf
echo "Editing $conf." echo "Editing $conf."
@@ -101,9 +105,6 @@ sudo sed -i --follow-symlinks '/WSGIDaemonProcess/ s/processes=[0-9]*/processes=
echo "Restarting apache." echo "Restarting apache."
sudo service apache2 restart sudo service apache2 restart
echo "Removing default SQLite database."
sudo rm -f /var/lib/keystone/keystone.db
# Set environment variables for authentication # Set environment variables for authentication
export OS_USERNAME=$ADMIN_USER_NAME export OS_USERNAME=$ADMIN_USER_NAME
export OS_PASSWORD=$ADMIN_PASS export OS_PASSWORD=$ADMIN_PASS
@@ -115,7 +116,7 @@ export OS_IDENTITY_API_VERSION=3
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Create a domain, projects, users, and roles # Create a domain, projects, users, and roles
# http://docs.openstack.org/ocata/install-guide-ubuntu/keystone-users.html # https://docs.openstack.org/keystone/pike/install/keystone-users.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Wait for keystone to come up # Wait for keystone to come up
@@ -148,7 +149,7 @@ openstack role add \
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Verify operation # Verify operation
# http://docs.openstack.org/ocata/install-guide-ubuntu/keystone-verify.html # https://docs.openstack.org/keystone/pike/install/keystone-verify-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Verifying keystone installation." echo "Verifying keystone installation."
@@ -163,13 +164,11 @@ sudo ls -l $conf
# From this point on, we are going to use keystone for authentication # From this point on, we are going to use keystone for authentication
unset OS_AUTH_URL OS_PASSWORD unset OS_AUTH_URL OS_PASSWORD
# XXX If the default domain ID is default and the default domain name is
# Default, why are we using default here?
echo "Requesting an authentication token as an admin user." echo "Requesting an authentication token as an admin user."
openstack \ openstack \
--os-auth-url http://controller:35357/v3 \ --os-auth-url http://controller:35357/v3 \
--os-project-domain-name default \ --os-project-domain-name Default \
--os-user-domain-name default \ --os-user-domain-name Default \
--os-project-name "$ADMIN_PROJECT_NAME" \ --os-project-name "$ADMIN_PROJECT_NAME" \
--os-username "$ADMIN_USER_NAME" \ --os-username "$ADMIN_USER_NAME" \
--os-auth-type password \ --os-auth-type password \
@@ -179,8 +178,8 @@ openstack \
echo "Requesting an authentication token for the demo user." echo "Requesting an authentication token for the demo user."
openstack \ openstack \
--os-auth-url http://controller:5000/v3 \ --os-auth-url http://controller:5000/v3 \
--os-project-domain-name default \ --os-project-domain-name Default \
--os-user-domain-name default \ --os-user-domain-name Default \
--os-project-name "$DEMO_PROJECT_NAME" \ --os-project-name "$DEMO_PROJECT_NAME" \
--os-username "$DEMO_USER_NAME" \ --os-username "$DEMO_USER_NAME" \
--os-auth-type password \ --os-auth-type password \

View File

@@ -14,8 +14,8 @@ exec_logfile
indicate_current_auto indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up OpenStack Networking (neutron) for compute node. # Install and configure compute node
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-compute-install.html # https://docs.openstack.org/neutron/pike/install/compute-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Installing networking components for compute node." echo "Installing networking components for compute node."

View File

@@ -14,12 +14,12 @@ exec_logfile
indicate_current_auto indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up OpenStack Networking (neutron) for compute node. # Install and configure compute node
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-compute-install.html # https://docs.openstack.org/neutron/pike/install/compute-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Configure Compute to use Networking # Configure the Compute service to use the Networking service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
neutron_admin_user=neutron neutron_admin_user=neutron
@@ -48,7 +48,7 @@ sudo service neutron-linuxbridge-agent restart
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Networking Option 2: Self-service networks # Networking Option 2: Self-service networks
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-verify-option2.html # https://docs.openstack.org/neutron/pike/install/verify-option2.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Sourcing the admin credentials." echo "Sourcing the admin credentials."
@@ -56,5 +56,5 @@ source "$CONFIG_DIR/admin-openstackrc.sh"
echo "Listing agents to verify successful launch of the neutron agents." echo "Listing agents to verify successful launch of the neutron agents."
echo "neutron agent-list" echo "openstack network agent list"
neutron agent-list openstack network agent list

View File

@@ -13,10 +13,14 @@ exec_logfile
indicate_current_auto indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up OpenStack Networking (neutron) for controller node. # Install and configure controller node
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-controller-install.html # https://docs.openstack.org/neutron/pike/install/controller-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Prerequisites
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Setting up database for neutron." echo "Setting up database for neutron."
setup_database neutron "$NEUTRON_DB_USER" "$NEUTRON_DBPASS" setup_database neutron "$NEUTRON_DB_USER" "$NEUTRON_DBPASS"

View File

@@ -14,7 +14,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up OpenStack Networking (neutron) for controller node. # Set up OpenStack Networking (neutron) for controller node.
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-controller-install.html # https://docs.openstack.org/neutron/pike/install/controller-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
source "$CONFIG_DIR/admin-openstackrc.sh" source "$CONFIG_DIR/admin-openstackrc.sh"
@@ -34,7 +34,7 @@ iniset_sudo $conf DEFAULT nova_metadata_ip controller
iniset_sudo $conf DEFAULT metadata_proxy_shared_secret "$METADATA_SECRET" iniset_sudo $conf DEFAULT metadata_proxy_shared_secret "$METADATA_SECRET"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Configure Compute to use Networking # Configure the Compute service to use the Networking service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "Configuring Compute to use Networking." echo "Configuring Compute to use Networking."
@@ -84,14 +84,14 @@ fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set up OpenStack Networking (neutron) for controller node. # Set up OpenStack Networking (neutron) for controller node.
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-verify.html # https://docs.openstack.org/neutron/pike/install/verify-option2.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo -n "Verifying operation." echo -n "Verifying operation."
until openstack extension list --network >/dev/null 2>&1; do until openstack network agent list >/dev/null 2>&1; do
sleep 1 sleep 1
echo -n . echo -n .
done done
echo echo
openstack extension list --network openstack network agent list

View File

@@ -15,7 +15,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Install and configure a compute node # Install and configure a compute node
# http://docs.openstack.org/ocata/install-guide-ubuntu/nova-compute-install.html # https://docs.openstack.org/nova/pike/install/compute-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -118,12 +118,12 @@ sudo service nova-compute restart
echo echo
echo -n "Confirming that the compute host is in the database." echo -n "Confirming that the compute host is in the database."
AUTH="source $CONFIG_DIR/admin-openstackrc.sh" AUTH="source $CONFIG_DIR/admin-openstackrc.sh"
node_ssh controller "$AUTH; openstack hypervisor list" node_ssh controller "$AUTH; openstack compute service list --service nova-compute"
until node_ssh controller "$AUTH; openstack hypervisor list | grep 'compute1.*up'" >/dev/null 2>&1; do until node_ssh controller "$AUTH; openstack compute service list --service nova-compute | grep 'compute1.*up'" >/dev/null 2>&1; do
sleep 2 sleep 2
echo -n . echo -n .
done done
node_ssh controller "$AUTH; openstack hypervisor list" node_ssh controller "$AUTH; openstack compute service list --service nova-compute"
echo echo
echo "Discovering compute hosts." echo "Discovering compute hosts."
@@ -131,13 +131,9 @@ echo "Run this command on controller every time compute hosts are added to" \
"the cluster." "the cluster."
node_ssh controller "sudo nova-manage cell_v2 discover_hosts --verbose" node_ssh controller "sudo nova-manage cell_v2 discover_hosts --verbose"
# Not in install-guide:
# Remove SQLite database created by Ubuntu package for nova.
sudo rm -v /var/lib/nova/nova.sqlite
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Verify operation # Verify operation
# http://docs.openstack.org/ocata/install-guide-ubuntu/nova-verify.html # https://docs.openstack.org/nova/pike/install/verify.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
echo "Verifying operation of the Compute service." echo "Verifying operation of the Compute service."
@@ -152,3 +148,7 @@ openstack catalog list
echo "Listing images to verify connectivity with the Image service." echo "Listing images to verify connectivity with the Image service."
echo "openstack image list" echo "openstack image list"
openstack image list openstack image list
echo "Checking the cells and placement API are working successfully."
echo "on controller node: nova-status upgrade check"
node_ssh controller "sudo nova-status upgrade check"

View File

@@ -14,7 +14,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Install Compute controller services # Install Compute controller services
# http://docs.openstack.org/ocata/install-guide-ubuntu/nova-controller-install.html # https://docs.openstack.org/nova/pike/install/controller-install-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@@ -14,7 +14,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Networking Option 2: Self-service networks # Networking Option 2: Self-service networks
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-compute-install-option2.html # https://docs.openstack.org/neutron/pike/install/compute-install-option2-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@@ -15,7 +15,7 @@ indicate_current_auto
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Networking Option 2: Self-service networks # Networking Option 2: Self-service networks
# http://docs.openstack.org/ocata/install-guide-ubuntu/neutron-controller-install-option2.html # https://docs.openstack.org/neutron/pike/install/controller-install-option2-ubuntu.html
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -136,6 +136,8 @@ echo "Configuring the layer-3 agent."
conf=/etc/neutron/l3_agent.ini conf=/etc/neutron/l3_agent.ini
iniset_sudo $conf DEFAULT interface_driver linuxbridge iniset_sudo $conf DEFAULT interface_driver linuxbridge
# FIXME The following block (comment and change to external_network_bridge
# disappeared in the docs transition to Pike. Intentionally?
# The external_network_bridge option intentionally lacks a value to enable # The external_network_bridge option intentionally lacks a value to enable
# multiple external networks on a single agent. # multiple external networks on a single agent.
iniset_sudo $conf DEFAULT external_network_bridge "" iniset_sudo $conf DEFAULT external_network_bridge ""