]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Deprecate protect/unprotect CLI calls for subvolume snapshots
authorShyamsundar Ranganathan <srangana@redhat.com>
Tue, 23 Jun 2020 20:53:46 +0000 (16:53 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Fri, 10 Jul 2020 15:08:44 +0000 (11:08 -0400)
commitc52a7383d391864b7dce3ba09197a077a998dff7
tree3f7cd01e1a21f4a812b8cae852933d414bde87ae
parent9c240da9001e7e55c933366e56e2f6837b10557b
mgr/volumes: Deprecate protect/unprotect CLI calls for subvolume snapshots

Subvolume snapshots required to be protected, prior to cloning the same.

Also, protected snapshots were not allowed to be unprotected or removed,
if there were in-flight clones, whose source was the snapshot being
removed.

The protection of snapshots explicitly is not required, as these can be
prevented from being removed based only on the in-flight clones checks.

This commit hence deprecates the additional protect/unprotect requirements
prior to cloning a snapshot.

In addition to deprecating the above, support to query a subvolume for
supported features, via the info command, is added. The feature list
is set to "clone" and "auto-protect", where the latter is useful to
decide if protect/unprotect commands are required or not.

Fixes: https://tracker.ceph.com/issues/45371
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
doc/cephfs/fs-volumes.rst
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/template.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py