From b6bf4198850f16ee979c3239b63606d09d98b61a Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Mon, 25 Feb 2019 08:37:42 -0800 Subject: [PATCH] Set octavia available in tempest config This patch updates the octavia devstack plugin to set the "[service_available]" octavia = True. Change-Id: Ia6d31e0ba1c569af7ab6d1ec39fe691c2a491ea8 --- devstack/plugin.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index bd62857104..e09d3467ce 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -617,6 +617,10 @@ function octavia_init { fi } +function _configure_tempest { + iniset $TEMPEST_CONFIG service_available octavia "True" +} + # check for service enabled if is_service_enabled $OCTAVIA; then if [ $OCTAVIA_NODE == 'main' ] || [ $OCTAVIA_NODE == 'standalone' ] ; then # main-ha node stuff only @@ -650,6 +654,11 @@ if is_service_enabled $OCTAVIA; then echo_summary "Starting Octavia" octavia_start + elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then + if is_service_enabled tempest; then + # Configure Tempest for Congress + _configure_tempest + fi fi fi