From b560c2db8f72f336d3b6adf0223a44f7f7fea029 Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Fri, 20 Jan 2017 10:48:23 +0200 Subject: [PATCH] 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 --- .../lib/puppet/parser/functions/odl_hiera_overrides.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deployment_scripts/puppet/modules/opendaylight/lib/puppet/parser/functions/odl_hiera_overrides.rb b/deployment_scripts/puppet/modules/opendaylight/lib/puppet/parser/functions/odl_hiera_overrides.rb index fc2297f..d495a7c 100644 --- a/deployment_scripts/puppet/modules/opendaylight/lib/puppet/parser/functions/odl_hiera_overrides.rb +++ b/deployment_scripts/puppet/modules/opendaylight/lib/puppet/parser/functions/odl_hiera_overrides.rb @@ -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"}