CephFS Back End Guide for the Shared File System Service
Deploying a CephFS Back End for the Shared File System Service in a Red Hat OpenStack Platform Overcloud
Red Hat Ceph file system (CephFS) is available only as a Technology Preview, and therefore not fully supported by Red Hat. The deployment scenario described in this document should only be used for testing, and should not be deployed in a production environment.
For more information about Technology Preview features, see Scope of Coverage Details.
The OpenStack Shared File Systems service (openstack-manila) provides the means to easily provision shared file systems that can be consumed by multiple instances. In the past, OpenStack users needed to manually deploy shared file systems before mounting them on instances. The OpenStack Shared File Systems service, on the other hand, allows users to easily provision shares from a pre-configured storage pool, ready to be mounted securely. This pool, in turn, can be independently managed and scaled to meet demand.
This release includes a technology preview of the necessary driver for Red Hat CephFS (namely,
manila.share.drivers.cephfs.cephfs_native.CephFSNativeDriver). This driver allows the Shared File System service to use CephFS as a back end.
While you can manually configure the Shared File System service by directly editing its node’s
/etc/manila/manila.conf file, any settings can be overwritten by the Red Hat OpenStack Platform director in future overcloud updates. As such, the recommended method for configuring a Shared File System back end is through the director. Doing so involves writing a custom environment file.
With this release, the director can now deploy the Shared File System with a CephFS back end on the overcloud. This document explains how to do so.
To test this feature, you need an existing Red Hat OpenStack Platform environment with an integrated Ceph back end. See the Deploying an Overcloud with Containerized Red Hat Ceph guide for instructions on how to deploy such an environment.
In addition, this scenario assumes that:
- The Shared File System service will still be installed on the Controller nodes, as is the default behavior; and
- You intend to only use a single instance of the Ceph File Sysem as the only back end for your Shared File System Service.
2.1. Limitations and Restrictions
Given the current state of the involved components, the test scenario in this document has the following limitations and restrictions:
- Untrusted instance users pose a security risk to the Ceph Storage cluster, as they would have direct access to the public network of the Ceph Storage cluster. Ensure that the cluster you are using is quarantined from the production environment, and that only trusted users have access to the test environment.
- This release only allows read-write access to shares.
3. Edit the Environment File
The environment file contains the back end settings you want to define. It also contains other settings relevant to the deployment of the Shared File System service. For more information about environment files, see Environment Files (from the Director Installation and Usage guide).
This release includes an integrated environment file for defining a CephFS back end. This file is located in the following path of the undercloud node:
This file provides default settings for deploying a Shared File System service.
Create an environment file which will contain the settings necessary for your environment — namely,
~/templates/manila-cephfsnative-config.yaml. The following snippet shows the default values used by the director when deploying the Shared File System service:
parameter_defaults: # 1 ManilaCephFSNativeBackendName: cephfsnative ManilaCephFSNativeDriverHandlesShareServers: false # 2 ManilaCephFSNativeCephFSConfPath: '/etc/ceph/ceph.conf' # 3 ManilaCephFSNativeCephFSAuthId: 'manila' # 4 ManilaCephFSNativeCephFSClusterName: 'ceph' ManilaCephFSNativeCephFSEnableSnapshots: true
parameter_defaultsheader signifies the start of your configuration. Specifically, it allows you to override default values set in
resource_registry. This includes values set by
OS::Tripleo::Services::ManilaBackendCephFs, which sets defaults for a CephFS back end.
false, the driver will not handle the lifecycle of the share server.
ManilaCephFSNativeCephFSConfPath:sets the path to the configuration file of the Ceph cluster.
ManilaCephFSNativeCephFSAuthId:is the Ceph auth ID that the director will create for share access.
4. Deploy the Shared File System Service with a CephFS Back End
Once you create
/home/stack/templates/manila-cephfsnative-config.yaml, log in as the
stack user on the undercloud. Then, deploy the Shared File System service with a CephFS back end by including the following environment files:
/usr/share/openstack-tripleo-heat-templates/environments/services/ceph-mds.yaml- enables the Ceph MDS, which is required by Shared File System service when using a CephFS back end.
/usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsnative-config.yaml- deploys the Ceph cluster.
/home/stack/templates/manila-cephfsnative-config.yaml- created earlier in Section 3, “Edit the Environment File”, and contains any settings to override defaults set in
For example, if your OpenStack and Ceph settings are defined in
$ openstack overcloud deploy --templates \ -e /home/stack/templates/storage-environment.yaml \ -e /usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsnative-config.yaml \ -e /usr/share/openstack-tripleo-heat-templates/environments/services/ceph-mds.yaml \ -e /home/stack/templates/manila-cephfsnative-config.yaml \