]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Add snapshot info command 35672/head
authorKotresh HR <khiremat@redhat.com>
Wed, 22 Apr 2020 10:40:27 +0000 (16:10 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 19 Jun 2020 10:48:13 +0000 (16:18 +0530)
commit4a7782154d08f34a53461cbb2c0745b6afd7ed4a
treec16c8e7afcd44a59a0227ffd88bd497194cd1d2a
parenteabb01366894d9cc2c577af687ca3fad634d2eea
mgr/volumes: Add snapshot info command

The following command is added

"ceph fs subvolume snapshot info <vol_name> <sub_name> <snap_name> [<group_name>]"

The output is in json format with following fields

    created_at: time of creation of snapshot in the format "YYYY-MM-DD HH:MM:SS:ffffff"
    data_pool: data pool the snapshot belongs to
    has_pending_clones: "yes" if snapshot clone is in progress otherwise "no"
    protected: "yes" if snapshot is protected otherwise "no"
    size: snapshot size in bytes

Fixes: https://tracker.ceph.com/issues/45237
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 171930ef773ee6630c76eb9581c725594fb4e884)
doc/cephfs/fs-volumes.rst
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py