Add option to support dhcp/l3 agent ha
New option enable_neutron_agent_ha added to enable/disable dhcp/l3 agent high availability, dhcp_agents_per_network is default to 2 and it's configurable. Implement blueprint: support-network-ha Change-Id: Id4742aa67c80584634b923195545bf2b654172f3
This commit is contained in:
parent
cb32b2b8d9
commit
c5668bd50a
@ -231,6 +231,7 @@ enable_multipathd: "no"
|
||||
enable_murano: "no"
|
||||
enable_neutron_lbaas: "no"
|
||||
enable_neutron_qos: "no"
|
||||
enable_neutron_agent_ha: "no"
|
||||
enable_swift: "no"
|
||||
enable_tempest: "no"
|
||||
enable_watcher: "no"
|
||||
|
@ -52,6 +52,10 @@ openvswitch_vswitchd_image_full: "{{ openvswitch_vswitchd_image }}:{{ openvswitc
|
||||
####################
|
||||
# OpenStack
|
||||
####################
|
||||
dhcp_agents_per_network: 2
|
||||
min_l3_agents_per_router: 2
|
||||
max_l3_agents_per_router: 3
|
||||
|
||||
neutron_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ neutron_server_port }}"
|
||||
neutron_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ neutron_server_port }}"
|
||||
neutron_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ neutron_server_port }}"
|
||||
|
@ -37,6 +37,13 @@ allow_overlapping_ips = true
|
||||
core_plugin = ml2
|
||||
service_plugins = router{% if enable_neutron_lbaas | bool %},neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2{% endif %}{% if enable_neutron_qos | bool %},qos{% endif %}
|
||||
|
||||
{% if enable_neutron_agent_ha | bool %}
|
||||
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
||||
l3_ha = true
|
||||
max_l3_agents_per_router = {{ max_l3_agents_per_router }}
|
||||
min_l3_agents_per_router = {{ min_l3_agents_per_router }}
|
||||
{% endif %}
|
||||
|
||||
{% if enable_neutron_lbaas | bool %}
|
||||
[service_providers]
|
||||
service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
|
||||
|
@ -48,3 +48,11 @@
|
||||
register: result
|
||||
changed_when: false
|
||||
failed_when: result.stdout | regex_replace('(60|120|180|240|300|360|600|720|900|1200|1800|3600|7200|10800|14400|21600|28800|43200|86400|604800)', '') | search(".+")
|
||||
|
||||
- name: Checking number of network agents
|
||||
local_action: fail msg="Number of network agents are less than two when enabling agent ha"
|
||||
changed_when: false
|
||||
when:
|
||||
- enable_neutron_agent_ha | bool
|
||||
- groups['neutron-dhcp-agent'] | length < 2
|
||||
or groups['neutron-l3-agent'] | length < 2
|
||||
|
@ -132,6 +132,7 @@ neutron_external_interface: "eth1"
|
||||
#enable_multipathd: "no"
|
||||
#enable_neutron_lbaas: "no"
|
||||
#enable_neutron_qos: "no"
|
||||
#enable_neutron_agent_ha: "no"
|
||||
#enable_swift: "no"
|
||||
#enable_tempest: "no"
|
||||
#enable_watcher: "no"
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- New option enable_neutron_agent_ha added to enable/disable dhcp/l3 agent
|
||||
high availability, dhcp_agents_per_network is default to 2 and it's
|
||||
configurable for user.
|
Loading…
Reference in New Issue
Block a user