manila: set "host" to "hostgroup"

when running manila-share under control of pacemaker, as
is done for cinder-volume service in the same circumstance.

Change-Id: Ic97f01913bae2a388c962a38fa175eb1d763cdcb
Depends-On: Ie31f2d5ccf458f5fcfe8bec5f2c37f45070cfde2
Closes-Bug: #1712842
(cherry picked from commit 8fa6c6e58c)
This commit is contained in:
Tom Barron 2017-08-24 12:27:20 -04:00 committed by Emilien Macchi
parent 3dfffebaae
commit 1f3cb179b8
2 changed files with 12 additions and 0 deletions

View File

@ -52,5 +52,8 @@ outputs:
config_settings: config_settings:
map_merge: map_merge:
- get_attr: [ManilaShareBase, role_data, config_settings] - get_attr: [ManilaShareBase, role_data, config_settings]
- manila::share::manage_service: false
manila::share::enabled: false
manila::host: hostgroup
step_config: | step_config: |
include ::tripleo::profile::pacemaker::manila include ::tripleo::profile::pacemaker::manila

View File

@ -0,0 +1,9 @@
---
fixes:
- Set "host" parameter in manila.conf to 'hostgroup' when running
manila share service under pacemaker. This labels instances of
the service on different nodes with the same "host" as cinder does
in this circumstance so that the instances are considered by
OpenStack to provide the same service and manila share is able to
maintain management of shares on the backend after failover and
failback.