Skip to content

Commit 94627f1

Browse files
SkylarKeltyyoctozepto
authored andcommitted
Update Manila deploy steps for Wallaby
Manila has changed from using subfolders to subvolumes. We need a bit of a tidy up to prevent deploy errors. This change also adds the ability to specify the ceph FS Manila uses instead of relying on the default "first found". Closes-Bug: #1938285 Closes-Bug: #1935784 Change-Id: I1d0d34919fbbe74a4022cd496bf84b8b764b5e0f (cherry picked from commit 8d5dde3)
1 parent bc114af commit 94627f1

File tree

7 files changed

+40
-92
lines changed

7 files changed

+40
-92
lines changed

ansible/roles/manila/defaults/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ manila_ks_users:
276276
password: "{{ manila_keystone_password }}"
277277
role: "admin"
278278

279+
280+
####################
281+
# CephFS
282+
####################
283+
manila_cephfs_filesystem_name: ""
284+
285+
279286
####################
280287
# Glusterfs
281288
####################

ansible/roles/manila/tasks/deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@
1212

1313
- name: Flush handlers
1414
meta: flush_handlers
15-
16-
- include_tasks: fix_cephfs_owner.yml
17-
when:
18-
- enable_manila_backend_cephfs_native | bool
19-
- inventory_hostname in groups['manila-share']

ansible/roles/manila/tasks/fix_cephfs_owner.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

ansible/roles/manila/templates/manila-share.conf.j2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ share_driver = manila.share.drivers.cephfs.driver.CephFSDriver
113113
cephfs_conf_path = /etc/ceph/ceph.conf
114114
cephfs_auth_id = {{ ceph_manila_user }}
115115
cephfs_cluster_name = ceph
116-
cephfs_enable_snapshots = False
116+
{% if manila_cephfs_filesystem_name | length %}
117+
cephfs_filesystem_name = {{ manila_cephfs_filesystem_name }}
118+
{% endif %}
117119
{% endif %}
118120

119121
{% if enable_manila_backend_cephfs_nfs | bool %}
@@ -125,7 +127,9 @@ cephfs_protocol_helper_type = NFS
125127
cephfs_conf_path = /etc/ceph/ceph.conf
126128
cephfs_auth_id = {{ ceph_manila_user }}
127129
cephfs_cluster_name = ceph
128-
cephfs_enable_snapshots = False
130+
{% if manila_cephfs_filesystem_name | length %}
131+
cephfs_filesystem_name = {{ manila_cephfs_filesystem_name }}
132+
{% endif %}
129133
cephfs_ganesha_server_is_remote= False
130134
cephfs_ganesha_server_ip = {{ api_interface_address }}
131135
{% endif %}

doc/source/reference/storage/external-ceph-guide.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ for Ceph includes following steps:
204204

205205
#. Copy Ceph configuration file to ``/etc/kolla/config/manila/ceph.conf``
206206
#. Copy Ceph keyring to ``/etc/kolla/config/manila/<ceph_manila_keyring>``
207+
208+
#. If using multiple filesystems (Ceph Pacific+), set
209+
``manila_cephfs_filesystem_name`` in ``/etc/kolla/globals.yml`` to the
210+
name of the Ceph filesystem Manila should use.
211+
By default, Manila will use the first filesystem returned by
212+
the ``ceph fs volume ls`` command.
213+
207214
#. Setup Manila in the usual way
208215

209216
For more details on the rest of the Manila setup, such as creating the share

etc/kolla/globals.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,11 @@
619619
#hnas_evs_ip:
620620
#hnas_file_system_name:
621621

622+
# CephFS backend configuration.
623+
# External Ceph FS name.
624+
# By default this is empty to allow Manila to auto-find the first FS available.
625+
#manila_cephfs_filesystem_name:
626+
622627
# Gluster backend configuration
623628
# The option of glusterfs share layout can be directory or volume
624629
# The default option of share layout is 'volume'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
features:
3+
- |
4+
Adds "manila_cephfs_filesystem_name" variable to support multi-fs
5+
Ceph Pacific+ deloyments.
6+
fixes:
7+
- |
8+
Removes "fix_cephfs_owner.yaml" which related to pre-wallaby Manila's
9+
use of subfolders. Post-wallaby Manila now uses cephfs volumes instead,
10+
as such this file is no longer required.
11+
`LP#1938285 <https://bugs.launchpad.net/kolla-ansible/+bug/1938285>`__
12+
`LP#1935784 <https://bugs.launchpad.net/kolla-ansible/+bug/1935784>`__
13+
- |
14+
Removes use of "cephfs_enable_snapshots" in Manila config as this
15+
option was removed from Manila in the Wallaby release.

0 commit comments

Comments
 (0)