]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Allow forceful snapshot removal on osd full
authorKotresh HR <khiremat@redhat.com>
Wed, 6 Jul 2022 11:59:39 +0000 (17:29 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 16 Aug 2022 11:38:47 +0000 (17:08 +0530)
commit0687f78650dd348619b06e20c299f82f2a0c1bf5
tree9ec38ce242065ae3d15b97d1ef4337fe9446a24a
parenta64f049614454e98920e2abcb685ca61fa49a148
mgr/volumes: Allow forceful snapshot removal on osd full

When the osd is full, if the snapshot has metadata set, it
can't be removed as user metadata can't be removed when osd
is full. This patch provides a way to remove the snapshot
with 'force' option while keeping the corresponding metadata
which gets removed on subvolume discover when it finds space.

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
qa/workunits/fs/full/subvolume_snapshot_rm.sh
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py
src/pybind/mgr/volumes/fs/volume.py