]> 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>
Fri, 16 Sep 2022 07:12:23 +0000 (12:42 +0530)
commit0a748bb10535a2858b97d6253a6277f38be7daa3
tree56edc957b557a22505431e1f14483bb29dd0722e
parent8191d36f5afe73fb8136ebc04df34c7ebef88654
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