From 78e8472c2d353c9660aba1883645161216e86d25 Mon Sep 17 00:00:00 2001 From: Stig Telfer Date: Fri, 3 Jul 2020 11:16:21 +0200 Subject: [PATCH] Manila - adjust logic for Open vSwitch configuration generation Work was done to selectively enable Open vSwitch deployment for Manila services as bug #1884939. However this did not appear to catch all cases. This patch adds a couple more. Change-Id: I6187997a00f908e87ceace6f79f5f7262ea78738 Closes-Bug: #1886166 Co-Authored-By: Sebastian Luna Valero --- ansible/roles/openvswitch/tasks/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/openvswitch/tasks/config.yml b/ansible/roles/openvswitch/tasks/config.yml index e32c76ec4c..7abfd58061 100644 --- a/ansible/roles/openvswitch/tasks/config.yml +++ b/ansible/roles/openvswitch/tasks/config.yml @@ -34,7 +34,7 @@ dest: "{{ node_config_directory }}/openvswitch-vswitchd/start-ovs" mode: "0770" when: - - inventory_hostname in groups[service.group] + - service.host_in_groups | bool - service.enabled | bool notify: - "Restart openvswitch-vswitchd container" @@ -48,7 +48,7 @@ dest: "{{ node_config_directory }}/openvswitch-db-server/start-ovsdb-server" mode: "0770" when: - - inventory_hostname in groups[service.group] + - service.host_in_groups | bool - service.enabled | bool notify: - "Restart openvswitch-db-server container"