]> git.apps.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>
Thu, 1 Sep 2022 07:38:03 +0000 (13:08 +0530)
commit2b9a5bc3d31c0bae5d31d97ded13abd42a91707f
treeb8f95380a898f14c7bde9243abbbcd4fcb2b71ee
parentddad8473d91cc6457b83b57e18bb5f6e4599fda6
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>
(cherry picked from commit 0687f78650dd348619b06e20c299f82f2a0c1bf5)
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