From ed111950f86300774ec963d644fc29ee5934052c Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Tue, 20 Mar 2012 15:08:15 -0700 Subject: [PATCH] Allow nova rate limiting to be disabled * fixes bug 959518 Change-Id: Ifc469a2e1cd90737420c17af513d9c39fb57ffb5 --- stack.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stack.sh b/stack.sh index 9f88a0bde1..67c8162b32 100755 --- a/stack.sh +++ b/stack.sh @@ -883,8 +883,8 @@ if is_service_enabled n-api; then # for Nova to validate Keystone tokens. # Allow rate limiting to be turned off for testing, like for Tempest - # NOTE: Set OSAPI_RATE_LIMIT=" " to turn OFF rate limiting - OSAPI_RATE_LIMIT=${OSAPI_RATE_LIMIT:-"ratelimit"} + # NOTE: Set API_RATE_LIMIT="False" to turn OFF rate limiting + API_RATE_LIMIT=${API_RATE_LIMIT:-"True"} # Remove legacy paste config if present rm -f $NOVA_DIR/bin/nova-api-paste.ini @@ -1320,10 +1320,14 @@ fi if [ "$SYSLOG" != "False" ]; then add_nova_opt "use_syslog=True" fi +if [ "$API_RATE_LIMIT" != "True" ]; then + add_nova_opt "api_rate_limit=False" +fi + # Provide some transition from EXTRA_FLAGS to EXTRA_OPTS if [[ -z "$EXTRA_OPTS" && -n "$EXTRA_FLAGS" ]]; then - EXTRA_OPTS=$EXTRA_FLAGS + EXTRA_OPTS=$EXTRA_FLAGS fi # You can define extra nova conf flags by defining the array EXTRA_OPTS,