Allow nova rate limiting to be disabled
* fixes bug 959518 Change-Id: Ifc469a2e1cd90737420c17af513d9c39fb57ffb5
This commit is contained in:
parent
93429c382e
commit
ed111950f8
10
stack.sh
10
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,
|
||||
|
Loading…
Reference in New Issue
Block a user