Don't use ML2 parameters for other plugins

CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS parameter must not be used
when monolithic Neutron plugins are being installed. This patch
is fixing installation failures for OVS and LB plugins.

Change-Id: Id6e7cdf2ab46a024fb78f74c77cff8f847ada038
Fixes: rhbz#1119473
This commit is contained in:
Martin Magr
2014-07-15 17:03:58 +02:00
parent 3cbd70c422
commit ec5cf0ef5c
5 changed files with 13 additions and 24 deletions

View File

@@ -881,6 +881,15 @@ def create_l2_agent_manifests(config, messages):
plugin = config['CONFIG_NEUTRON_L2_PLUGIN']
agent = config["CONFIG_NEUTRON_L2_AGENT"]
# CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS will be available only for ML2
# plugin deployment, but we need CONFIG_NEUTRON_USE_L2POPULATION also
# for other plugin template generation
if ('l2population' in
config.get('CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS', [])):
config['CONFIG_NEUTRON_USE_L2POPULATION'] = 'true'
else:
config['CONFIG_NEUTRON_USE_L2POPULATION'] = 'false'
if agent == "openvswitch":
host_var = 'CONFIG_NEUTRON_OVS_HOST'
if plugin == agent:

View File

@@ -6,17 +6,12 @@ if "%(CONFIG_NEUTRON_OVS_TUNNEL_IF)s" {
}
if '%(CONFIG_NEUTRON_L2_PLUGIN)s' == 'ml2' {
if ('l2population' in %(CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS)s) {
$l2population = true
} else {
$l2population = false
}
class { 'neutron::agents::ml2::ovs':
bridge_mappings => %(CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS)s,
enable_tunneling => true,
tunnel_types => ['gre'],
local_ip => $localip,
l2_population => $l2population,
l2_population => %(CONFIG_NEUTRON_USE_L2POPULATION)s,
}
} else {
class { 'neutron::agents::ovs':

View File

@@ -1,13 +1,8 @@
if '%(CONFIG_NEUTRON_L2_PLUGIN)s' == 'ml2' {
if ('l2population' in %(CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS)s) {
$l2population = true
} else {
$l2population = false
}
class { 'neutron::agents::ml2::ovs':
bridge_mappings => %(CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS)s,
l2_population => $l2population,
l2_population => %(CONFIG_NEUTRON_USE_L2POPULATION)s,
}
} else {
class { 'neutron::agents::ovs':

View File

@@ -1,13 +1,8 @@
if '%(CONFIG_NEUTRON_L2_PLUGIN)s' == 'ml2' {
if ('l2population' in %(CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS)s) {
$l2population = true
} else {
$l2population = false
}
class { 'neutron::agents::ml2::ovs':
bridge_mappings => %(CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS)s,
l2_population => $l2population,
l2_population => %(CONFIG_NEUTRON_USE_L2POPULATION)s,
}
} else {
class { 'neutron::agents::ovs':

View File

@@ -7,18 +7,13 @@ if "%(CONFIG_NEUTRON_OVS_TUNNEL_IF)s" {
}
if '%(CONFIG_NEUTRON_L2_PLUGIN)s' == 'ml2' {
if ('l2population' in %(CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS)s) {
$l2population = true
} else {
$l2population = false
}
class { 'neutron::agents::ml2::ovs':
bridge_mappings => %(CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS)s,
enable_tunneling => true,
tunnel_types => ['vxlan'],
local_ip => $localip,
vxlan_udp_port => %(CONFIG_NEUTRON_OVS_VXLAN_UDP_PORT)s,
l2_population => $l2population,
l2_population => %(CONFIG_NEUTRON_USE_L2POPULATION)s,
}
} else {
class { 'neutron::agents::ovs':