]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Remove stale snapshot user metadata
authorKotresh HR <khiremat@redhat.com>
Tue, 16 Aug 2022 11:41:33 +0000 (17:11 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 16 Aug 2022 11:41:33 +0000 (17:11 +0530)
commit65af2d123a1f1ef9c4b370e908ece588eec19a1f
tree4ea88007d6cfd8b6849c46e15db76be2ab742fea
parent0687f78650dd348619b06e20c299f82f2a0c1bf5
mgr/volumes: Remove stale snapshot user metadata

This patch adds the capability to remove the stale snapshot user
metadata while loading the subvolume if it is present. It can't
be done in 'SubvolumeBase.discover' since v1 and v2 snapshot paths
are different. This is done just after the discover before returning
the specific version object.

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/__init__.py
src/pybind/mgr/volumes/fs/operations/versions/metadata_manager.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py