Merge "Enable cephfs snapshots"

This commit is contained in:
Zuul 2020-07-13 11:29:13 +00:00 committed by Gerrit Code Review
commit b2d76bfaf1
7 changed files with 23 additions and 17 deletions

View File

@ -221,7 +221,6 @@ Create a section like this to define a CephFS native backend:
cephfs_protocol_helper_type = CEPHFS
cephfs_auth_id = manila
cephfs_cluster_name = ceph
cephfs_enable_snapshots = True
Set ``driver-handles-share-servers`` to ``False`` as the driver does not
manage the lifecycle of ``share-servers``. For the driver backend to expose
@ -267,7 +266,6 @@ Create a section to define a CephFS NFS share backend:
cephfs_conf_path = /etc/ceph/ceph.conf
cephfs_auth_id = manila
cephfs_cluster_name = ceph
cephfs_enable_snapshots = True
cephfs_ganesha_server_is_remote= False
cephfs_ganesha_server_ip = 172.24.4.3
ganesha_rados_store_enable = True
@ -487,11 +485,6 @@ Known restrictions
evicting other CephFS clients using the same Ceph auth ID to connect to the
backend.
- The snapshot support of the driver is disabled by default. The
``cephfs_enable_snapshots`` configuration option needs to be set to ``True``
to allow snapshot operations. Snapshot support will also need to be enabled
on the backend CephFS storage.
- Snapshots are read-only. A user can read a snapshot's contents from the
``.snap/{manila-snapshot-id}_{unknown-id}`` folder within the mounted
share.

View File

@ -159,10 +159,8 @@ Configure CephFS back end in ``manila.conf``
cephfs_conf_path = /etc/ceph/ceph.conf
cephfs_auth_id = manila
cephfs_cluster_name = ceph
cephfs_enable_snapshots = False
To let the driver perform snapshot related operations, set
cephfs_enable_snapshots to True . Also set the
Also set the
``driver-handles-share-servers`` to ``False`` as the driver does not manage
the lifecycle of ``share-servers``.
@ -262,10 +260,6 @@ in the future. However, it can be used in private cloud deployments.
- The guests have direct access to Ceph's public network.
- The snapshot support of the driver is disabled by default.
``cephfs_enable_snapshots`` configuration option needs to be set to ``True``
to allow snapshot operations.
- Snapshots are read-only. A user can read a snapshot's contents from the
``.snap/{manila-snapshot-id}_{unknown-id}`` folder within the mounted
share.

View File

@ -24,5 +24,3 @@
- (String) The name of the cluster in use, if it is not the default ('ceph').
* - ``cephfs_conf_path`` =
- (String) Fully qualified path to the ceph.conf file.
* - ``cephfs_enable_snapshots`` = ``False``
- (Boolean) Whether to enable snapshots in this driver.

View File

@ -68,7 +68,11 @@ cephfs_opts = [
help="The prefix of the cephfs volume path."
),
cfg.BoolOpt('cephfs_enable_snapshots',
default=False,
deprecated_for_removal=True,
deprecated_since='Victoria',
deprecated_reason='CephFS snapshots are fully supported '
'since the Nautilus release of Ceph.',
default=True,
help="Whether to enable snapshots in this driver."
),
cfg.StrOpt('cephfs_protocol_helper_type',

View File

@ -74,6 +74,8 @@
export MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=False
export DEVSTACK_GATE_USE_PYTHON3=True
export RUN_MANILA_SNAPSHOT_TESTS=True
function pre_test_hook {
# Configure Manila with a CephFS Native or NFS driver backend.
# Refer to job-template pre_test_hook for more details on the

View File

@ -69,6 +69,7 @@
export MANILA_SETUP_IPV6=True
export RUN_MANILA_IPV6_TESTS=True
export RUN_MANILA_SNAPSHOT_TESTS=True
# Basic services needed for minimal job
OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest

View File

@ -0,0 +1,14 @@
---
upgrade:
- |
The default value for the CephFS driver configuration option
``cephfs_enable_snapshots`` has changed to True. This option has also
been deprecated, and will be removed in a future release. If snapshots
are not desired with this back end, set the share type extra spec
``snapshot_support`` to False.
deprecations:
- |
The CephFS driver configuration option ``cephfs_enable_snapshots`` has
been deprecated, and will be removed in a future release. Use
the share type extra-spec ``snapshot_support`` to enable or disable
snapshots.