Use list of cluster member for ovn ml2 agent to directly connect

Use list of cluster member in ovn/ml2 agent to directly talk to nb/sb
central services instead of using haproxy lb. ovn-controller agent
automatically monitor cluster member and remove them from list if
they are dead or not reachable. This is better approch then using
haproxy lb.

Change-Id: Icb490225ff34354b3f5821c5f7a54a039091c924
This commit is contained in:
Satish Patel 2021-08-09 20:33:50 +00:00 committed by Dmitriy Rabotyagov
parent 97d409a911
commit 454866176f
3 changed files with 5 additions and 4 deletions

View File

@ -443,7 +443,8 @@ neutron_ovn_primary_cluster_node: "{{ groups[neutron_services['neutron-ovn-north
neutron_ovn_northd_service_name: ovn-northd
neutron_ovn_controller_service_name: ovn-controller
neutron_ovn_l3_scheduler: leastloaded
neutron_ovn_ip: "{{ internal_lb_vip_address }}"
neutron_ovn_nb_connection: "tcp:{{ groups['neutron_ovn_northd'] | map('extract', hostvars, ['ansible_host']) | join(':6641,tcp:') }}:6641"
neutron_ovn_sb_connection: "tcp:{{ groups['neutron_ovn_northd'] | map('extract', hostvars, ['ansible_host']) | join(':6642,tcp:') }}:6642"
neutron_ovsdb_manager: ptcp:6640:127.0.0.1
###

View File

@ -27,7 +27,7 @@
- neutron_services['neutron-ovn-controller']['group'] in group_names
- name: Configure OVN Southbound Connection
command: "ovs-vsctl set open . external-ids:ovn-remote=tcp:{{ neutron_ovn_ip }}:6642"
command: "ovs-vsctl set open . external-ids:ovn-remote={{ neutron_ovn_sb_connection }}"
when:
- neutron_services['neutron-ovn-controller']['group'] in group_names

View File

@ -48,8 +48,8 @@ max_header_size = 38
[ovn]
ovn_native_dhcp = True
ovn_nb_connection = tcp:{{ neutron_ovn_ip }}:6641
ovn_sb_connection = tcp:{{ neutron_ovn_ip }}:6642
ovn_nb_connection = {{ neutron_ovn_nb_connection }}
ovn_sb_connection = {{ neutron_ovn_sb_connection }}
ovn_l3_scheduler = {{ neutron_ovn_l3_scheduler }}
ovn_metadata_enabled = True