Remove deprecated oslo.middleware options from nova::metadata

... because these were deprecated during Train and has had no effect
since then[1].

[1] 7c1717af69

Change-Id: I44a27f1f44b4d021554a3665129e848518bc87f4
This commit is contained in:
Takashi Kajinami
2021-11-03 21:13:22 +09:00
parent 76c5e9b955
commit f533a5e1ca
2 changed files with 8 additions and 20 deletions

View File

@@ -34,15 +34,6 @@
# (optional) A list of apis to enable
# Defaults to undef.
#
# [*enable_proxy_headers_parsing*]
# (optional) This determines if the HTTPProxyToWSGI
# middleware should parse the proxy headers or not.(boolean value)
# Defaults to undef.
#
# [*max_request_body_size*]
# (Optional) Set max request body size
# Defaults to undef.
#
class nova::metadata(
$neutron_metadata_proxy_shared_secret = undef,
$metadata_cache_expiration = $::os_service_default,
@@ -50,8 +41,6 @@ class nova::metadata(
$dhcp_domain = $::os_service_default,
# DEPRECATED PARAMETERS
$enabled_apis = undef,
$enable_proxy_headers_parsing = undef,
$max_request_body_size = undef,
) inherits nova::params {
include nova::deps
@@ -62,15 +51,6 @@ class nova::metadata(
warning('enabled_apis parameter is deprecated, use nova::compute::enabled_apis instead.')
}
if $enable_proxy_headers_parsing {
warning('enable_proxy_headers_parsing in ::nova::metadata is deprecated, has no effect \
and will be removed in the future. Please use the one ::nova::api.')
}
if $max_request_body_size {
warning('max_request_body_size in ::nova::metadata is deprecated, has no effect \
and will be removed in the future. Please use the one ::nova::api.')
}
nova_config {
'api/dhcp_domain': value => $dhcp_domain;
'api/metadata_cache_expiration': value => $metadata_cache_expiration;

View File

@@ -0,0 +1,8 @@
---
upgrade:
- |
The following two parameters were removed from the ``nova::metadata``
class.
- ``enable_proxy_headers_parsing``
- ``max_request_body_size``