Merge "mlnx: Allow workaround for duplicate resources"
This commit is contained in:
commit
c5e25f3fbf
|
@ -94,20 +94,28 @@ class neutron::agents::ml2::mlnx (
|
|||
$mappings_array = pick(join(any2array($multi_interface_driver_mappings), ','), $::os_service_default);
|
||||
|
||||
neutron_dhcp_agent_config {
|
||||
'DEFAULT/dhcp_broadcast_reply' : value => $dhcp_broadcast_reply;
|
||||
'DEFAULT/interface_driver' : value => $interface_driver;
|
||||
'DEFAULT/multi_interface_driver_mappings' : value => $mappings_array;
|
||||
'DEFAULT/ipoib_physical_interface' : value => $ipoib_physical_interface;
|
||||
'DEFAULT/enable_multi_interface_driver_cache_maintenance' : value => $enable_multi_interface_driver_cache_maintenance;
|
||||
}
|
||||
|
||||
neutron_l3_agent_config {
|
||||
'DEFAULT/interface_driver' : value => $interface_driver;
|
||||
'DEFAULT/multi_interface_driver_mappings' : value => $mappings_array;
|
||||
'DEFAULT/ipoib_physical_interface' : value => $ipoib_physical_interface;
|
||||
'DEFAULT/enable_multi_interface_driver_cache_maintenance' : value => $enable_multi_interface_driver_cache_maintenance;
|
||||
}
|
||||
|
||||
# NOTE(tkajinam): These are required to allow workaround for bug 1987460
|
||||
ensure_resource('neutron_dhcp_agent_config', 'DEFAULT/interface_driver', {
|
||||
'value' => $interface_driver
|
||||
})
|
||||
ensure_resource('neutron_l3_agent_config', 'DEFAULT/interface_driver', {
|
||||
'value' => $interface_driver
|
||||
})
|
||||
ensure_resource('neutron_dhcp_agent_config', 'DEFAULT/dhcp_broadcast_reply', {
|
||||
'value' => $dhcp_broadcast_reply
|
||||
})
|
||||
|
||||
if $manage_package {
|
||||
ensure_packages($mlnx_agent_package, {
|
||||
ensure => $package_ensure,
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
`Bug #1987460 <https://bugs.launchpad.net/puppet-neutron/+bug/1987460>`_:
|
||||
Previously the ``neutron::agents::ml2::mlnx`` class causes duplicate
|
||||
resources when used with the ``neutron::agents::dhcp`` class or
|
||||
the ``neutron::agents::l3`` class. Now it is possible to workaround
|
||||
the error by implementing the following mitigation.
|
||||
|
||||
- Include the ``neutron::agents::ml2::mlnx`` class AFTER
|
||||
the ``neutron::agents::dhcp`` class or the ``neutron::agents::l3``
|
||||
|
||||
- Set the ``interface_driver`` parameter and the ``dhcp_broadcast_reply``
|
||||
parameter consistently.
|
Loading…
Reference in New Issue