Only enable OVN VIPs when ml2.ovn plugin is used
This patch updates the haproxy group_vars logic to only enable OVN-related VIPs when the OVN ML2 plugin is used. It also removes OVN bits from the inventory to be added as an env.d override as needed. Change-Id: Ied1e79965c340c1d4ca430a830199978782117d0 Depends-On: https://review.openstack.org/623515
This commit is contained in:
parent
a2177e9a45
commit
8c8e21a5a3
@ -41,12 +41,6 @@ component_skel:
|
|||||||
neutron_metadata_agent:
|
neutron_metadata_agent:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- neutron_all
|
- neutron_all
|
||||||
neutron_ovn_controller:
|
|
||||||
belongs_to:
|
|
||||||
- neutron_all
|
|
||||||
neutron_ovn_northd:
|
|
||||||
belongs_to:
|
|
||||||
- neutron_all
|
|
||||||
neutron_sriov_nic_agent:
|
neutron_sriov_nic_agent:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- neutron_all
|
- neutron_all
|
||||||
@ -74,11 +68,6 @@ container_skel:
|
|||||||
- neutron_sriov_nic_agent
|
- neutron_sriov_nic_agent
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
neutron_ovn_northd_container:
|
|
||||||
belongs_to:
|
|
||||||
- network_containers
|
|
||||||
contains:
|
|
||||||
- neutron_ovn_northd
|
|
||||||
neutron_server_container:
|
neutron_server_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- network_containers
|
- network_containers
|
||||||
|
@ -59,7 +59,6 @@ container_skel:
|
|||||||
contains:
|
contains:
|
||||||
- neutron_linuxbridge_agent
|
- neutron_linuxbridge_agent
|
||||||
- neutron_openvswitch_agent
|
- neutron_openvswitch_agent
|
||||||
- neutron_ovn_controller
|
|
||||||
- neutron_sriov_nic_agent
|
- neutron_sriov_nic_agent
|
||||||
- nova_compute
|
- nova_compute
|
||||||
properties:
|
properties:
|
||||||
|
@ -358,7 +358,7 @@ haproxy_default_services:
|
|||||||
haproxy_timeout_server: 90m
|
haproxy_timeout_server: 90m
|
||||||
haproxy_backend_options:
|
haproxy_backend_options:
|
||||||
- tcpka
|
- tcpka
|
||||||
haproxy_service_enabled: "{{ groups['neutron_ovn_northd'] is defined and groups['neutron_ovn_northd'] | length > 0 }}"
|
haproxy_service_enabled: "{{ (neutron_plugin_type == 'ml2.ovn') and (groups['neutron_ovn_northd'] is defined and groups['neutron_ovn_northd'] | length > 0) }}"
|
||||||
- service:
|
- service:
|
||||||
haproxy_service_name: neutron_ovn_northd_southbound
|
haproxy_service_name: neutron_ovn_northd_southbound
|
||||||
haproxy_backend_nodes: "{{ (groups['neutron_ovn_northd'] | default([]))[:1] }}"
|
haproxy_backend_nodes: "{{ (groups['neutron_ovn_northd'] | default([]))[:1] }}"
|
||||||
@ -370,7 +370,7 @@ haproxy_default_services:
|
|||||||
haproxy_timeout_server: 90m
|
haproxy_timeout_server: 90m
|
||||||
haproxy_backend_options:
|
haproxy_backend_options:
|
||||||
- tcpka
|
- tcpka
|
||||||
haproxy_service_enabled: "{{ groups['neutron_ovn_northd'] is defined and groups['neutron_ovn_northd'] | length > 0 }}"
|
haproxy_service_enabled: "{{ (neutron_plugin_type == 'ml2.ovn') and (groups['neutron_ovn_northd'] is defined and groups['neutron_ovn_northd'] | length > 0) }}"
|
||||||
- service:
|
- service:
|
||||||
haproxy_service_name: neutron_ovn_ovsdb_server
|
haproxy_service_name: neutron_ovn_ovsdb_server
|
||||||
haproxy_backend_nodes: "{{ (groups['neutron_ovn_northd'] | default([]))[:1] }}"
|
haproxy_backend_nodes: "{{ (groups['neutron_ovn_northd'] | default([]))[:1] }}"
|
||||||
@ -382,4 +382,4 @@ haproxy_default_services:
|
|||||||
haproxy_timeout_server: 90m
|
haproxy_timeout_server: 90m
|
||||||
haproxy_backend_options:
|
haproxy_backend_options:
|
||||||
- tcpka
|
- tcpka
|
||||||
haproxy_service_enabled: "{{ groups['neutron_ovn_northd'] is defined and groups['neutron_ovn_northd'] | length > 0 }}"
|
haproxy_service_enabled: "{{ (neutron_plugin_type == 'ml2.ovn') and (groups['neutron_ovn_northd'] is defined and groups['neutron_ovn_northd'] | length > 0) }}"
|
||||||
|
@ -340,9 +340,6 @@ class TestAnsibleInventoryFormatConstraints(unittest.TestCase):
|
|||||||
'neutron_metadata_agent',
|
'neutron_metadata_agent',
|
||||||
'neutron_metering_agent',
|
'neutron_metering_agent',
|
||||||
'neutron_openvswitch_agent',
|
'neutron_openvswitch_agent',
|
||||||
'neutron_ovn_controller',
|
|
||||||
'neutron_ovn_northd',
|
|
||||||
'neutron_ovn_northd_container',
|
|
||||||
'neutron_sriov_nic_agent',
|
'neutron_sriov_nic_agent',
|
||||||
'neutron_server',
|
'neutron_server',
|
||||||
'neutron_server_container',
|
'neutron_server_container',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user