From 894ccc90c0a0795c84ce69afd9a68863a9004f20 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 8 Aug 2016 16:19:05 -0400 Subject: [PATCH] disable metering extension in tempest if q-metering not running We don't run q-metering in default single host configuration, so we should make it so that tempest won't attempt to test for it either. Change-Id: I928be70e3b10fc3753fd1081631e54fa839b671d --- lib/tempest | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tempest b/lib/tempest index e4f80b835d..10c1a71805 100644 --- a/lib/tempest +++ b/lib/tempest @@ -569,6 +569,12 @@ function configure_tempest { fi iniset $TEMPEST_CONFIG compute-feature-enabled api_extensions $compute_api_extensions # Neutron API Extensions + + # disable metering if we didn't enable the service + if ! is_service_enabled q-metering; then + DISABLE_NETWORK_API_EXTENSIONS+=", metering" + fi + local network_api_extensions=${NETWORK_API_EXTENSIONS:-"all"} if [[ ! -z "$DISABLE_NETWORK_API_EXTENSIONS" ]]; then # Enabled extensions are either the ones explicitly specified or those available on the API endpoint