Remove deprecated api_port parameters

These were deprecated during the previous cycle[1] in favor of
the new port parameters.

[1] a258d3d8c7

Change-Id: If2e241a471b2e023bd566bad828ea3dd7a4919ea
This commit is contained in:
Takashi Kajinami
2023-06-09 12:43:38 +09:00
parent 1a3eebcf12
commit be36118fce
3 changed files with 10 additions and 26 deletions

View File

@@ -121,12 +121,6 @@
# directives to be placed at the end of the vhost configuration.
# Defaults to undef.
#
# DEPRECATED PARAMETERS
#
# [*api_port*]
# (Optional) The port for Nova API service.
# Defaults to 8774
#
# == Dependencies
#
# requires Class['apache'] & Class['nova'] & Class['nova::api']
@@ -165,8 +159,6 @@ class nova::wsgi::apache_api (
$headers = undef,
$request_headers = undef,
$vhost_custom_fragment = undef,
# DEPRECATED PARAMETERS
$api_port = undef,
) {
include nova::params
@@ -175,13 +167,9 @@ class nova::wsgi::apache_api (
fail('::nova::api class must be declared in composition layer.')
}
if $api_port {
warning('The api_port parameter is deprecated. Use the port parameter')
}
::openstacklib::wsgi::apache { 'nova_api_wsgi':
bind_host => $bind_host,
bind_port => pick($api_port, $port),
bind_port => $port,
group => $::nova::params::group,
path => $path,
priority => $priority,

View File

@@ -125,12 +125,6 @@
# directives to be placed at the end of the vhost configuration.
# Defaults to undef.
#
# DEPRECATED PARAMETERS
#
# [*api_port*]
# (Optional) The port for Nova API service.
# Defaults to 8775
#
# == Dependencies
#
# requires Class['apache'] & Class['nova'] & Class['nova::metadata']
@@ -170,8 +164,6 @@ class nova::wsgi::apache_metadata (
$headers = undef,
$request_headers = undef,
$vhost_custom_fragment = undef,
# DEPRECATED PARAMETERS
$api_port = undef,
) {
include nova::params
@@ -188,13 +180,9 @@ class nova::wsgi::apache_metadata (
Service <| title == 'httpd' |> { tag +> 'nova-service' }
if $api_port {
warning('The api_port parameter is deprecated. Use the port parameter')
}
::openstacklib::wsgi::apache { 'nova_metadata_wsgi':
bind_host => $bind_host,
bind_port => pick($api_port, $port),
bind_port => $port,
group => $::nova::params::group,
path => $path,
priority => $priority,

View File

@@ -0,0 +1,8 @@
---
upgrade:
- |
The following parameters were removed, in favor of the new ``port``
parameters.
- ``nova::wsgi::apache_api::api_port``
- ``nova::wsgi::apache_metadata::api_port``