From 19034f8e9bb3e31f602657aa7e7dc2a43c11d960 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 27 Jul 2022 16:33:14 +0900 Subject: [PATCH] Remove deprecated parameters for RateLimitingMiddleware These parameters were deprecated during Yoga cycle[1] and has no effect now. [1] 25651f25e259ca957eb26cd15a290dfde142888e Related-Bug: #1941855 Change-Id: Ic1479131983b790a38c9ae6002b5e83bfcded59d --- manifests/api.pp | 16 ---------------- .../notes/remove-ratelimit-13cd3c75f4d0d292.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 16 deletions(-) create mode 100644 releasenotes/notes/remove-ratelimit-13cd3c75f4d0d292.yaml diff --git a/manifests/api.pp b/manifests/api.pp index 14f0cf38b..87d0bd142 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -159,16 +159,6 @@ # metadata handling from api class. # Defaults to false # -# [*ratelimits*] -# (optional) A string that is a semicolon-separated list of 5-tuples. -# See http://docs.openstack.org/trunk/config-reference/content/configuring-compute-API.html -# Example: '(POST, "*", .*, 10, MINUTE);(POST, "*/servers", ^/servers, 50, DAY);(PUT, "*", .*, 10, MINUTE)' -# Defaults to undef -# -# [*ratelimits_factory*] -# (optional) The rate limiting factory to use -# Defaults to undef -# # [*validate*] # (optional) Whether to validate the service is working after any service refreshes # Defaults to undef @@ -221,8 +211,6 @@ class nova::api( $list_records_by_skipping_down_cells = $::os_service_default, # DEPRECATED PARAMETER $nova_metadata_wsgi_enabled = false, - $ratelimits = undef, - $ratelimits_factory = undef, $validate = undef, $validation_options = undef, $use_forwarded_for = undef, @@ -239,10 +227,6 @@ class nova::api( warning('Running nova metadata api via evenlet is deprecated and will be removed in Stein release.') } - if $ratelimits != undef { - warning('The nova::api::ratelimits parameter has been deprecated and has no effect') - } - if $validate != undef { warning('The nova::api::validate parameter has been deprecated and has no effect') } diff --git a/releasenotes/notes/remove-ratelimit-13cd3c75f4d0d292.yaml b/releasenotes/notes/remove-ratelimit-13cd3c75f4d0d292.yaml new file mode 100644 index 000000000..0a5e605bb --- /dev/null +++ b/releasenotes/notes/remove-ratelimit-13cd3c75f4d0d292.yaml @@ -0,0 +1,7 @@ +--- +upgrade: + - | + The following parameters of the ``nova::api`` class have been removed. + + - ``ratelimits`` + - ``ratelimits_factory``