Deprecate the change_password_available parameter

The [compute] change_password_available parameter was renamed in 2013
by d5c9602bee0b9366bca1f118379f196a794ed907 but the corresponding
parameter in puppet-tempest was not updated and still configuring
the old, unused parameter.

This change deprecates the parameter because it has has no effect for
a long time.

Closes-Bug: #1958511
Change-Id: I11ed3c7014b9c14bbbd1a08f98d3aa2dd947f74e
This commit is contained in:
Takashi Kajinami 2022-01-20 19:12:06 +09:00
parent 70b9dc8918
commit 5b8bae1452
3 changed files with 15 additions and 5 deletions

View File

@ -110,8 +110,6 @@
# Defaults to undef
# [*resize_available*]
# Defaults to false
# [*change_password_available*]
# Defaults to undef
# [*use_dynamic_credentials*]
# Defaults to undef
# [*public_network_id*]
@ -221,6 +219,8 @@
# Defaults to undef
# [*keystone_v2*]
# Defaults to undef
# [*change_password_available*]
# Defaults to undef
#
class tempest(
$package_ensure = 'present',
@ -302,7 +302,6 @@ class tempest(
$whitebox_db_uri = undef,
# testing features that are supported
$resize_available = false,
$change_password_available = undef,
$use_dynamic_credentials = undef,
$l2gw_switch = undef,
# neutron config
@ -361,6 +360,7 @@ class tempest(
$img_dir = undef,
$panko_available = undef,
$keystone_v2 = undef,
$change_password_available = undef,
) {
if !is_service_default($tempest_roles) and !empty($tempest_roles){
@ -393,6 +393,10 @@ class tempest(
warning('The keystone_v2 parameter has been deprecated and will be removed in a future release.')
}
if $change_password_available != undef {
warning('The change_password_available parameter has been deprecated and has no effect')
}
include tempest::params
include openstacklib::openstackclient
@ -501,7 +505,8 @@ class tempest(
'auth/admin_system': value => $admin_system;
'auth/tempest_roles': value => $tempest_roles_real;
'auth/use_dynamic_credentials': value => $use_dynamic_credentials;
'compute/change_password_available': value => $change_password_available;
# TODO(tkajinam): Remove this when we remove the change_password_available parameter
'compute/change_password_available': value => $::os_service_default;
'compute/flavor_ref': value => $flavor_ref;
'compute/flavor_ref_alt': value => $flavor_ref_alt;
'compute/image_alt_ssh_user': value => $image_alt_ssh_user;

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ``tempest::change_password_available`` parameter has been deprecated
and has no effect now.

View File

@ -206,7 +206,7 @@ describe 'tempest' do
is_expected.to contain_tempest_config('auth/tempest_roles').with(:value => '<SERVICE DEFAULT>')
is_expected.to contain_tempest_config('auth/use_dynamic_credentials').with(:value => nil)
is_expected.to contain_tempest_config('dns/nameservers').with(:value => nil)
is_expected.to contain_tempest_config('compute/change_password_available').with(:value => nil)
is_expected.to contain_tempest_config('compute/change_password_available').with(:value => '<SERVICE DEFAULT>')
is_expected.to contain_tempest_config('compute/flavor_ref').with(:value => nil)
is_expected.to contain_tempest_config('compute/flavor_ref_alt').with(:value => nil)
is_expected.to contain_tempest_config('compute/image_alt_ssh_user').with(:value => nil)