If using the cephfs native backend, when container start the manila-share process with the manila user, no permissions are prompted when creating the volume. One way to solve the problem is to create the volumes folder in advance in cephfs and modify the owner and group to 42429:42429, which is manila's uid and gid. Change-Id: I1ad63e1c4698ec8ee83461aafefa63041cfeb387 Closes-Bug: #1761108
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
---
|
|
- include: ceph.yml
|
|
when:
|
|
- enable_ceph | bool
|
|
- enable_ceph_mds | bool
|
|
- (enable_manila_backend_cephfs_native | bool) or (enable_manila_backend_cephfs_nfs | bool)
|
|
- inventory_hostname in groups['manila-share']
|
|
|
|
- include: external_ceph.yml
|
|
when:
|
|
- enable_ceph| bool == False
|
|
- enable_ceph_mds| bool == False
|
|
- (enable_manila_backend_cephfs_native | bool) or (enable_manila_backend_cephfs_nfs | bool)
|
|
- inventory_hostname in groups['manila-share']
|
|
|
|
|
|
- include: register.yml
|
|
when: inventory_hostname in groups['manila-api']
|
|
|
|
- include: config.yml
|
|
when: inventory_hostname in groups['manila-api'] or
|
|
inventory_hostname in groups['manila-data'] or
|
|
inventory_hostname in groups['manila-share'] or
|
|
inventory_hostname in groups['manila-scheduler']
|
|
|
|
- include: bootstrap.yml
|
|
when: inventory_hostname in groups['manila-api']
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- include: fix_cephfs_owner.yml
|
|
when:
|
|
- enable_ceph | bool
|
|
- enable_ceph_mds | bool
|
|
- enable_manila_backend_cephfs_native | bool
|
|
- inventory_hostname in groups['manila-share']
|