]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Add snapshot info command
authorKotresh HR <khiremat@redhat.com>
Wed, 22 Apr 2020 10:40:27 +0000 (16:10 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 13 May 2020 09:53:36 +0000 (15:23 +0530)
commit171930ef773ee6630c76eb9581c725594fb4e884
tree8c0ec06c1ff68af3dda3da8852eda21be855338b
parentb23de0c4b05dccf95527f0f8f9961ec151c565df
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>
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