stacklight-integration-tests/openrc.default
Olivier Bourdon 7c376f7f5d Add MOS 10.0 support and fix 9.x for updates
Change-Id: I91d69a6f537bb7c85311aa34a857605e627aee9d
2017-04-11 07:54:54 +00:00

94 lines
2.8 KiB
Bash

#!/bin/bash
if [ $# -gt 1 ]; then
echo "No more than 1 argument"
return
fi
if [ $# -eq 1 ]; then
MOS_VERSION=$1
else
MOS_VERSION=9.0
fi
# Network characteristics reset (mainly for MOS 7.0)
unset NEUTRON_ENABLE
unset NEUTRON_SEGMENT_TYPE
unset VENV_PREFIX
# MOS update reset
unset UPDATE_MASTER
unset UPDATE_MASTER_VIA_MOS_MU
unset FUEL_RELEASE_VERSION
# Locations for MOS
export ISO_BASE=${ISO_BASE:-$HOME/iso}
export ISO_PATH=${ISO_BASE}/MirantisOpenStack-${MOS_VERSION}.iso
case "${MOS_VERSION}" in
"7.0")
# Location for fuel-qa
export FUELQA_GITREF=stable/7.0
# Network characteristics
export NEUTRON_ENABLE=true
export NEUTRON_SEGMENT_TYPE=vlan
;;
"8.0")
# Location for fuel-qa
export FUELQA_GITREF=stable/8.0
;;
"9.0" | "9.1" | "9.2")
# Location for fuel-qa
export FUELQA_GITREF=stable/mitaka
if [ "${MOS_VERSION}" != "9.0" ]; then
export UPDATE_MASTER=True
export UPDATE_MASTER_VIA_MOS_MU=False
export FUEL_RELEASE_VERSION=9.0
export ISO_PATH=${ISO_BASE}/MirantisOpenStack-${FUEL_RELEASE_VERSION}.iso
fi
;;
"10.0")
# Location for fuel-qa
export FUELQA_GITREF=stable/newton
;;
*)
echo "Unsupported MOS version $MOS_VERSION. Should be one of 7.0, 8.0, 9.[0-2] or 10.0"
return
;;
esac
export MOS_SHORT_VERSION=$(echo $MOS_VERSION | sed -e 's/\.//g')
export ENV_PREFIX=${MY_ENV_PREFIX:-fuel_stacklight_plugin}
export ENV_NAME=${ENV_PREFIX}${MOS_SHORT_VERSION}
export VENV_BASE=${MY_VENV_BASE:-$HOME}
export VENV_PREFIX=${VENV_PREFIX:-stacklight-tests}
export VENV_PATH=${VENV_BASE}/venv-${VENV_PREFIX}${MOS_SHORT_VERSION}
# Change this if you didn't use the default database password
export DEVOPS_DB_PASSWORD=fuel_devops
# Nodes characteristics
export ADMIN_NODE_MEMORY=4096
export ADMIN_NODE_CPU=2
export SLAVE_NODE_MEMORY=3072
# Locations for plugins artefacts
export PLUGINS_HOME=${MY_PLUGINS_HOME:-$HOME/plugins}
# Stacklight/LMA plugins
export LMA_COLLECTOR_PLUGIN_PATH=${PLUGINS_HOME}/lma_collector-0.9-0.9.0-1.noarch.rpm
export LMA_INFRA_ALERTING_PLUGIN_PATH=${PLUGINS_HOME}/lma_infrastructure_alerting-0.9-0.9.0-1.noarch.rpm
export ELASTICSEARCH_KIBANA_PLUGIN_PATH=${PLUGINS_HOME}/elasticsearch_kibana-0.9-0.9.0-1.noarch.rpm
export INFLUXDB_GRAFANA_PLUGIN_PATH=${PLUGINS_HOME}/influxdb_grafana-0.9-0.9.0-1.noarch.rpm
# Zabbix plugins
export ZABBIX_MONITORING_PLUGIN_PATH=${PLUGINS_HOME}/zabbix_monitoring-2.5-2.5.1-1.noarch.rpm
export ZABBIX_MONITORING_SNMPTRAPD_PLUGIN_PATH=${PLUGINS_HOME}/zabbix_snmptrapd-1.1-1.1.0-1.noarch.rpm
export ZABBIX_MONITORING_EMC_PLUGIN_PATH=${PLUGINS_HOME}/zabbix_monitoring_emc-1.1-1.1.0-1.noarch.rpm
export ZABBIX_MONITORING_EXTREME_NETWORKS_PLUGIN_PATH=${PLUGINS_HOME}/zabbix_monitoring_extreme_networks-1.1-1.1.0-1.noarch.rpm
# UI Tests settings
export SELENIUM_HEADLESS=True
export SELENIUM_MAXIMIZE=True
export IMPLICIT_WAIT=5
# export DRIVER_PROXY=localhost:8080