]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/vol: fix subvolume removal with retained snapshots when osd is full
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Tue, 27 Aug 2024 09:38:41 +0000 (15:08 +0530)
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Wed, 17 Sep 2025 14:06:40 +0000 (19:36 +0530)
commitba199cf4c1865b7c6befe28175f2fd5ddd8a1b4d
treec5693f1fe05cc32efc5d3615d5de69b7b6969c86
parentbafdbd6dcab322cf9a20ab38e7e1a0c98191b28c
mgr/vol: fix subvolume removal with retained snapshots when osd is full

The order of operation done for subvolume removal with retain-snapshot
option set to true, is reversed. The metadata is updated first
followed by a rename operation on the uuid directory. If the metadata
update operation fails, then the remove operations is failed thereby,
keeping the subvolume metadata consistent with the uuid path.

Fixes: https://tracker.ceph.com/issues/67330
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py