[tinwood, r=thedac] Fixes Bug#1475534 Added config option 'dhcp-agents-per-network'
This commit is contained in:
commit
9dea2ec8c9
@ -398,6 +398,12 @@ options:
|
|||||||
description: |
|
description: |
|
||||||
Minimum number of l3 agents to host a router. Only used when enable-l3ha
|
Minimum number of l3 agents to host a router. Only used when enable-l3ha
|
||||||
is True
|
is True
|
||||||
|
dhcp-agents-per-network:
|
||||||
|
default: 1
|
||||||
|
type: int
|
||||||
|
description: |
|
||||||
|
The number of dhcp agents to be deployed per network. Note that if the
|
||||||
|
Calico plugin is being used, this option has no effect.
|
||||||
nagios_servicegroups:
|
nagios_servicegroups:
|
||||||
default: ""
|
default: ""
|
||||||
type: string
|
type: string
|
||||||
|
@ -174,6 +174,7 @@ class NeutronCCContext(context.NeutronContext):
|
|||||||
config('max-l3-agents-per-router')
|
config('max-l3-agents-per-router')
|
||||||
ctxt['min_l3_agents_per_router'] = \
|
ctxt['min_l3_agents_per_router'] = \
|
||||||
config('min-l3-agents-per-router')
|
config('min-l3-agents-per-router')
|
||||||
|
ctxt['dhcp_agents_per_network'] = config('dhcp-agents-per-network')
|
||||||
ctxt['overlay_network_type'] = self.neutron_overlay_network_type
|
ctxt['overlay_network_type'] = self.neutron_overlay_network_type
|
||||||
ctxt['external_network'] = config('neutron-external-network')
|
ctxt['external_network'] = config('neutron-external-network')
|
||||||
if config('neutron-plugin') in ['vsp']:
|
if config('neutron-plugin') in ['vsp']:
|
||||||
|
@ -47,6 +47,8 @@ neutron_firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptable
|
|||||||
|
|
||||||
{% if neutron_plugin == 'Calico' -%}
|
{% if neutron_plugin == 'Calico' -%}
|
||||||
dhcp_agents_per_network = 1000
|
dhcp_agents_per_network = 1000
|
||||||
|
{% else -%}
|
||||||
|
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{% include "parts/rabbitmq" %}
|
{% include "parts/rabbitmq" %}
|
||||||
|
@ -47,6 +47,8 @@ neutron_firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptable
|
|||||||
|
|
||||||
{% if neutron_plugin == 'Calico' -%}
|
{% if neutron_plugin == 'Calico' -%}
|
||||||
dhcp_agents_per_network = 1000
|
dhcp_agents_per_network = 1000
|
||||||
|
{% else -%}
|
||||||
|
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{% include "parts/rabbitmq" %}
|
{% include "parts/rabbitmq" %}
|
||||||
|
@ -51,6 +51,8 @@ neutron_firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptable
|
|||||||
|
|
||||||
{% if neutron_plugin == 'Calico' -%}
|
{% if neutron_plugin == 'Calico' -%}
|
||||||
dhcp_agents_per_network = 1000
|
dhcp_agents_per_network = 1000
|
||||||
|
{% else -%}
|
||||||
|
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
notify_nova_on_port_status_changes = True
|
notify_nova_on_port_status_changes = True
|
||||||
|
@ -51,6 +51,8 @@ neutron_firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptable
|
|||||||
|
|
||||||
{% if neutron_plugin == 'Calico' -%}
|
{% if neutron_plugin == 'Calico' -%}
|
||||||
dhcp_agents_per_network = 1000
|
dhcp_agents_per_network = 1000
|
||||||
|
{% else -%}
|
||||||
|
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
notify_nova_on_port_status_changes = True
|
notify_nova_on_port_status_changes = True
|
||||||
|
@ -284,6 +284,7 @@ class NeutronCCContextTest(CharmTestCase):
|
|||||||
self.test_config.set('plumgrid-password', 'plumgrid')
|
self.test_config.set('plumgrid-password', 'plumgrid')
|
||||||
self.test_config.set('plumgrid-virtual-ip', '192.168.100.250')
|
self.test_config.set('plumgrid-virtual-ip', '192.168.100.250')
|
||||||
self.test_config.set('enable-ml2-port-security', True)
|
self.test_config.set('enable-ml2-port-security', True)
|
||||||
|
self.test_config.set('dhcp-agents-per-network', 3)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
super(NeutronCCContextTest, self).tearDown()
|
super(NeutronCCContextTest, self).tearDown()
|
||||||
@ -297,6 +298,7 @@ class NeutronCCContextTest(CharmTestCase):
|
|||||||
'debug': True,
|
'debug': True,
|
||||||
'enable_dvr': False,
|
'enable_dvr': False,
|
||||||
'l3_ha': False,
|
'l3_ha': False,
|
||||||
|
'dhcp_agents_per_network': 3,
|
||||||
'external_network': 'bob',
|
'external_network': 'bob',
|
||||||
'neutron_bind_port': self.api_port,
|
'neutron_bind_port': self.api_port,
|
||||||
'verbose': True,
|
'verbose': True,
|
||||||
@ -331,6 +333,7 @@ class NeutronCCContextTest(CharmTestCase):
|
|||||||
'debug': True,
|
'debug': True,
|
||||||
'enable_dvr': False,
|
'enable_dvr': False,
|
||||||
'l3_ha': False,
|
'l3_ha': False,
|
||||||
|
'dhcp_agents_per_network': 3,
|
||||||
'external_network': 'bob',
|
'external_network': 'bob',
|
||||||
'neutron_bind_port': self.api_port,
|
'neutron_bind_port': self.api_port,
|
||||||
'verbose': True,
|
'verbose': True,
|
||||||
@ -376,6 +379,7 @@ class NeutronCCContextTest(CharmTestCase):
|
|||||||
'overlay_network_type': 'gre',
|
'overlay_network_type': 'gre',
|
||||||
'max_l3_agents_per_router': 2,
|
'max_l3_agents_per_router': 2,
|
||||||
'min_l3_agents_per_router': 2,
|
'min_l3_agents_per_router': 2,
|
||||||
|
'dhcp_agents_per_network': 3,
|
||||||
'quota_floatingip': 50,
|
'quota_floatingip': 50,
|
||||||
'quota_health_monitors': -1,
|
'quota_health_monitors': -1,
|
||||||
'quota_member': -1,
|
'quota_member': -1,
|
||||||
|
Loading…
Reference in New Issue
Block a user