From 8838f7fa8c6c3b900f636878fcabeb9446c92cd9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 15 Nov 2022 11:09:01 +0900 Subject: [PATCH] Remove trove::default_neutron_networks ... because the parameter was deprecated in the past cycle by [1]. [1] 74881548a4315b09fa9488a94a70fa865b7b5d42 Change-Id: I7b12225aa82a05bcb978a3b6adc975c3a5d6c75c --- manifests/init.pp | 20 +------------------ ...ult_neutron_networks-1f133abd9e127a35.yaml | 4 ++++ 2 files changed, 5 insertions(+), 19 deletions(-) create mode 100644 releasenotes/notes/remove-default_neutron_networks-1f133abd9e127a35.yaml diff --git a/manifests/init.pp b/manifests/init.pp index 7878d35f..65d57d37 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -239,12 +239,6 @@ # (optional) The state of the package. # Defaults to 'present' # -# DEPRECATED PARAMETERS -# -# [*default_neutron_networks*] -# (optional) The network that trove will attach by default. -# Defaults to undef -# class trove( $default_transport_url = $::os_service_default, $notification_transport_url = $::os_service_default, @@ -296,19 +290,12 @@ class trove( $neutron_endpoint_type = $::os_service_default, $management_networks = $::os_service_default, $package_ensure = 'present', - # DEPRECATED PARAMETERS - $default_neutron_networks = undef, ) { include trove::deps include trove::policy include trove::params - if $default_neutron_networks != undef { - warning('The default_neutron_networks parameter is deprecated. \ -Use the management_networks parameter.') - } - if $nova_compute_url { trove_config { 'DEFAULT/nova_compute_url': value => $nova_compute_url } } @@ -377,15 +364,10 @@ Use the management_networks parameter.') } } - $management_networks_real = pick($default_neutron_networks, $management_networks) - trove_config { - 'DEFAULT/default_neutron_networks': ensure => absent; - } - trove_config { 'DEFAULT/network_label_regex': value => '.*'; 'DEFAULT/network_driver': value => 'trove.network.neutron.NeutronDriver'; - 'DEFAULT/management_networks': value => join(any2array($management_networks_real), ','); + 'DEFAULT/management_networks': value => join(any2array($management_networks), ','); } oslo::messaging::default { 'trove_config': diff --git a/releasenotes/notes/remove-default_neutron_networks-1f133abd9e127a35.yaml b/releasenotes/notes/remove-default_neutron_networks-1f133abd9e127a35.yaml new file mode 100644 index 00000000..87c5db8d --- /dev/null +++ b/releasenotes/notes/remove-default_neutron_networks-1f133abd9e127a35.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - | + The ``trove::default_neutron_networks`` parameter has been removed.