Disable unsupported dns extension_driver in ml2 config

networking-odl doesn't support the dns extension driver, leading to various
breakages (e.g. floating IP) when it is enabled.

Change-Id: I4badb4335e63c53fdb6856767f9b3bf21f9df921
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
This commit is contained in:
Romanos Skiadas 2017-01-20 10:48:23 +02:00
parent 581fcf5c41
commit b560c2db8f
1 changed files with 7 additions and 0 deletions

View File

@ -9,10 +9,17 @@ module Puppet::Parser::Functions
configuration = {}
mechanism_driver = odl['odl_v2'] ? 'opendaylight_v2' : 'opendaylight'
# The list of drivers that can be enabled can be found here
# https://github.com/openstack/networking-odl/blob/master/devstack/settings#L79
# or https://github.com/openstack/networking-odl/commit/9aab23a3c3fd8aa7ade1e8edc150dd24ee3f5948
# In Newton by default dns and port_security are enabled, but networking-odl doesn't support dns,
# and because of that floating IPs cannot be assigned. So we disable dns here.
extension_drivers = 'port_security'
ml2_plugin = {
'neutron_plugin_ml2' => {
'ml2/mechanism_drivers' => {'value' => mechanism_driver},
'ml2/extension_drivers' => {'value' => extension_drivers},
'ml2_odl/password' => {'value' => 'admin'},
'ml2_odl/username' => {'value' => 'admin'},
'ml2_odl/url' => {'value' => "http://#{mgmt_vip}:#{odl['rest_api_port']}/controller/nb/v2/neutron"}