e263c82e |
#!/bin/bash
# |
4a43b7bd |
# stackrc
# |
a4693b5d |
# ensure we don't re-source this in the same environment
[[ -z "$_DEVSTACK_STACKRC" ]] || return 0 |
afef8bf0 |
declare -r -g _DEVSTACK_STACKRC=1 |
a4693b5d |
|
0bd2410d |
# Find the other rc files |
388e36c9 |
RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd) |
0bd2410d |
|
dc97cb71 |
# Source required DevStack functions and globals |
0e4cd038 |
source $RC_DIR/functions
|
a4922067 |
# Set the target branch. This is used so that stable branching
# does not need to update each repo below.
TARGET_BRANCH=master
# Cycle trailing projects need to branch later than the others.
TRAILING_TARGET_BRANCH=master
# And some repos do not create stable branches, so this is used
# to make it explicit and avoid accidentally setting to a stable
# branch.
BRANCHLESS_TARGET_BRANCH=master
|
1214d9d0 |
# Destination path for installation
DEST=/opt/stack
|
d3fab7bf |
# Destination for working data
DATA_DIR=${DEST}/data
# Destination for status files
SERVICE_DIR=${DEST}/status
# Path for subunit output file
SUBUNIT_OUTPUT=${DEST}/devstack.subunit
|
74759aa1 |
# Determine stack user
if [[ $EUID -eq 0 ]]; then
STACK_USER=stack
else
STACK_USER=$(whoami)
fi |
91b8d13e |
|
0abde393 |
# Specify region name Region
REGION_NAME=${REGION_NAME:-RegionOne}
|
6f1781f9 |
# Specify name of region where identity service endpoint is registered.
# When deploying multiple DevStack instances in different regions with shared
# Keystone, set KEYSTONE_REGION_NAME to the region where Keystone is running
# for DevStack instances which do not host Keystone.
KEYSTONE_REGION_NAME=${KEYSTONE_REGION_NAME:-$REGION_NAME}
|
8da5656f |
# Specify which services to launch. These generally correspond to |
4a43b7bd |
# screen tabs. To change the default list, use the ``enable_service`` and |
a79617c1 |
# ``disable_service`` functions in ``local.conf``. |
20371664 |
# For example, to enable Swift as part of DevStack add the following |
e3e9b226 |
# settings in ``local.conf``: |
b968b0c3 |
# [[local|localrc]] |
20371664 |
# enable_service s-proxy s-object s-container s-account |
dc97cb71 |
# This allows us to pass ``ENABLED_SERVICES`` |
53753293 |
if ! isset ENABLED_SERVICES ; then |
279cfe75 |
# Keystone - nothing works without keystone
ENABLED_SERVICES=key
# Nova - services to support libvirt based openstack clouds |
b90bb1a4 |
ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-novnc,n-cauth,n-api-meta |
91070d7e |
# Placement service needed for Nova
ENABLED_SERVICES+=,placement-api,placement-client |
279cfe75 |
# Glance services needed for Nova |
72a33129 |
ENABLED_SERVICES+=,g-api,g-reg |
dc97cb71 |
# Cinder |
fafb62b9 |
ENABLED_SERVICES+=,c-sch,c-api,c-vol |
6a008fa7 |
# Neutron
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 |
dc97cb71 |
# Dashboard |
fafb62b9 |
ENABLED_SERVICES+=,horizon |
dc97cb71 |
# Additional services |
546656fc |
ENABLED_SERVICES+=,rabbit,tempest,mysql,etcd3,dstat |
fafb62b9 |
fi |
8da5656f |
|
46455a34 |
# Global toggle for enabling services under mod_wsgi. If this is set to
# ``True`` all services that use HTTPD + mod_wsgi as the preferred method of
# deployment, will be deployed under Apache. If this is set to ``False`` all
# services will rely on the local toggle variable (e.g. ``KEYSTONE_USE_MOD_WSGI``)
ENABLE_HTTPD_MOD_WSGI_SERVICES=True
|
67787e6b |
# Set the default Nova APIs to enable |
168be835 |
NOVA_ENABLED_APIS=osapi_compute,metadata |
67787e6b |
|
5adfef0a |
# CELLSV2_SETUP - how we should configure services with cells v2
#
# - superconductor - this is one conductor for the api services, and |
32608da2 |
# one per cell managing the compute services. This is preferred |
5adfef0a |
# - singleconductor - this is one conductor for the whole deployment,
# this is not recommended, and will be removed in the future.
CELLSV2_SETUP=${CELLSV2_SETUP:-"superconductor"}
|
7b105c57 |
# Set the root URL for Horizon
HORIZON_APACHE_ROOT="/dashboard"
|
cdba1b37 |
# Whether to use SYSTEMD to manage services, we only do this from
# Queens forward.
USE_SYSTEMD="True" |
5edae548 |
USER_UNITS=$(trueorfalse False USER_UNITS)
if [[ "$USER_UNITS" == "True" ]]; then
SYSTEMD_DIR="$HOME/.local/share/systemd/user"
SYSTEMCTL="systemctl --user"
else
SYSTEMD_DIR="/etc/systemd/system"
SYSTEMCTL="sudo systemctl"
fi
|
f85e0ba3 |
# Whether or not to enable Kernel Samepage Merging (KSM) if available.
# This allows programs that mark their memory as mergeable to share
# memory pages if they are identical. This is particularly useful with |
32608da2 |
# libvirt backends. This reduces memory usage at the cost of CPU overhead |
f85e0ba3 |
# to scan memory. We default to enabling it because we tend to be more
# memory constrained than CPU bound.
ENABLE_KSM=$(trueorfalse True ENABLE_KSM)
|
975f4209 |
# Passwords generated by interactive devstack runs
if [[ -r $RC_DIR/.localrc.password ]]; then
source $RC_DIR/.localrc.password
fi
|
94129c7d |
# Control whether Python 3 should be used at all. |
afa8a00c |
export USE_PYTHON3=$(trueorfalse False USE_PYTHON3) |
ddc3839b |
|
94129c7d |
# Control whether Python 3 is enabled for specific services by the
# base name of the directory from which they are installed. See
# enable_python3_package to edit this variable and use_python3_for to
# test membership. |
236250f1 |
export ENABLED_PYTHON3_PACKAGES="nova,glance,cinder,uwsgi,python-openstackclient,openstacksdk" |
94129c7d |
# Explicitly list services not to run under Python 3. See
# disable_python3_package to edit this variable.
export DISABLED_PYTHON3_PACKAGES=""
|
ddc3839b |
# When Python 3 is supported by an application, adding the specific
# version of Python 3 to this variable will install the app using that
# version of the interpreter instead of 2.7. |
6d213dfd |
_DEFAULT_PYTHON3_VERSION="$(_get_python_version python3)" |
4324f4ec |
export PYTHON3_VERSION=${PYTHON3_VERSION:-${_DEFAULT_PYTHON3_VERSION:-3.5}} |
ddc3839b |
# Just to be more explicit on the Python 2 version to use. |
6d213dfd |
_DEFAULT_PYTHON2_VERSION="$(_get_python_version python2)" |
4324f4ec |
export PYTHON2_VERSION=${PYTHON2_VERSION:-${_DEFAULT_PYTHON2_VERSION:-2.7}} |
ddc3839b |
|
a81dcaa6 |
# allow local overrides of env variables, including repo config |
893e6636 |
if [[ -f $RC_DIR/localrc ]]; then
# Old-style user-supplied config |
a81dcaa6 |
source $RC_DIR/localrc |
893e6636 |
elif [[ -f $RC_DIR/.localrc.auto ]]; then
# New-style user-supplied config extracted from local.conf
source $RC_DIR/.localrc.auto |
a81dcaa6 |
fi
|
9a0c2bd5 |
# Default for log coloring is based on interactive-or-not.
# Baseline assumption is that non-interactive invocations are for CI,
# where logs are to be presented as browsable text files; hence color
# codes should be omitted.
# Simply override LOG_COLOR if your environment is different.
if [ -t 1 ]; then
_LOG_COLOR_DEFAULT=True
else
_LOG_COLOR_DEFAULT=False
fi
|
646085d7 |
# Use color for logging output (only available if syslog is not used) |
9a0c2bd5 |
LOG_COLOR=$(trueorfalse $_LOG_COLOR_DEFAULT LOG_COLOR) |
646085d7 |
# Make tracing more educational
if [[ "$LOG_COLOR" == "True" ]]; then |
9a0c2bd5 |
# tput requires TERM or -T. If neither is present, use vt100, a
# no-frills least common denominator supported everywhere.
TPUT_T=
if ! [ $TERM ]; then
TPUT_T='-T vt100'
fi
export PS4='+\[$(tput '$TPUT_T' setaf 242)\]$(short_source)\[$(tput '$TPUT_T' sgr0)\] ' |
646085d7 |
else
export PS4='+ $(short_source): '
fi
|
3fd71d68 |
# Configure Identity API version: 2.0, 3 |
75bf9722 |
IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-3} |
3fd71d68 |
# Set the option ENABLE_IDENTITY_V2 to True. It defines whether the DevStack
# deployment will be deploying the Identity v2 pipelines. If this option is set
# to ``False``, DevStack will: i) disable Identity v2; ii) configure Tempest to
# skip Identity v2 specific tests; and iii) configure Horizon to use Identity
# v3. When this option is set to ``False``, the option IDENTITY_API_VERSION
# will to be set to ``3`` in order to make DevStack register the Identity
# endpoint as v3. This flag is experimental and will be used as basis to
# identify the projects which still have issues to operate with Identity v3. |
c4b0059c |
ENABLE_IDENTITY_V2=$(trueorfalse False ENABLE_IDENTITY_V2) |
3fd71d68 |
if [ "$ENABLE_IDENTITY_V2" == "False" ]; then
IDENTITY_API_VERSION=3
fi
|
5686dbc4 |
# Enable use of Python virtual environments. Individual project use of
# venvs are controlled by the PROJECT_VENV array; every project with
# an entry in the array will be installed into the named venv.
# By default this will put each project into its own venv.
USE_VENV=$(trueorfalse False USE_VENV)
# Add packages that need to be installed into a venv but are not in any
# requirmenets files here, in a comma-separated list
ADDITIONAL_VENV_PACKAGES=${ADITIONAL_VENV_PACKAGES:-""}
|
c4f47345 |
# This can be used to turn database query logging on and off
# (currently only implemented for MySQL backend) |
20a3dbdf |
DATABASE_QUERY_LOGGING=$(trueorfalse False DATABASE_QUERY_LOGGING) |
cc6b4435 |
|
d53ad0b0 |
# Set a timeout for git operations. If git is still running when the
# timeout expires, the command will be retried up to 3 times. This is
# in the format for timeout(1);
#
# DURATION is a floating point number with an optional suffix: 's'
# for seconds (the default), 'm' for minutes, 'h' for hours or 'd'
# for days.
#
# Zero disables timeouts
GIT_TIMEOUT=${GIT_TIMEOUT:-0}
|
6ed53156 |
# How should we be handling WSGI deployments. By default we're going
# to allow for 2 modes, which is "uwsgi" which runs with an apache
# proxy uwsgi in front of it, or "mod_wsgi", which runs in
# apache. mod_wsgi is deprecated, don't use it.
WSGI_MODE=${WSGI_MODE:-"uwsgi"}
|
4a43b7bd |
# Repositories
# ------------
|
d5b18ecb |
# Base GIT Repo URL |
3324f19f |
# Another option is https://git.openstack.org |
047cac56 |
GIT_BASE=${GIT_BASE:-git://git.openstack.org} |
d5b18ecb |
|
05aa3846 |
# The location of REQUIREMENTS once cloned
REQUIREMENTS_DIR=$DEST/requirements
|
07d7e5b1 |
# Which libraries should we install from git instead of using released
# versions on pypi?
# |
dc97cb71 |
# By default DevStack is now installing libraries from pypi instead of |
07d7e5b1 |
# from git repositories by default. This works great if you are
# developing server components, but if you want to develop libraries |
dc97cb71 |
# and see them live in DevStack you need to tell DevStack it should |
07d7e5b1 |
# install them from git.
#
# ex: LIBS_FROM_GIT=python-keystoneclient,oslo.config
#
# Will install those 2 libraries from git, the rest from pypi. |
46f8cb7f |
#
# Setting the variable to 'ALL' will activate the download for all
# libraries. |
07d7e5b1 |
|
3360ffb5 |
DEVSTACK_SERIES="rocky" |
dc97cb71 |
|
24516d04 |
##############
#
# OpenStack Server Components
#
##############
|
ee5ae7b9 |
# block storage service |
a81dcaa6 |
CINDER_REPO=${CINDER_REPO:-${GIT_BASE}/openstack/cinder.git} |
a4922067 |
CINDER_BRANCH=${CINDER_BRANCH:-$TARGET_BRANCH} |
67787e6b |
|
096fb5a8 |
# image catalog service |
a81dcaa6 |
GLANCE_REPO=${GLANCE_REPO:-${GIT_BASE}/openstack/glance.git} |
a4922067 |
GLANCE_BRANCH=${GLANCE_BRANCH:-$TARGET_BRANCH} |
096fb5a8 |
# django powered web control panel for openstack |
a81dcaa6 |
HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git} |
a4922067 |
HORIZON_BRANCH=${HORIZON_BRANCH:-$TARGET_BRANCH} |
096fb5a8 |
|
1a6d4492 |
# unified auth system (manages accounts/tokens)
KEYSTONE_REPO=${KEYSTONE_REPO:-${GIT_BASE}/openstack/keystone.git} |
a4922067 |
KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-$TARGET_BRANCH} |
1a6d4492 |
|
24516d04 |
# neutron service
NEUTRON_REPO=${NEUTRON_REPO:-${GIT_BASE}/openstack/neutron.git} |
a4922067 |
NEUTRON_BRANCH=${NEUTRON_BRANCH:-$TARGET_BRANCH} |
58936fdb |
|
20b839fd |
# neutron fwaas service
NEUTRON_FWAAS_REPO=${NEUTRON_FWAAS_REPO:-${GIT_BASE}/openstack/neutron-fwaas.git} |
a4922067 |
NEUTRON_FWAAS_BRANCH=${NEUTRON_FWAAS_BRANCH:-$TARGET_BRANCH} |
20b839fd |
|
1a6d4492 |
# compute service
NOVA_REPO=${NOVA_REPO:-${GIT_BASE}/openstack/nova.git} |
a4922067 |
NOVA_BRANCH=${NOVA_BRANCH:-$TARGET_BRANCH} |
1a6d4492 |
|
ee5ae7b9 |
# object storage service |
24516d04 |
SWIFT_REPO=${SWIFT_REPO:-${GIT_BASE}/openstack/swift.git} |
a4922067 |
SWIFT_BRANCH=${SWIFT_BRANCH:-$TARGET_BRANCH} |
24516d04 |
##############
#
# Testing Components
#
##############
# consolidated openstack requirements
REQUIREMENTS_REPO=${REQUIREMENTS_REPO:-${GIT_BASE}/openstack/requirements.git} |
a4922067 |
REQUIREMENTS_BRANCH=${REQUIREMENTS_BRANCH:-$TARGET_BRANCH} |
24516d04 |
# Tempest test suite
TEMPEST_REPO=${TEMPEST_REPO:-${GIT_BASE}/openstack/tempest.git} |
a4922067 |
TEMPEST_BRANCH=${TEMPEST_BRANCH:-$BRANCHLESS_TARGET_BRANCH} |
24516d04 |
##############
# |
be65c6f8 |
# OpenStack Client Library Components |
be3e5535 |
# Note default install is from pip, see LIBS_FROM_GIT |
24516d04 |
#
##############
# volume client |
e08ab104 |
GITREPO["python-cinderclient"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git} |
a4922067 |
GITBRANCH["python-cinderclient"]=${CINDERCLIENT_BRANCH:-$TARGET_BRANCH} |
24516d04 |
|
8d0d3115 |
# os-brick client for local volume attachement |
1d23b935 |
GITREPO["python-brick-cinderclient-ext"]=${BRICK_CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-brick-cinderclient-ext.git} |
a4922067 |
GITBRANCH["python-brick-cinderclient-ext"]=${BRICK_CINDERCLIENT_BRANCH:-$TARGET_BRANCH} |
8d0d3115 |
|
ed7dbe57 |
# python barbican client library
GITREPO["python-barbicanclient"]=${BARBICANCLIENT_REPO:-${GIT_BASE}/openstack/python-barbicanclient.git} |
a4922067 |
GITBRANCH["python-barbicanclient"]=${BARBICANCLIENT_BRANCH:-$TARGET_BRANCH} |
ed7dbe57 |
GITDIR["python-barbicanclient"]=$DEST/python-barbicanclient
|
24516d04 |
# python glance client library |
e08ab104 |
GITREPO["python-glanceclient"]=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git} |
a4922067 |
GITBRANCH["python-glanceclient"]=${GLANCECLIENT_BRANCH:-$TARGET_BRANCH} |
24516d04 |
# ironic client |
e08ab104 |
GITREPO["python-ironicclient"]=${IRONICCLIENT_REPO:-${GIT_BASE}/openstack/python-ironicclient.git} |
a4922067 |
GITBRANCH["python-ironicclient"]=${IRONICCLIENT_BRANCH:-$TARGET_BRANCH} |
47367071 |
# ironic plugin is out of tree, but nova uses it. set GITDIR here.
GITDIR["python-ironicclient"]=$DEST/python-ironicclient |
24516d04 |
|
21a9077d |
# the base authentication plugins that clients use to authenticate
GITREPO["keystoneauth"]=${KEYSTONEAUTH_REPO:-${GIT_BASE}/openstack/keystoneauth.git} |
a4922067 |
GITBRANCH["keystoneauth"]=${KEYSTONEAUTH_BRANCH:-$TARGET_BRANCH} |
21a9077d |
|
24516d04 |
# python keystone client library to nova that horizon uses |
e08ab104 |
GITREPO["python-keystoneclient"]=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git} |
a4922067 |
GITBRANCH["python-keystoneclient"]=${KEYSTONECLIENT_BRANCH:-$TARGET_BRANCH} |
24516d04 |
# neutron client |
e08ab104 |
GITREPO["python-neutronclient"]=${NEUTRONCLIENT_REPO:-${GIT_BASE}/openstack/python-neutronclient.git} |
a4922067 |
GITBRANCH["python-neutronclient"]=${NEUTRONCLIENT_BRANCH:-$TARGET_BRANCH} |
24516d04 |
|
ca85b799 |
# python client library to nova that horizon (and others) use |
e08ab104 |
GITREPO["python-novaclient"]=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git} |
a4922067 |
GITBRANCH["python-novaclient"]=${NOVACLIENT_BRANCH:-$TARGET_BRANCH} |
096fb5a8 |
|
24516d04 |
# python swift client library |
e08ab104 |
GITREPO["python-swiftclient"]=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git} |
a4922067 |
GITBRANCH["python-swiftclient"]=${SWIFTCLIENT_BRANCH:-$TARGET_BRANCH} |
122ab703 |
|
9f61d29e |
# consolidated openstack python client |
e08ab104 |
GITREPO["python-openstackclient"]=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git} |
a4922067 |
GITBRANCH["python-openstackclient"]=${OPENSTACKCLIENT_BRANCH:-$TARGET_BRANCH} |
aecd189f |
# this doesn't exist in a lib file, so set it here
GITDIR["python-openstackclient"]=$DEST/python-openstackclient |
9f61d29e |
|
a066abed |
# placement-api CLI
GITREPO["osc-placement"]=${OSC_PLACEMENT_REPO:-${GIT_BASE}/openstack/osc-placement.git} |
a4922067 |
GITBRANCH["osc-placement"]=${OSC_PLACEMENT_BRANCH:-$TARGET_BRANCH} |
a066abed |
|
dc97cb71 |
|
24516d04 |
###################
#
# Oslo Libraries |
be3e5535 |
# Note default install is from pip, see LIBS_FROM_GIT |
24516d04 |
#
################### |
122ab703 |
|
968ebeee |
# castellan key manager interface
GITREPO["castellan"]=${CASTELLAN_REPO:-${GIT_BASE}/openstack/castellan.git} |
a4922067 |
GITBRANCH["castellan"]=${CASTELLAN_BRANCH:-$TARGET_BRANCH} |
968ebeee |
|
6b1cb108 |
# cliff command line framework |
cc52406a |
GITREPO["cliff"]=${CLIFF_REPO:-${GIT_BASE}/openstack/cliff.git} |
a4922067 |
GITBRANCH["cliff"]=${CLIFF_BRANCH:-$TARGET_BRANCH} |
6b1cb108 |
|
e3a640d5 |
# async framework/helpers
GITREPO["futurist"]=${FUTURIST_REPO:-${GIT_BASE}/openstack/futurist.git} |
a4922067 |
GITBRANCH["futurist"]=${FUTURIST_BRANCH:-$TARGET_BRANCH} |
e3a640d5 |
|
ee9064b7 |
# debtcollector deprecation framework/helpers
GITREPO["debtcollector"]=${DEBTCOLLECTOR_REPO:-${GIT_BASE}/openstack/debtcollector.git} |
a4922067 |
GITBRANCH["debtcollector"]=${DEBTCOLLECTOR_BRANCH:-$TARGET_BRANCH} |
ee9064b7 |
|
96c6b2de |
# helpful state machines
GITREPO["automaton"]=${AUTOMATON_REPO:-${GIT_BASE}/openstack/automaton.git} |
a4922067 |
GITBRANCH["automaton"]=${AUTOMATON_BRANCH:-$TARGET_BRANCH} |
96c6b2de |
|
531017cf |
# oslo.cache
GITREPO["oslo.cache"]=${OSLOCACHE_REPO:-${GIT_BASE}/openstack/oslo.cache.git} |
a4922067 |
GITBRANCH["oslo.cache"]=${OSLOCACHE_BRANCH:-$TARGET_BRANCH} |
531017cf |
|
0b9464d4 |
# oslo.concurrency |
cc52406a |
GITREPO["oslo.concurrency"]=${OSLOCON_REPO:-${GIT_BASE}/openstack/oslo.concurrency.git} |
a4922067 |
GITBRANCH["oslo.concurrency"]=${OSLOCON_BRANCH:-$TARGET_BRANCH} |
0b9464d4 |
|
1b6b5318 |
# oslo.config |
cc52406a |
GITREPO["oslo.config"]=${OSLOCFG_REPO:-${GIT_BASE}/openstack/oslo.config.git} |
a4922067 |
GITBRANCH["oslo.config"]=${OSLOCFG_BRANCH:-$TARGET_BRANCH} |
1b6b5318 |
|
958111e1 |
# oslo.context
GITREPO["oslo.context"]=${OSLOCTX_REPO:-${GIT_BASE}/openstack/oslo.context.git} |
a4922067 |
GITBRANCH["oslo.context"]=${OSLOCTX_BRANCH:-$TARGET_BRANCH} |
958111e1 |
|
da945f31 |
# oslo.db |
b7cda389 |
GITREPO["oslo.db"]=${OSLODB_REPO:-${GIT_BASE}/openstack/oslo.db.git} |
a4922067 |
GITBRANCH["oslo.db"]=${OSLODB_BRANCH:-$TARGET_BRANCH} |
da945f31 |
|
cd5c8136 |
# oslo.i18n |
b7cda389 |
GITREPO["oslo.i18n"]=${OSLOI18N_REPO:-${GIT_BASE}/openstack/oslo.i18n.git} |
a4922067 |
GITBRANCH["oslo.i18n"]=${OSLOI18N_BRANCH:-$TARGET_BRANCH} |
cd5c8136 |
|
13249f87 |
# oslo.log |
b7cda389 |
GITREPO["oslo.log"]=${OSLOLOG_REPO:-${GIT_BASE}/openstack/oslo.log.git} |
a4922067 |
GITBRANCH["oslo.log"]=${OSLOLOG_BRANCH:-$TARGET_BRANCH} |
13249f87 |
|
1b6b5318 |
# oslo.messaging |
b7cda389 |
GITREPO["oslo.messaging"]=${OSLOMSG_REPO:-${GIT_BASE}/openstack/oslo.messaging.git} |
a4922067 |
GITBRANCH["oslo.messaging"]=${OSLOMSG_BRANCH:-$TARGET_BRANCH} |
1b6b5318 |
|
0b9464d4 |
# oslo.middleware |
cc52406a |
GITREPO["oslo.middleware"]=${OSLOMID_REPO:-${GIT_BASE}/openstack/oslo.middleware.git} |
a4922067 |
GITBRANCH["oslo.middleware"]=${OSLOMID_BRANCH:-$TARGET_BRANCH} |
0b9464d4 |
|
20b027b7 |
# oslo.policy
GITREPO["oslo.policy"]=${OSLOPOLICY_REPO:-${GIT_BASE}/openstack/oslo.policy.git} |
a4922067 |
GITBRANCH["oslo.policy"]=${OSLOPOLICY_BRANCH:-$TARGET_BRANCH} |
20b027b7 |
|
7792bc39 |
# oslo.privsep
GITREPO["oslo.privsep"]=${OSLOPRIVSEP_REPO:-${GIT_BASE}/openstack/oslo.privsep.git} |
a4922067 |
GITBRANCH["oslo.privsep"]=${OSLOPRIVSEP_BRANCH:-$TARGET_BRANCH} |
7792bc39 |
|
77a7d11d |
# oslo.reports
GITREPO["oslo.reports"]=${OSLOREPORTS_REPO:-${GIT_BASE}/openstack/oslo.reports.git} |
a4922067 |
GITBRANCH["oslo.reports"]=${OSLOREPORTS_BRANCH:-$TARGET_BRANCH} |
77a7d11d |
|
0915e0c6 |
# oslo.rootwrap |
b7cda389 |
GITREPO["oslo.rootwrap"]=${OSLORWRAP_REPO:-${GIT_BASE}/openstack/oslo.rootwrap.git} |
a4922067 |
GITBRANCH["oslo.rootwrap"]=${OSLORWRAP_BRANCH:-$TARGET_BRANCH} |
0915e0c6 |
|
5cd17f71 |
# oslo.serialization |
b7cda389 |
GITREPO["oslo.serialization"]=${OSLOSERIALIZATION_REPO:-${GIT_BASE}/openstack/oslo.serialization.git} |
a4922067 |
GITBRANCH["oslo.serialization"]=${OSLOSERIALIZATION_BRANCH:-$TARGET_BRANCH} |
5cd17f71 |
|
18d1cca6 |
# oslo.service
GITREPO["oslo.service"]=${OSLOSERVICE_REPO:-${GIT_BASE}/openstack/oslo.service.git} |
a4922067 |
GITBRANCH["oslo.service"]=${OSLOSERVICE_BRANCH:-$TARGET_BRANCH} |
18d1cca6 |
|
5cd17f71 |
# oslo.utils |
b7cda389 |
GITREPO["oslo.utils"]=${OSLOUTILS_REPO:-${GIT_BASE}/openstack/oslo.utils.git} |
a4922067 |
GITBRANCH["oslo.utils"]=${OSLOUTILS_BRANCH:-$TARGET_BRANCH} |
5cd17f71 |
|
aca8a7fd |
# oslo.versionedobjects
GITREPO["oslo.versionedobjects"]=${OSLOVERSIONEDOBJECTS_REPO:-${GIT_BASE}/openstack/oslo.versionedobjects.git} |
a4922067 |
GITBRANCH["oslo.versionedobjects"]=${OSLOVERSIONEDOBJECTS_BRANCH:-$TARGET_BRANCH} |
aca8a7fd |
|
f5aa05c0 |
# oslo.vmware |
b7cda389 |
GITREPO["oslo.vmware"]=${OSLOVMWARE_REPO:-${GIT_BASE}/openstack/oslo.vmware.git} |
a4922067 |
GITBRANCH["oslo.vmware"]=${OSLOVMWARE_BRANCH:-$TARGET_BRANCH} |
f5aa05c0 |
|
ba0a659c |
# osprofiler
GITREPO["osprofiler"]=${OSPROFILER_REPO:-${GIT_BASE}/openstack/osprofiler.git} |
a4922067 |
GITBRANCH["osprofiler"]=${OSPROFILER_BRANCH:-$TARGET_BRANCH} |
ba0a659c |
|
6b1cb108 |
# pycadf auditing library |
cc52406a |
GITREPO["pycadf"]=${PYCADF_REPO:-${GIT_BASE}/openstack/pycadf.git} |
a4922067 |
GITBRANCH["pycadf"]=${PYCADF_BRANCH:-$TARGET_BRANCH} |
6b1cb108 |
# stevedore plugin manager |
cc52406a |
GITREPO["stevedore"]=${STEVEDORE_REPO:-${GIT_BASE}/openstack/stevedore.git} |
a4922067 |
GITBRANCH["stevedore"]=${STEVEDORE_BRANCH:-$TARGET_BRANCH} |
6b1cb108 |
# taskflow plugin manager |
cc52406a |
GITREPO["taskflow"]=${TASKFLOW_REPO:-${GIT_BASE}/openstack/taskflow.git} |
a4922067 |
GITBRANCH["taskflow"]=${TASKFLOW_BRANCH:-$TARGET_BRANCH} |
6b1cb108 |
|
c187b88e |
# tooz plugin manager
GITREPO["tooz"]=${TOOZ_REPO:-${GIT_BASE}/openstack/tooz.git} |
a4922067 |
GITBRANCH["tooz"]=${TOOZ_BRANCH:-$TARGET_BRANCH} |
c187b88e |
|
1a6d4492 |
# pbr drives the setuptools configs |
cc52406a |
GITREPO["pbr"]=${PBR_REPO:-${GIT_BASE}/openstack-dev/pbr.git} |
a4922067 |
GITBRANCH["pbr"]=${PBR_BRANCH:-$TARGET_BRANCH} |
52e631d8 |
|
dc97cb71 |
|
24516d04 |
##################
#
# Libraries managed by OpenStack programs (non oslo)
#
################## |
1bfa3d53 |
|
f9c2a683 |
# cursive library
GITREPO["cursive"]=${CURSIVE_REPO:-${GIT_BASE}/openstack/cursive.git} |
a4922067 |
GITBRANCH["cursive"]=${CURSIVE_BRANCH:-$TARGET_BRANCH} |
f9c2a683 |
|
24516d04 |
# glance store library |
ee5ae7b9 |
GITREPO["glance_store"]=${GLANCE_STORE_REPO:-${GIT_BASE}/openstack/glance_store.git} |
a4922067 |
GITBRANCH["glance_store"]=${GLANCE_STORE_BRANCH:-$TARGET_BRANCH} |
5a09c922 |
|
24516d04 |
# keystone middleware |
658312ca |
GITREPO["keystonemiddleware"]=${KEYSTONEMIDDLEWARE_REPO:-${GIT_BASE}/openstack/keystonemiddleware.git} |
a4922067 |
GITBRANCH["keystonemiddleware"]=${KEYSTONEMIDDLEWARE_BRANCH:-$TARGET_BRANCH} |
24516d04 |
# s3 support for swift |
cc481740 |
SWIFT3_REPO=${SWIFT3_REPO:-${GIT_BASE}/openstack/swift3.git} |
a4922067 |
SWIFT3_BRANCH=${SWIFT3_BRANCH:-$TARGET_BRANCH} |
1a6d4492 |
|
ad61e7f9 |
# ceilometer middleware
GITREPO["ceilometermiddleware"]=${CEILOMETERMIDDLEWARE_REPO:-${GIT_BASE}/openstack/ceilometermiddleware.git} |
a4922067 |
GITBRANCH["ceilometermiddleware"]=${CEILOMETERMIDDLEWARE_BRANCH:-$TARGET_BRANCH} |
e9a4750f |
GITDIR["ceilometermiddleware"]=$DEST/ceilometermiddleware |
ad61e7f9 |
|
236250f1 |
# openstacksdk OpenStack Python SDK
GITREPO["openstacksdk"]=${OPENSTACKSDK_REPO:-${GIT_BASE}/openstack/openstacksdk.git}
GITBRANCH["openstacksdk"]=${OPENSTACKSDK_BRANCH:-$TARGET_BRANCH}
|
10e1fd42 |
# os-brick library to manage local volume attaches
GITREPO["os-brick"]=${OS_BRICK_REPO:-${GIT_BASE}/openstack/os-brick.git} |
a4922067 |
GITBRANCH["os-brick"]=${OS_BRICK_BRANCH:-$TARGET_BRANCH} |
10e1fd42 |
|
06f3639a |
# os-client-config to manage clouds.yaml and friends
GITREPO["os-client-config"]=${OS_CLIENT_CONFIG_REPO:-${GIT_BASE}/openstack/os-client-config.git} |
a4922067 |
GITBRANCH["os-client-config"]=${OS_CLIENT_CONFIG_BRANCH:-$TARGET_BRANCH} |
06f3639a |
GITDIR["os-client-config"]=$DEST/os-client-config
|
1258da64 |
# os-vif library to communicate between Neutron to Nova
GITREPO["os-vif"]=${OS_VIF_REPO:-${GIT_BASE}/openstack/os-vif.git} |
a4922067 |
GITBRANCH["os-vif"]=${OS_VIF_BRANCH:-$TARGET_BRANCH} |
1258da64 |
|
06f3639a |
# osc-lib OpenStackClient common lib
GITREPO["osc-lib"]=${OSC_LIB_REPO:-${GIT_BASE}/openstack/osc-lib.git} |
a4922067 |
GITBRANCH["osc-lib"]=${OSC_LIB_BRANCH:-$TARGET_BRANCH} |
06f3639a |
|
869b72b8 |
# ironic common lib
GITREPO["ironic-lib"]=${IRONIC_LIB_REPO:-${GIT_BASE}/openstack/ironic-lib.git} |
a4922067 |
GITBRANCH["ironic-lib"]=${IRONIC_LIB_BRANCH:-$TARGET_BRANCH} |
47367071 |
# this doesn't exist in a lib file, so set it here
GITDIR["ironic-lib"]=$DEST/ironic-lib |
869b72b8 |
|
3919d4c8 |
# diskimage-builder tool
GITREPO["diskimage-builder"]=${DIB_REPO:-${GIT_BASE}/openstack/diskimage-builder.git} |
a4922067 |
GITBRANCH["diskimage-builder"]=${DIB_BRANCH:-$TARGET_BRANCH} |
3919d4c8 |
GITDIR["diskimage-builder"]=$DEST/diskimage-builder |
1a6d4492 |
|
86561c34 |
# neutron-lib library containing neutron stable non-REST interfaces
GITREPO["neutron-lib"]=${NEUTRON_LIB_REPO:-${GIT_BASE}/openstack/neutron-lib.git} |
a4922067 |
GITBRANCH["neutron-lib"]=${NEUTRON_LIB_BRANCH:-$TARGET_BRANCH} |
86561c34 |
GITDIR["neutron-lib"]=$DEST/neutron-lib
|
aefc926c |
# os-traits library for resource provider traits in the placement service
GITREPO["os-traits"]=${OS_TRAITS_REPO:-${GIT_BASE}/openstack/os-traits.git} |
a4922067 |
GITBRANCH["os-traits"]=${OS_TRAITS_BRANCH:-$TARGET_BRANCH} |
aefc926c |
|
24516d04 |
##################
# |
249e36de |
# TripleO / Heat Agent Components |
24516d04 |
#
################## |
34723862 |
|
16819951 |
# run-parts script required by os-refresh-config
DIB_UTILS_REPO=${DIB_UTILS_REPO:-${GIT_BASE}/openstack/dib-utils.git} |
a4922067 |
DIB_UTILS_BRANCH=${DIB_UTILS_BRANCH:-$BRANCHLESS_TARGET_BRANCH} |
16819951 |
|
24516d04 |
# os-apply-config configuration template tool
OAC_REPO=${OAC_REPO:-${GIT_BASE}/openstack/os-apply-config.git} |
a4922067 |
OAC_BRANCH=${OAC_BRANCH:-$TRAILING_TARGET_BRANCH} |
1a6d4492 |
|
24516d04 |
# os-collect-config configuration agent
OCC_REPO=${OCC_REPO:-${GIT_BASE}/openstack/os-collect-config.git} |
a4922067 |
OCC_BRANCH=${OCC_BRANCH:-$TRAILING_TARGET_BRANCH} |
1a6d4492 |
|
24516d04 |
# os-refresh-config configuration run-parts tool
ORC_REPO=${ORC_REPO:-${GIT_BASE}/openstack/os-refresh-config.git} |
a4922067 |
ORC_BRANCH=${ORC_BRANCH:-$TRAILING_TARGET_BRANCH} |
1a6d4492 |
|
dc97cb71 |
|
24516d04 |
#################
#
# 3rd Party Components (non pip installable)
#
# NOTE(sdague): these should be converted to release version installs or removed
#
#################
# ironic python agent
IRONIC_PYTHON_AGENT_REPO=${IRONIC_PYTHON_AGENT_REPO:-${GIT_BASE}/openstack/ironic-python-agent.git} |
a4922067 |
IRONIC_PYTHON_AGENT_BRANCH=${IRONIC_PYTHON_AGENT_BRANCH:-$TARGET_BRANCH} |
24516d04 |
# a websockets/html5 or flash powered VNC console for vm instances |
a6c78272 |
NOVNC_REPO=${NOVNC_REPO:-https://github.com/novnc/noVNC.git} |
0d9fd60a |
NOVNC_BRANCH=${NOVNC_BRANCH:-stable/v0.6} |
24516d04 |
# a websockets/html5 or flash powered SPICE console for vm instances
SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git} |
a4922067 |
SPICE_BRANCH=${SPICE_BRANCH:-$BRANCHLESS_TARGET_BRANCH} |
24516d04 |
|
ffe691ec |
# Global flag used to configure Tempest and potentially other services if
# volume multiattach is supported. In Queens, only the libvirt compute driver
# and lvm volume driver support multiattach, and qemu must be less than 2.10
# or libvirt must be greater than or equal to 3.10.
ENABLE_VOLUME_MULTIATTACH=$(trueorfalse False ENABLE_VOLUME_MULTIATTACH) |
24516d04 |
|
c0c6f006 |
# Nova hypervisor configuration. We default to libvirt with **kvm** but will
# drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can |
32e1603e |
# also install an **LXC**, **OpenVZ** or **XenAPI** based system. If xenserver-core
# is installed, the default will be XenAPI
DEFAULT_VIRT_DRIVER=libvirt
is_package_installed xenserver-core && DEFAULT_VIRT_DRIVER=xenserver
VIRT_DRIVER=${VIRT_DRIVER:-$DEFAULT_VIRT_DRIVER} |
337bd817 |
case "$VIRT_DRIVER" in |
06fb29c6 |
ironic|libvirt) |
337bd817 |
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} |
23df4da0 |
if [[ "$os_VENDOR" =~ (Debian|Ubuntu) ]]; then |
c9a9e415 |
# The groups change with newer libvirt. Older Ubuntu used
# 'libvirtd', but now uses libvirt like Debian. Do a quick check
# to see if libvirtd group already exists to handle grenade's case.
LIBVIRT_GROUP=$(cut -d ':' -f 1 /etc/group | grep 'libvirtd$' || true)
LIBVIRT_GROUP=${LIBVIRT_GROUP:-libvirt} |
337bd817 |
else
LIBVIRT_GROUP=libvirtd
fi
;; |
0ffdfbdb |
lxd)
LXD_GROUP=${LXD_GROUP:-"lxd"}
;; |
53a49d10 |
docker|zun) |
bc5cfc05 |
DOCKER_GROUP=${DOCKER_GROUP:-"docker"}
;; |
2c94ee52 |
fake)
NUMBER_FAKE_NOVA_COMPUTE=${NUMBER_FAKE_NOVA_COMPUTE:-1}
;; |
337bd817 |
xenserver) |
b05c8769 |
# Xen config common to nova and neutron |
337bd817 |
XENAPI_USER=${XENAPI_USER:-"root"} |
d15c8a08 |
# This user will be used for dom0 - domU communication
# should be able to log in to dom0 without a password
# will be used to install the plugins
DOMZERO_USER=${DOMZERO_USER:-"domzero"} |
337bd817 |
;;
*)
;;
esac |
c0c6f006 |
|
bb436d33 |
# By default, devstack will use Ubuntu Cloud Archive.
ENABLE_UBUNTU_CLOUD_ARCHIVE=$(trueorfalse True ENABLE_UBUNTU_CLOUD_ARCHIVE) |
1a6d4492 |
# Images
# ------
# Specify a comma-separated list of images to download and install into glance.
# Supported urls here are: |
4f6d7b61 |
# * "uec-style" images:
# If the file ends in .tar.gz, uncompress the tarball and and select the first
# .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel
# and "*-initrd*" as the ramdisk |
1a6d4492 |
# example: http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64.tar.gz |
4f6d7b61 |
# * disk image (*.img,*.img.gz)
# if file ends in .img, then it will be uploaded and registered as a to
# glance as a disk image. If it ends in .gz, it is uncompressed first. |
64a90660 |
# example: |
1a6d4492 |
# http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-armel-disk1.img |
53971539 |
# http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs.img.gz |
4a43b7bd |
# * OpenVZ image:
# OpenVZ uses its own format of image, and does not support UEC style images
|
3584e555 |
#IMAGE_URLS="http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-11.2_2.6.35-15_1.tar.gz" # old ttylinux-uec image |
53971539 |
#IMAGE_URLS="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img" # cirros full disk image |
2d4c8da8 |
|
9f2dcd33 |
CIRROS_VERSION=${CIRROS_VERSION:-"0.3.5"} |
53971539 |
CIRROS_ARCH=${CIRROS_ARCH:-"x86_64"} |
4a43b7bd |
# Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of |
b968b0c3 |
# which may be set in ``local.conf``. Also allow ``DEFAULT_IMAGE_NAME`` and
# ``IMAGE_URLS`` to be set in the `localrc` section of ``local.conf``. |
a4693b5d |
DOWNLOAD_DEFAULT_IMAGES=$(trueorfalse True DOWNLOAD_DEFAULT_IMAGES)
if [[ "$DOWNLOAD_DEFAULT_IMAGES" == "True" ]]; then |
0c3a3b05 |
if [[ -n "$IMAGE_URLS" ]]; then |
a4693b5d |
IMAGE_URLS+=","
fi
case "$VIRT_DRIVER" in
libvirt)
case "$LIBVIRT_TYPE" in
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs} |
befe0925 |
DEFAULT_IMAGE_FILE_NAME=${DEFAULT_IMAGE_FILE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs.img.gz}
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/${DEFAULT_IMAGE_FILE_NAME}";; |
6fc332d8 |
*) # otherwise, use the qcow image |
befe0925 |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk}
DEFAULT_IMAGE_FILE_NAME=${DEFAULT_IMAGE_FILE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img}
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/${DEFAULT_IMAGE_FILE_NAME}";; |
a4693b5d |
esac
;;
vsphere)
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.2-i386-disk.vmdk} |
befe0925 |
DEFAULT_IMAGE_FILE_NAME=${DEFAULT_IMAGE_FILE_NAME:-$DEFAULT_IMAGE_NAME}
IMAGE_URLS+="http://partnerweb.vmware.com/programs/vmdkimage/${DEFAULT_IMAGE_FILE_NAME}";; |
a4693b5d |
xenserver) |
46a54c90 |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.5-x86_64-disk}
DEFAULT_IMAGE_FILE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.5-x86_64-disk.vhd.tgz}
IMAGE_URLS+="http://ca.downloads.xensource.com/OpenStack/cirros-0.3.5-x86_64-disk.vhd.tgz" |
a4693b5d |
IMAGE_URLS+=",http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz";; |
ba4830b8 |
fake)
# Use the same as the default for libvirt
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk}
DEFAULT_IMAGE_FILE_NAME=${DEFAULT_IMAGE_FILE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img}
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/${DEFAULT_IMAGE_FILE_NAME}";; |
a4693b5d |
esac
DOWNLOAD_DEFAULT_IMAGES=False
fi |
0ab1d46e |
|
d8bb2206 |
# This is a comma separated list of extra URLS to be listed for
# download by the tools/image_list.sh script. CI environments can
# pre-download these URLS and place them in $FILES. Later scripts can
# then use "get_extra_file <url>" which will print out the path to the
# file; it will either be downloaded on demand or acquired from the
# cache if there.
EXTRA_CACHE_URLS=""
# etcd3 defaults |
b8fcb259 |
ETCD_VERSION=${ETCD_VERSION:-v3.2.17}
ETCD_SHA256_AMD64=${ETCD_SHA256_AMD64:-"0a75e794502e2e76417b19da2807a9915fa58dcbf0985e397741d570f4f305cd"}
ETCD_SHA256_ARM64=${ETCD_SHA256_ARM64:-"0ab4621c44c79d17d94e43bd184d0f23b763a3669056ce4ae2d0b2942410a98f"}
ETCD_SHA256_PPC64=${ETCD_SHA256_PPC64:-"69e1279c4a2a52256b78d2a8dd23346ac46b836e678b971a459f2afaef3c275e"} |
d9060111 |
# etcd v3.2.x doesn't have anything for s390x |
fabaa991 |
ETCD_SHA256_S390X=${ETCD_SHA256_S390X:-""} |
d8bb2206 |
# Make sure etcd3 downloads the correct architecture
if is_arch "x86_64"; then
ETCD_ARCH="amd64"
ETCD_SHA256=${ETCD_SHA256:-$ETCD_SHA256_AMD64}
elif is_arch "aarch64"; then
ETCD_ARCH="arm64"
ETCD_SHA256=${ETCD_SHA256:-$ETCD_SHA256_ARM64}
elif is_arch "ppc64le"; then
ETCD_ARCH="ppc64le"
ETCD_SHA256=${ETCD_SHA256:-$ETCD_SHA256_PPC64} |
941940a9 |
elif is_arch "s390x"; then
# An etcd3 binary for s390x is not available on github like it is
# for other arches. Only continue if a custom download URL was
# provided.
if [[ -n "${ETCD_DOWNLOAD_URL}" ]]; then
ETCD_ARCH="s390x"
ETCD_SHA256=${ETCD_SHA256:-$ETCD_SHA256_S390X}
else
exit_distro_not_supported "etcd3. No custom ETCD_DOWNLOAD_URL provided."
fi |
d8bb2206 |
else
exit_distro_not_supported "invalid hardware type - $ETCD_ARCH"
fi |
27367bea |
ETCD_PORT=${ETCD_PORT:-2379}
ETCD_PEER_PORT=${ETCD_PEER_PORT:-2380} |
d8bb2206 |
ETCD_DOWNLOAD_URL=${ETCD_DOWNLOAD_URL:-https://github.com/coreos/etcd/releases/download}
ETCD_NAME=etcd-$ETCD_VERSION-linux-$ETCD_ARCH
ETCD_DOWNLOAD_FILE=$ETCD_NAME.tar.gz
ETCD_DOWNLOAD_LOCATION=$ETCD_DOWNLOAD_URL/$ETCD_VERSION/$ETCD_DOWNLOAD_FILE
# etcd is always required, so place it into list of pre-cached downloads
EXTRA_CACHE_URLS+=",$ETCD_DOWNLOAD_LOCATION"
|
a4693b5d |
# Detect duplicate values in IMAGE_URLS
for image_url in ${IMAGE_URLS//,/ }; do
if [ $(echo "$IMAGE_URLS" | grep -o -F "$image_url" | wc -l) -gt 1 ]; then
die $LINENO "$image_url is duplicate, please remove it from IMAGE_URLS."
fi
done
|
6bcd8cad |
# 24Gb default volume backing file size
VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-24G} |
fda946e3 |
|
09718335 |
# Prefixes for volume and instance names |
b3236914 |
VOLUME_NAME_PREFIX=${VOLUME_NAME_PREFIX:-volume-}
INSTANCE_NAME_PREFIX=${INSTANCE_NAME_PREFIX:-instance-}
|
b7490da9 |
# Set default port for nova-objectstore
S3_SERVICE_PORT=${S3_SERVICE_PORT:-3333}
# Common network names |
fda946e3 |
PRIVATE_NETWORK_NAME=${PRIVATE_NETWORK_NAME:-"private"} |
640f1e4c |
PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME:-"public"} |
681f3fdd |
|
ea270d50 |
PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-""} |
6a008fa7 |
|
26867a63 |
# Allow the use of an alternate protocol (such as https) for service endpoints
SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
|
05bd7b80 |
# Sets the maximum number of workers for most services to reduce |
2f72050a |
# the memory used where there are a large number of CPUs present
# (the default number of workers for many services is the number of CPUs) |
05bd7b80 |
# Also sets the minimum number of workers to 2. |
5e832d30 |
API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))} |
2f72050a |
|
44e16e01 |
# Service startup timeout
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
730ce454 |
# Timeout for compute node registration in Nova
NOVA_READY_TIMEOUT=${NOVA_READY_TIMEOUT:-$SERVICE_TIMEOUT}
|
7159b4ba |
# Service graceful shutdown timeout
SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT=${SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT:-5}
|
477a9628 |
# Service graceful shutdown timeout
WORKER_TIMEOUT=${WORKER_TIMEOUT:-90}
|
7f33552d |
# Choose DNF on RedHat/Fedora platforms with it, or otherwise default
# to YUM. Can remove this when only dnf is supported (i.e. centos7
# disappears)
if [[ -e /usr/bin/dnf ]]; then
YUM=${YUM:-dnf}
else
YUM=${YUM:-yum}
fi |
63d25d97 |
|
53753293 |
# Common Configuration
# --------------------
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly without
# Internet access. ``stack.sh`` must have been previously run with Internet
# access to install prerequisites and fetch repositories.
OFFLINE=$(trueorfalse False OFFLINE)
# Set ``ERROR_ON_CLONE`` to ``True`` to configure ``stack.sh`` to exit if
# the destination git repository does not exist during the ``git_clone``
# operation.
ERROR_ON_CLONE=$(trueorfalse False ERROR_ON_CLONE)
# Whether to enable the debug log level in OpenStack services
ENABLE_DEBUG_LOG_LEVEL=$(trueorfalse True ENABLE_DEBUG_LOG_LEVEL)
# Set fixed and floating range here so we can make sure not to use addresses
# from either range when attempting to guess the IP to use for the host. |
dc97cb71 |
# Note that setting ``FIXED_RANGE`` may be necessary when running DevStack |
53753293 |
# in an OpenStack cloud that uses either of these address ranges internally.
FLOATING_RANGE=${FLOATING_RANGE:-172.24.4.0/24} |
4bfbc291 |
IPV4_ADDRS_SAFE_TO_USE=${IPV4_ADDRS_SAFE_TO_USE:-10.0.0.0/22}
FIXED_RANGE=${FIXED_RANGE:-$IPV4_ADDRS_SAFE_TO_USE} |
53753293 |
FIXED_NETWORK_SIZE=${FIXED_NETWORK_SIZE:-256}
HOST_IP_IFACE=${HOST_IP_IFACE:-}
HOST_IP=${HOST_IP:-} |
180f5eb6 |
HOST_IPV6=${HOST_IPV6:-} |
53753293 |
|
180f5eb6 |
HOST_IP=$(get_default_host_ip "$FIXED_RANGE" "$FLOATING_RANGE" "$HOST_IP_IFACE" "$HOST_IP" "inet") |
53753293 |
if [ "$HOST_IP" == "" ]; then
die $LINENO "Could not determine host ip address. See local.conf for suggestions on setting HOST_IP."
fi
|
180f5eb6 |
HOST_IPV6=$(get_default_host_ip "" "" "$HOST_IP_IFACE" "$HOST_IPV6" "inet6")
|
c9c9d31d |
# Whether or not the port_security extension should be enabled for Neutron.
NEUTRON_PORT_SECURITY=$(trueorfalse True NEUTRON_PORT_SECURITY)
|
180f5eb6 |
# SERVICE IP version
# This is the IP version that services should be listening on, as well
# as using to register their endpoints with keystone.
SERVICE_IP_VERSION=${SERVICE_IP_VERSION:-4}
# Validate SERVICE_IP_VERSION
# It would be nice to support "4+6" here as well, but that will require
# multiple calls into keystone to register endpoints, so for now let's
# just support one or the other.
if [[ $SERVICE_IP_VERSION != "4" ]] && [[ $SERVICE_IP_VERSION != "6" ]]; then
die $LINENO "SERVICE_IP_VERSION must be either 4 or 6"
fi
if [[ "$SERVICE_IP_VERSION" == 4 ]]; then
DEF_SERVICE_HOST=$HOST_IP
DEF_SERVICE_LOCAL_HOST=127.0.0.1
DEF_SERVICE_LISTEN_ADDRESS=0.0.0.0
fi
if [[ "$SERVICE_IP_VERSION" == 6 ]]; then
if [ "$HOST_IPV6" == "" ]; then
die $LINENO "Could not determine host IPv6 address. See local.conf for suggestions on setting HOST_IPV6."
fi
DEF_SERVICE_HOST=[$HOST_IPV6]
DEF_SERVICE_LOCAL_HOST=::1 |
dc7b4294 |
DEF_SERVICE_LISTEN_ADDRESS="[::]" |
180f5eb6 |
fi
|
dc7b4294 |
# This is either 0.0.0.0 for IPv4 or [::] for IPv6 |
180f5eb6 |
SERVICE_LISTEN_ADDRESS=${SERVICE_LISTEN_ADDRESS:-${DEF_SERVICE_LISTEN_ADDRESS}}
# Allow the use of an alternate hostname (such as localhost/127.0.0.1) for
# service endpoints. Default is dependent on SERVICE_IP_VERSION above.
SERVICE_HOST=${SERVICE_HOST:-${DEF_SERVICE_HOST}}
# This is either 127.0.0.1 for IPv4 or ::1 for IPv6
SERVICE_LOCAL_HOST=${SERVICE_LOCAL_HOST:-${DEF_SERVICE_LOCAL_HOST}}
REGION_NAME=${REGION_NAME:-RegionOne} |
53753293 |
# Configure services to use syslog instead of writing to individual log files
SYSLOG=$(trueorfalse False SYSLOG)
SYSLOG_HOST=${SYSLOG_HOST:-$HOST_IP}
SYSLOG_PORT=${SYSLOG_PORT:-516}
# Set global ``GIT_DEPTH=<number>`` to limit the history depth of the git clone |
59d52f30 |
# Set to 0 to disable shallow cloning
GIT_DEPTH=${GIT_DEPTH:-0} |
53753293 |
|
ea3e87d4 |
# We may not need to recreate database in case 2 Keystone services
# sharing the same database. It would be useful for multinode Grenade tests.
RECREATE_KEYSTONE_DB=$(trueorfalse True RECREATE_KEYSTONE_DB)
|
44e16e01 |
# Following entries need to be last items in file
|
dde41d07 |
# New way is LOGDIR for all logs and LOGFILE for stack.sh trace log, but if not fully-qualified will be in LOGDIR
# LOGFILE LOGDIR output
# not set not set (new) set LOGDIR from default
# set not set stack.sh log to LOGFILE, (new) set LOGDIR from LOGFILE
# not set set screen logs to LOGDIR
# set set stack.sh log to LOGFILE, screen logs to LOGDIR
# Set up new logging defaults
if [[ -z "${LOGDIR:-}" ]]; then
default_logdir=$DEST/logs
if [[ -z "${LOGFILE:-}" ]]; then
# Nothing is set, we need a default
LOGDIR="$default_logdir"
else
# Set default LOGDIR
LOGDIR="${LOGFILE%/*}"
logfile="${LOGFILE##*/}"
if [[ -z "$LOGDIR" || "$LOGDIR" == "$logfile" ]]; then
# LOGFILE had no path, set a default
LOGDIR="$default_logdir"
fi
fi
unset default_logdir logfile
fi
|
dc97cb71 |
# ``LOGDIR`` is always set at this point so it is not useful as a 'enable' for service logs |
dde41d07 |
|
1f55d389 |
# System-wide ulimit file descriptors override
ULIMIT_NOFILE=${ULIMIT_NOFILE:-2048}
|
584d90ec |
# Local variables:
# mode: shell-script
# End: |