astara/tools/run_functional.sh
Mark McClain f8d7a37abb Remove external network hooks and auto-added resources
Previously the orchestrator could be configured to create access to the
external network.  This combined with auto external gateway additions
would cause problems with automation tools and did not work reliably.
This change removes this functionality since it was often disabled in
production deployments. This change aslo slightly reduces devstack
runtime by removing the Neutron restart.

Change-Id: I556f1fc2729f1d62a60de24b6d5e9ed473749f9a
2016-03-07 13:15:35 -08:00

38 lines
1.1 KiB
Bash
Executable File

#!/bin/bash -xe
echo $LOGDIR
FUNC_TEST_DIR=$(dirname $0)/../astara/test/functional/
CONFIG_FILE=$FUNC_TEST_DIR/test.conf
LOGDIR=${LOGDIR:-$FUNC_TEST_DIR}
LOG_FILE=$LOGDIR/astara_functional.log
APPLIANCE_API_PORT=${APPLIANCE_API_PORT:-5000}
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}
if [ -z "$SERVICE_TENANT_ID" ]; then
SERVICE_TENANT_ID="$(openstack project list | grep $SERVICE_TENANT_NAME | awk '{ print $2 }')"
if [ -z "$SERVICE_TENANT_ID" ]; then
# Fallback to V2
SERVICE_TENANT_ID="$(keystone tenant-list | grep $SERVICE_TENANT_NAME | awk '{ print $2 }')"
fi
fi
cat <<END >$CONFIG_FILE
[DEFAULT]
debug=True
use_stderr=False
use_syslog=False
os_auth_url=$OS_AUTH_URL
os_username=$OS_USERNAME
os_password=$OS_PASSWORD
os_tenant_name=$OS_TENANT_NAME
service_tenant_name=$SERVICE_TENANT_NAME
service_tenant_id=$SERVICE_TENANT_ID
appliance_api_port=$APPLIANCE_API_PORT
astara_auto_add_resources=False
# Defaults for the gate
health_check_timeout=10
appliance_active_timeout=480
log_file=/opt/stack/logs/astara_functional.log
END
tox -e functional