Support cephfs_volume_mode parameter
manila now [1] supports configuring an octal value for the rwx permissions mode of the cephfs volumes and snapshots and groups of these that back manila shares, snapshots, and groups. Expose this parameter in the backend manifests for manila with cephfs. [1] https://review.openstack.org/#/c/614332 Depends-on: https://review.openstack.org/#/c/640203/ Change-Id: I0e3f841523dc0cc213100296bc352ac88eb1ff74 (cherry picked from commit127dbb4e81
) (cherry picked from commitd8740f616a
)
This commit is contained in:
parent
e5e6fd4f11
commit
2c7f55cf1a
|
@ -16,6 +16,7 @@ parameter_defaults:
|
||||||
ManilaCephFSDriverHandlesShareServers: false
|
ManilaCephFSDriverHandlesShareServers: false
|
||||||
ManilaCephFSCephFSAuthId: 'manila'
|
ManilaCephFSCephFSAuthId: 'manila'
|
||||||
ManilaCephFSCephFSEnableSnapshots: false
|
ManilaCephFSCephFSEnableSnapshots: false
|
||||||
|
ManilaCephFSCephVolumeMode: '0755'
|
||||||
# manila cephfs driver supports either native cephfs backend - 'CEPHFS'
|
# manila cephfs driver supports either native cephfs backend - 'CEPHFS'
|
||||||
# (users mount shares directly from ceph cluster), or nfs-ganesha backend -
|
# (users mount shares directly from ceph cluster), or nfs-ganesha backend -
|
||||||
# 'NFS' (users mount shares through nfs-ganesha server)
|
# 'NFS' (users mount shares through nfs-ganesha server)
|
||||||
|
|
|
@ -13,6 +13,7 @@ parameter_defaults:
|
||||||
ManilaCephFSDriverHandlesShareServers: false
|
ManilaCephFSDriverHandlesShareServers: false
|
||||||
ManilaCephFSCephFSAuthId: 'manila'
|
ManilaCephFSCephFSAuthId: 'manila'
|
||||||
ManilaCephFSCephFSEnableSnapshots: false
|
ManilaCephFSCephFSEnableSnapshots: false
|
||||||
|
ManilaCephFSCephVolumeMode: '0755'
|
||||||
# manila cephfs driver supports either native cephfs backend - 'CEPHFS'
|
# manila cephfs driver supports either native cephfs backend - 'CEPHFS'
|
||||||
# (users mount shares directly from ceph cluster), or nfs-ganesha backend -
|
# (users mount shares directly from ceph cluster), or nfs-ganesha backend -
|
||||||
# 'NFS' (users mount shares through nfs-ganesha server)
|
# 'NFS' (users mount shares through nfs-ganesha server)
|
||||||
|
|
|
@ -55,6 +55,9 @@ parameters:
|
||||||
ManilaCephFSCephFSEnableSnapshots:
|
ManilaCephFSCephFSEnableSnapshots:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
ManilaCephFSCephVolumeMode:
|
||||||
|
type: string
|
||||||
|
default: '0755'
|
||||||
ManilaCephFSCephFSProtocolHelperType:
|
ManilaCephFSCephFSProtocolHelperType:
|
||||||
default: CEPHFS
|
default: CEPHFS
|
||||||
description: Protocol type ('CEPHFS' or 'NFS') when cephfs back end
|
description: Protocol type ('CEPHFS' or 'NFS') when cephfs back end
|
||||||
|
@ -89,6 +92,7 @@ outputs:
|
||||||
manila::backend::cephfs::cephfs_auth_id: {get_param: ManilaCephFSCephFSAuthId}
|
manila::backend::cephfs::cephfs_auth_id: {get_param: ManilaCephFSCephFSAuthId}
|
||||||
manila::backend::cephfs::cephfs_cluster_name: {get_param: CephClusterName}
|
manila::backend::cephfs::cephfs_cluster_name: {get_param: CephClusterName}
|
||||||
manila::backend::cephfs::cephfs_enable_snapshots: {get_param: ManilaCephFSCephFSEnableSnapshots}
|
manila::backend::cephfs::cephfs_enable_snapshots: {get_param: ManilaCephFSCephFSEnableSnapshots}
|
||||||
|
manila::backend::cephfs::cephfs_volume_mode: {get_param: ManilaCephFSCephVolumeMode}
|
||||||
manila::backend::cephfs::ceph_client_key: {get_param: CephManilaClientKey}
|
manila::backend::cephfs::ceph_client_key: {get_param: CephManilaClientKey}
|
||||||
manila::backend::cephfs::cephfs_protocol_helper_type: {get_param: ManilaCephFSCephFSProtocolHelperType}
|
manila::backend::cephfs::cephfs_protocol_helper_type: {get_param: ManilaCephFSCephFSProtocolHelperType}
|
||||||
step_config:
|
step_config:
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Support setting values for ``cephfs_volume_mode`` manila parameter via
|
||||||
|
the THT parameter ManilaCephFSCephVolumeMode. These control the POSIX
|
||||||
|
rwx mode of the cephfs volumes, snapshots, and groups of these that back
|
||||||
|
corresponding manila resources. Default value for ManilaCephFSCephVolumeMode
|
||||||
|
is '0755', backwards-compatible with the mode for these objects before it
|
||||||
|
was settable.
|
Loading…
Reference in New Issue