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
(cherry picked from commit 10b72b98e0)
This commit is contained in:
Stig Telfer 2022-01-14 13:08:29 +00:00 committed by Bartosz Bezak
parent 80353fe721
commit 2f1984f91b
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,8 @@
loop:
- { col: "external_ids", name: "system-id", value: "{{ openvswitch_system_id }}" }
- { 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
notify:
- "Restart openvswitch-vswitchd container"

View File

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