Skip to content
Snippets Groups Projects
Commit e4af0c03 authored by Seena Fallah's avatar Seena Fallah
Browse files

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: default avatarSeena Fallah <seenafallah@gmail.com>
Change-Id: Ic511bf6479438f9288a008afb2aae43083a4e69f
Closes-Bug: #1953367
parent a338df77
No related branches found
No related tags found
No related merge requests found
......@@ -33,3 +33,4 @@
- { 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' }}" }
- { name: ovn-chassis-mac-mappings, value: "{{ ovn_macs }}", state: "{{ 'present' if inventory_hostname in groups['ovn-controller-compute'] else 'absent' }}" }
- { name: ovn-cms-options, value: "{{ ovn_cms_opts }}", state: "{{ 'present' if ovn_cms_opts != '' else 'absent' }}" }
when: inventory_hostname in groups.get('ovn-controller', [])
---
fixes:
- |
Only run ``configure ovn in ovsdb`` task on ovn-controller hosts
The task will fail on hosts (like controller nodes) without
tunnel interface
`LP#1953367 <https://bugs.launchpad.net/kolla-ansible/+bug/1953367>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment