Only set openvswitch hostname for OVN on eligible hosts

This patch addresses a bug where the OVS 'hostname' external-id was being
set on ineligible hosts due to undefined group matching statements.

Change-Id: I158d6c7da732dada7dc4cf999a2128c02adc189a
Closes-Bug: #1790915
This commit is contained in:
James Denton 2018-09-05 18:53:46 +00:00
parent 2dba515ecb
commit f97e9ffbba
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@
command: "ovs-vsctl set open_vswitch . external-ids:hostname='{{ inventory_hostname }}'"
tags:
- ovn-config
when:
- (neutron_services['neutron-ovn-northd']['group'] in group_names) or
(neutron_services['neutron-ovn-controller']['group'] in group_names)
- name: Create ovsdb-server Listener
command: "ovs-vsctl set-manager ptcp:6640"