]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Move incarnations for v2 subvolumes, to subvolume trash
authorShyamsundar Ranganathan <srangana@redhat.com>
Sun, 23 Aug 2020 16:31:01 +0000 (12:31 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Wed, 26 Aug 2020 17:40:57 +0000 (13:40 -0400)
commit20c8a62939a0f290234ffa048bcc4c36f033b440
treebbeb301aa19e1a4e3bfd7d10c0b7c898fb58f9bc
parentaae7a70ed2cf9c32684cfdaf701778a05f229e09
mgr/volumes: Move incarnations for v2 subvolumes, to subvolume trash

For v2 subvolumes without any snapshots or pending purges
move the subvolume to trash, for the purge operation.

When removing only incarnations, leverage symlink based purge
job creation, to avoid renaming the incarnation out of the
subvolume.

For create errors, where the subvolume was retained, just remove
the created incarnation directory.

Fixes: https://tracker.ceph.com/issues/47154
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py
src/pybind/mgr/volumes/fs/purge_queue.py