Skip to content

Commit b30b42c

Browse files
committed
ovn: configure ovn in ovsdb only on ovn-controller hosts
Based on some variables like tunnel_interface_address that are not present in nodes without ovn-controller like controller nodes this task will be failed because of undefined variable Signed-off-by: Seena Fallah <[email protected]> Change-Id: Ic511bf6479438f9288a008afb2aae43083a4e69f Closes-Bug: #1953367 (cherry picked from commit e4af0c0)
1 parent f35e44a commit b30b42c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ansible/roles/ovn/tasks/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@
3333
- { name: ovn-bridge-mappings, value: "{{ ovn_mappings }}", state: "{{ 'present' if (inventory_hostname in groups['ovn-controller-network'] or computes_need_external_bridge | bool) else 'absent' }}" }
3434
- { name: ovn-chassis-mac-mappings, value: "{{ ovn_macs }}", state: "{{ 'present' if inventory_hostname in groups['ovn-controller-compute'] else 'absent' }}" }
3535
- { name: ovn-cms-options, value: "{{ ovn_cms_opts }}", state: "{{ 'present' if ovn_cms_opts != '' else 'absent' }}" }
36+
when: inventory_hostname in groups.get('ovn-controller', [])
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Only run ``configure ovn in ovsdb`` task on ovn-controller hosts
5+
The task will fail on hosts (like controller nodes) without
6+
tunnel interface
7+
`LP#1953367 <https://bugs.launchpad.net/kolla-ansible/+bug/1953367>`__

0 commit comments

Comments
 (0)