Skip to content

Commit ea89f1c

Browse files
committed
ovn: Fix disabling of gateway chassis
It currently runs on hosts in ovn group, and in case that controllers are not network gateways - it fails on missing openvswitch. Change-Id: Ibbf683872337402b4e2a38323bb6a3f35ee4bed4 (cherry picked from commit ec04972)
1 parent ff3a144 commit ea89f1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ansible/roles/ovn/tasks/bootstrap.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
- name: Ensure chassis as gateway is disabled where required
3333
become: true
3434
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"]
35+
when:
36+
- inventory_hostname in groups["openvswitch"]
37+
- inventory_hostname not in groups["ovn-controller-network"]
3638

3739
- name: Set OVN remote probe interval
3840
become: true

0 commit comments

Comments
 (0)