Deprecate cinder::api::os_region_name
... because the actual parameter, DEFAULT/os_region_name was deprecated in Pike[1], and removed in Rocky[2] release. [1] da93e11794d2a7479b037f96fc5aef83f98be8dd [2] 50e6b7af3662ab89eefc565c182ef14bb20f08d3 Change-Id: I5dbc65df8476a3f69876c3ca14bb2500ea25134e
This commit is contained in:
parent
11a14ae216
commit
c2d618cae7
@ -14,12 +14,6 @@
|
||||
# http://auth_url:5000/v3
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*os_region_name*]
|
||||
# (optional) Some operations require cinder to make API requests
|
||||
# to Nova. This sets the keystone region to be used for these
|
||||
# requests. For example, boot-from-volume.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*service_workers*]
|
||||
# (optional) Number of cinder-api workers
|
||||
# Defaults to $::os_workers
|
||||
@ -125,8 +119,15 @@
|
||||
# Example of valid value: barbican
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*os_region_name*]
|
||||
# (optional) Some operations require cinder to make API requests
|
||||
# to Nova. This sets the keystone region to be used for these
|
||||
# requests. For example, boot-from-volume.
|
||||
# Defaults to undef
|
||||
#
|
||||
class cinder::api (
|
||||
$os_region_name = $::os_service_default,
|
||||
$keymgr_encryption_api_url = $::os_service_default,
|
||||
$keymgr_encryption_auth_url = $::os_service_default,
|
||||
$service_workers = $::os_workers,
|
||||
@ -153,12 +154,19 @@ class cinder::api (
|
||||
$auth_strategy = 'keystone',
|
||||
$osapi_volume_listen_port = $::os_service_default,
|
||||
$keymgr_backend = $::os_service_default,
|
||||
# DEPRECATED PARAMETERS
|
||||
$os_region_name = undef
|
||||
) inherits cinder::params {
|
||||
|
||||
include cinder::deps
|
||||
include cinder::params
|
||||
include cinder::policy
|
||||
|
||||
if $os_region_name != undef {
|
||||
warning('cinder::api::os_region_name is deprecated and has no effect. \
|
||||
Use cinder::nova::region_name instead')
|
||||
}
|
||||
|
||||
validate_legacy(Boolean, 'validate_bool', $manage_service)
|
||||
validate_legacy(Boolean, 'validate_bool', $enabled)
|
||||
|
||||
@ -222,7 +230,6 @@ running as a standalone service, or httpd for being run by a httpd server")
|
||||
cinder_config {
|
||||
'DEFAULT/osapi_volume_listen': value => $bind_host;
|
||||
'DEFAULT/osapi_volume_workers': value => $service_workers;
|
||||
'DEFAULT/os_region_name': value => $os_region_name;
|
||||
'DEFAULT/default_volume_type': value => $default_volume_type;
|
||||
'DEFAULT/public_endpoint': value => $public_endpoint;
|
||||
'DEFAULT/osapi_volume_base_URL': value => $osapi_volume_base_url;
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
The cinder::api::os_region_name parameter was deprecated and has no effect.
|
||||
Use cinder::nova::region_name instead.
|
@ -30,7 +30,6 @@ describe 'cinder::api' do
|
||||
is_expected.to contain_cinder_config('DEFAULT/public_endpoint').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('DEFAULT/osapi_volume_base_URL').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('DEFAULT/osapi_max_limit').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('DEFAULT/os_region_name').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('DEFAULT/auth_strategy').with_value('keystone')
|
||||
is_expected.to contain_cinder_config('key_manager/backend').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('barbican/barbican_endpoint').with_value('<SERVICE DEFAULT>')
|
||||
@ -44,17 +43,6 @@ describe 'cinder::api' do
|
||||
end
|
||||
end
|
||||
|
||||
context 'with a custom region for nova' do
|
||||
let :params do
|
||||
req_params.merge({'os_region_name' => 'MyRegion'})
|
||||
end
|
||||
it 'should configure the region for nova' do
|
||||
is_expected.to contain_cinder_config('DEFAULT/os_region_name').with(
|
||||
:value => 'MyRegion'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with a customized port' do
|
||||
let :params do
|
||||
req_params.merge({'osapi_volume_listen_port' => 9999})
|
||||
|
Loading…
Reference in New Issue
Block a user