a70641034a
This allows us to set SERVICE_TIMEOUT per job to handle services which might take longer to stop / start. We'll default to 30 as a reasonably safe value. Change-Id: I306a9ddfb957a947915eecc2d3121a15909f54d3
102 lines
2.7 KiB
Plaintext
102 lines
2.7 KiB
Plaintext
# grenaderc - Configuration
|
|
|
|
# Find the other rc files
|
|
RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
|
|
|
|
# Allow local overrides of env variables
|
|
if [ -f $RC_DIR/localrc ]; then
|
|
source $RC_DIR/localrc
|
|
fi
|
|
|
|
# Base GIT Repo URL
|
|
# Another option is http://review.openstack.org/p
|
|
# Another option is https://github.com
|
|
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
|
|
#GIT_BASE=/opt/git
|
|
|
|
# Destination path for installation ``STACK_ROOT``
|
|
STACK_ROOT=${STACK_ROOT:-/opt/stack}
|
|
DATA_DIR=${STACK_ROOT}/data
|
|
|
|
# Release info
|
|
BASE_RELEASE=${BASE_RELEASE:-liberty}
|
|
BASE_RELEASE_DIR=${STACK_ROOT}/$BASE_RELEASE
|
|
|
|
TARGET_RELEASE=${TARGET_RELEASE:-mitaka}
|
|
TARGET_RELEASE_DIR=${STACK_ROOT}/$TARGET_RELEASE
|
|
|
|
# DevStack sources
|
|
BASE_DEVSTACK_REPO=$GIT_BASE/openstack-dev/devstack.git
|
|
BASE_DEVSTACK_BRANCH=${BASE_DEVSTACK_BRANCH:-stable/$BASE_RELEASE}
|
|
BASE_DEVSTACK_DIR=${BASE_DEVSTACK_DIR:-$BASE_RELEASE_DIR/devstack}
|
|
|
|
TARGET_DEVSTACK_REPO=$BASE_DEVSTACK_REPO
|
|
TARGET_DEVSTACK_BRANCH=${TARGET_DEVSTACK_BRANCH:-master}
|
|
TARGET_DEVSTACK_DIR=${TARGET_DEVSTACK_DIR:-$TARGET_RELEASE_DIR/devstack}
|
|
|
|
TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-$(nproc --all)}
|
|
|
|
# Saved stuff
|
|
SAVE_DIR=${STACK_ROOT}/save
|
|
|
|
# Screen session name
|
|
SCREEN_NAME=${SCREEN_NAME:-stack}
|
|
|
|
# Logging
|
|
LOGFILE=${STACK_ROOT}/logs/grenade.sh.log
|
|
LOGDAYS=1
|
|
TIMESTAMP_FORMAT="%F-%H%M%S"
|
|
CURRENT_LOG_TIME=${CURRENT_LOG_TIME:-$(date "+$TIMESTAMP_FORMAT")}
|
|
SCREEN_LOGDIR=${STACK_ROOT}/logs/screen
|
|
|
|
# Timeouts
|
|
#
|
|
# ``ACTIVE_TIMEOUT`` is used by javelin to determine how long to wait for
|
|
# resources to become active.
|
|
ACTIVE_TIMEOUT=120
|
|
SERVICE_TIMEOUT=120
|
|
|
|
# Defaults that use values from localrc go here
|
|
|
|
# Enable tempest
|
|
ENABLE_TEMPEST=${ENABLE_TEMPEST:-True}
|
|
|
|
# We need RECLONE to get the updated branches; not everyone wants it though
|
|
RECLONE=${RECLONE:-no}
|
|
|
|
# Allow only running parts of this script
|
|
RUN_BASE=${RUN_BASE:-True}
|
|
RUN_TARGET=${RUN_TARGET:-True}
|
|
VERBOSE=${VERBOSE:-True}
|
|
|
|
# Allow skipping smoke tests
|
|
RUN_SMOKE=${RUN_SMOKE:-True}
|
|
BASE_RUN_SMOKE=${BASE_RUN_SMOKE:-$RUN_SMOKE}
|
|
TARGET_RUN_SMOKE=${TARGET_RUN_SMOKE:-$RUN_SMOKE}
|
|
|
|
# declare the storage location for project specific things
|
|
declare -A PLUGIN_DIR
|
|
|
|
# Projects that we should upgrade
|
|
UPGRADE_PROJECTS=""
|
|
|
|
# Need this for global requirements
|
|
REQUIREMENTS_DIR=$TARGET_RELEASE_DIR/requirements
|
|
|
|
# Should we verify resources survive the upgrade process. Previously
|
|
# this was done with Javelin, but will be done with per resource
|
|
# scripts going forward.
|
|
VERIFY_RESOURCES=${VERIFY_RESOURCES:-True}
|
|
|
|
# Should we do resource testing
|
|
# Set up for Javelin (default to True)
|
|
RUN_JAVELIN=${RUN_JAVELIN:-True}
|
|
|
|
# How long should we wait for services to start / stop before we
|
|
# consider it a fail. Defaults to 30 seconds.
|
|
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-30}
|
|
|
|
# Local variables:
|
|
# mode: shell-script
|
|
# End:
|