Let the plugin setup and configure CephFS as the storage backend for Manila. This is not done by default. Refer the README to do so. The following tweaks had to be made: * Install a development version of Ceph that is compatible with Manila's CephFSNative driver. * The development version is a version greater than Infernalis. And from Infernalis onwards, the ceph daemons are run as user "ceph". So allow the daemons to run as user "ceph" for such versions. * Enhance get_ceph_version to check Ceph version even when the ceph mon daemon is not up, by instead checking for the CLI version. Change-Id: I74314bfcc6b52d524bb84f2232a988f275b9afbf Co-Authored-By: John Spray <john.spray@redhat.com>
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
# Devstack settings
|
|
|
|
# CEPH_PLUGIN_DIR contains the path to devstack-plugin-ceph/devstack directory
|
|
|
|
CEPH_PLUGIN_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
|
|
|
|
# Add ceph plugin specific settings
|
|
# NOTE: Currently these are redundant since ceph
|
|
# plugin job defn defines them already, but
|
|
# once DEVSTACK_GATE_CEPH is removed, these
|
|
# won't be redundant, so its ok to have these
|
|
# anyways.
|
|
|
|
TEMPEST_STORAGE_PROTOCOL=ceph
|
|
CEPH_LOOPBACK_DISK_SIZE=8G
|
|
|
|
# Source plugin's lib/ceph
|
|
source $CEPH_PLUGIN_DIR/lib/ceph
|
|
|
|
# Set Manila related global variables used by Manila's DevStack plugin.
|
|
if is_ceph_enabled_for_service manila; then
|
|
ENABLED_SHARE_PROTOCOLS="CEPHFS"
|
|
MANILA_DEFAULT_SHARE_TYPE=cephfstype
|
|
# CephFSNative Driver does not yet support creation of shares from
|
|
# snapshot.
|
|
MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=False'
|
|
|
|
MANILA_ENABLED_BACKENDS=cephfsnative1
|
|
MANILA_CONFIGURE_GROUPS=cephfsnative1
|
|
|
|
MANILA_OPTGROUP_cephfsnative1_share_driver=manila.share.drivers.cephfs.CephFSNativeDriver
|
|
MANILA_OPTGROUP_cephfsnative1_driver_handles_share_servers=False
|
|
MANILA_OPTGROUP_cephfsnative1_share_backend_name=CEPHFSNATIVE1
|
|
MANILA_OPTGROUP_cephfsnative1_cephfs_conf_path=${CEPH_CONF_FILE}
|
|
MANILA_OPTGROUP_cephfsnative1_cephfs_auth_id=${MANILA_CEPH_USER}
|
|
fi
|