099921c14c
As a followup to I273c3c8299ee329bed425f3e7cd4b583ed1187a4, adding nova placement services which are mandatory starting Ocata. Change-Id: I8a4474a52766f01086501564c52e4fc3a2ced7dc
73 lines
2.1 KiB
Bash
Executable File
73 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# These instructions assume an Ubuntu-based host or VM for running devstack.
|
|
# Please note that if you are running this in a VM, it is vitally important
|
|
# that the underlying hardware have nested virtualization enabled or you will
|
|
# experience very poor amphora performance.
|
|
|
|
# Set up the packages we need. Ubuntu package manager is assumed.
|
|
apt-get update
|
|
apt-get install git vim -y
|
|
|
|
# TODO(sbalukoff): Add prerequisites for other distributions.
|
|
|
|
# Clone the devstack repo
|
|
git clone https://github.com/openstack-dev/devstack.git $HOME/devstack
|
|
|
|
cat <<EOF > $HOME/devstack/localrc
|
|
enable_plugin barbican https://review.openstack.org/openstack/barbican
|
|
enable_plugin neutron-lbaas https://review.openstack.org/openstack/neutron-lbaas
|
|
enable_plugin octavia https://review.openstack.org/openstack/octavia
|
|
LIBS_FROM_GIT+=python-neutronclient
|
|
|
|
KEYSTONE_TOKEN_FORMAT=UUID
|
|
|
|
DATABASE_PASSWORD=secretdatabase
|
|
RABBIT_PASSWORD=secretrabbit
|
|
ADMIN_PASSWORD=secretadmin
|
|
SERVICE_PASSWORD=secretservice
|
|
SERVICE_TOKEN=111222333444
|
|
# Enable Logging
|
|
LOGFILE=/opt/stack/logs/stack.sh.log
|
|
VERBOSE=True
|
|
LOG_COLOR=True
|
|
SCREEN_LOGDIR=/opt/stack/logs
|
|
# Pre-requisite
|
|
ENABLED_SERVICES=key,rabbit,mysql
|
|
# Nova
|
|
ENABLED_SERVICES+=,n-api,n-obj,n-cpu,n-cond,n-sch
|
|
# Placement service needed for Nova
|
|
ENABLED_SERVICES+=,placement-api,placement-client
|
|
# Glance
|
|
ENABLED_SERVICES+=,g-api,g-reg
|
|
# Neutron
|
|
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron
|
|
# Enable LBaaS V2
|
|
ENABLED_SERVICES+=,q-lbaasv2
|
|
# Cinder (optional)
|
|
#ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch
|
|
# Tempest (optional)
|
|
#ENABLED_SERVICES+=,tempest
|
|
# Octavia
|
|
ENABLED_SERVICES+=,octavia,o-api,o-cw,o-hm,o-hk
|
|
EOF
|
|
|
|
# Create the stack user
|
|
$HOME/devstack/tools/create-stack-user.sh
|
|
|
|
# Move everything into place
|
|
mv $HOME/devstack /opt/stack/
|
|
chown -R stack:stack /opt/stack/devstack/
|
|
|
|
# Fix permissions on current tty so screens can attach
|
|
chmod go+rw `tty`
|
|
|
|
# Stack that stack!
|
|
su - stack -c /opt/stack/devstack/stack.sh
|
|
|
|
# Add environment variables for auth/endpoints
|
|
echo 'source /opt/stack/devstack/openrc admin admin' >> /opt/stack/.bashrc
|
|
|
|
# Drop into a shell
|
|
exec su - stack
|