diff --git a/ansible/roles/ovn/tasks/bootstrap.yml b/ansible/roles/ovn/tasks/bootstrap.yml index 68d57d796e..728ef1a1e6 100644 --- a/ansible/roles/ovn/tasks/bootstrap.yml +++ b/ansible/roles/ovn/tasks/bootstrap.yml @@ -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', []) diff --git a/releasenotes/notes/bug-1953367-61591a7f3ecf28ce.yaml b/releasenotes/notes/bug-1953367-61591a7f3ecf28ce.yaml new file mode 100644 index 0000000000..636a8e25be --- /dev/null +++ b/releasenotes/notes/bug-1953367-61591a7f3ecf28ce.yaml @@ -0,0 +1,7 @@ +--- +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 `__