From 5c775d2e84e0fee2524fa53c82549af64aa808a9 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Fri, 16 Sep 2016 18:32:33 +0200 Subject: [PATCH] Fill tempest.conf with Sahara-specific values Initialize tempest.conf with the set of available plugins. Change-Id: I1e963fe4110b94c1e4f18134e0a908ff309cd4e5 (cherry picked from commit cad6b79f9dbd77545a1cc94ccfd2141abb5944a8) --- devstack/plugin.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 6543233750..787dc59332 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -208,6 +208,14 @@ function start_sahara { fi } +# configure_tempest_for_sahara() - Tune Tempest configuration for Sahara +function configure_tempest_for_sahara { + if is_service_enabled tempest; then + iniset $TEMPEST_CONFIG service_available sahara True + iniset $TEMPEST_CONFIG data-processing-feature-enabled plugins $SAHARA_ENABLED_PLUGINS + fi +} + # stop_sahara() - Stop running processes function stop_sahara { # Kill the Sahara screen windows @@ -242,6 +250,9 @@ if is_service_enabled sahara; then elif [[ "$1" == "stack" && "$2" == "extra" ]]; then echo_summary "Initializing sahara" start_sahara + elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then + echo_summary "Configuring tempest" + configure_tempest_for_sahara fi if [[ "$1" == "unstack" ]]; then