Merge "Remove nova::network::neutron::dhcp_domain"

This commit is contained in:
Zuul 2020-02-17 01:56:02 +00:00 committed by Gerrit Code Review
commit 4a5be02c33
3 changed files with 5 additions and 43 deletions

View File

@ -79,27 +79,6 @@
# (optional) Default pool for floating IPs
# Defaults to 'nova'
#
### DEPRECATED PARAMS
#
# [*neutron_url*]
# (optional) URL for connecting to the Neutron networking service.
# Defaults to undef
#
# [*neutron_url_timeout*]
# (optional) Timeout value for connecting to neutron in seconds.
# Defaults to undef
#
# [*firewall_driver*]
# (optional) Firewall driver.
# This prevents nova from maintaining a firewall so it does not interfere
# with Neutron's. Set to 'nova.virt.firewall.IptablesFirewallDriver'
# to re-enable the Nova firewall.
# Defaults to undef
#
# [*dhcp_domain*]
# (optional) domain to use for building the hostnames
# Defaults to undef
#
class nova::network::neutron (
$neutron_password = false,
$neutron_auth_type = 'v3password',
@ -117,20 +96,10 @@ class nova::network::neutron (
$vif_plugging_is_fatal = true,
$vif_plugging_timeout = '300',
$default_floating_pool = 'nova',
# DEPRECATED PARAMS
$dhcp_domain = undef,
) {
include nova::deps
# TODO(mwhahaha): remove me when tripleo switches to use the metadata version
# of dhcp_domain
if $dhcp_domain != undef {
ensure_resource('nova_config', 'api/dhcp_domain', {
value => $dhcp_domain
})
}
nova_config {
'DEFAULT/vif_plugging_is_fatal': value => $vif_plugging_is_fatal;
'DEFAULT/vif_plugging_timeout': value => $vif_plugging_timeout;

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The deprecated parameter dhcp_domain in nova::network::neutron is removed.
Please use the nova::metadata::dhcp_domain parameter instead.

View File

@ -93,18 +93,6 @@ describe 'nova::network::neutron' do
should contain_nova_config('DEFAULT/vif_plugging_timeout').with_value(params[:vif_plugging_timeout])
end
end
context 'with deprecated class parameters' do
before do
params.merge!(
:dhcp_domain => 'foo',
)
end
it 'configures neutron endpoint in nova.conf' do
should contain_nova_config('api/dhcp_domain').with_value(params[:dhcp_domain])
end
end
end
on_supported_os({