Skip to content

Commit b32c876

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Allow ratelimiting to be turned off. Useful when trying to run tempest, or similar tests."
2 parents 854d8c9 + 890061c commit b32c876

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stack.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,10 @@ if is_service_enabled n-api; then
834834
}
835835
replace_pipeline "ec2cloud" "ec2faultwrap logrequest totoken authtoken keystonecontext cloudrequest authorizer validator ec2executor"
836836
replace_pipeline "ec2admin" "ec2faultwrap logrequest totoken authtoken keystonecontext adminrequest authorizer ec2executor"
837-
replace_pipeline "openstack_compute_api_v2" "faultwrap authtoken keystonecontext ratelimit osapi_compute_app_v2"
838-
replace_pipeline "openstack_volume_api_v1" "faultwrap authtoken keystonecontext ratelimit osapi_volume_app_v1"
837+
# allow people to turn off rate limiting for testing, like when using tempest, by setting OSAPI_RATE_LIMIT=" "
838+
OSAPI_RATE_LIMIT=${OSAPI_RATE_LIMIT:-"ratelimit"}
839+
replace_pipeline "openstack_compute_api_v2" "faultwrap authtoken keystonecontext $OSAPI_RATE_LIMIT osapi_compute_app_v2"
840+
replace_pipeline "openstack_volume_api_v1" "faultwrap authtoken keystonecontext $OSAPI_RATE_LIMIT osapi_volume_app_v1"
839841
fi
840842

841843
# Helper to clean iptables rules

0 commit comments

Comments
 (0)