Fix post-config of OVS for manila-share servers

A host that is in the manila-share group, but not in controllers
network, etc., will fail service deployment if it is not using the
generic manila driver (eg, if it is using the CephFS native driver).
This is because deployment of openvswitch-vswitchd is predicated on
the drivers enabled for manila-share.  However, this predicate is not
universally applied.  Where inventory group membership is used the
dependency on openvswitch-vswitchd presence will fail.

Closes-Bug: #1993285

Change-Id: I821e513d24f2a1c59240d65ad68c3b5f2080e439
This commit is contained in:
Stig Telfer 2022-01-14 13:08:29 +00:00 committed by Bartosz Bezak
parent 0e58b2f6d6
commit 10b72b98e0
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,8 @@
- { col: "external_ids", name: "system-id", value: "{{ openvswitch_system_id }}" }
- { col: "external_ids", name: "hostname", value: "{{ openvswitch_hostname }}" }
- { col: "other_config", name: "hw-offload", value: true, state: "{{ 'present' if openvswitch_hw_offload | bool else 'absent' }}" }
when:
- openvswitch_services['openvswitch-vswitchd'].host_in_groups | bool
- name: Ensuring OVS bridge is properly setup
become: true

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes handling of openvswitch on ``manila-share`` nodes.
`LP#1993285 <https://launchpad.net/bugs/1993285>`__