Skip to content

Commit 1c2b5e0

Browse files
committed
ovn: Do not schedule SNAT routers on computes
Currently we set enable-chassis-as-gw on compute nodes when distributed FIP is enabled - that is not required for FIP functionality. Change-Id: Ic880a9479fa0cdbb1d1cae3dbe9523ef2e1132ce Closes-Bug: #1901960 (cherry picked from commit 06baf51)
1 parent 2f7b2fe commit 1c2b5e0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

ansible/roles/ovn/tasks/bootstrap.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@
2727
- name: Enable chassis as gateway
2828
become: true
2929
command: docker exec openvswitch_vswitchd ovs-vsctl set Open_vSwitch . external-ids:ovn-cms-options="enable-chassis-as-gw"
30-
when:
31-
- inventory_hostname in groups["ovn-controller-network"]
32-
or (inventory_hostname in groups["ovn-controller-compute"] and neutron_ovn_distributed_fip | bool)
30+
when: inventory_hostname in groups["ovn-controller-network"]
31+
32+
- name: Ensure chassis as gateway is disabled where required
33+
become: true
34+
command: docker exec openvswitch_vswitchd ovs-vsctl remove Open_vSwitch . external-ids ovn-cms-options
35+
when: inventory_hostname not in groups["ovn-controller-network"]
3336

3437
- name: Set OVN remote probe interval
3538
become: true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
OVN will no longer schedule SNAT routers on compute nodes
5+
when ``neutron_ovn_distributed_fip`` is enabled.
6+
`LP#1901960 <https://launchpad.net/bugs/1901960>`__

0 commit comments

Comments
 (0)