1360c197c9
Octavia is currently missing any documentation designed to help new developers and operators understand what we're doing with the project or how to get started using and contributing to it. This patch set aims to correct this problem. Co-Authored-By: Michael Johnson <johnsomor@gmail.com> Co-Authored-By: Leslie Lundquist <llundquist@us.ibm.com> Closes-Bug: #1558368 Change-Id: Idaa37277bd342b644a463d4a0884ea40c2e8d4f5
71 lines
2.0 KiB
Bash
Executable File
71 lines
2.0 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-crt,n-obj,n-cpu,n-cond,n-sch
|
|
# 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
|