]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 30 Sep 2025 10:38:08 +0000 (16:08 +0530)
commit12100050a46f6b271cff33d1810aa827c2107f01
treec9b333493d1f219ddd5e17bbf63b635ba6996f98
parenta140bb4baf31cbbad3461c6b1689402432cb3376
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>
(cherry picked from commit ba199cf4c1865b7c6befe28175f2fd5ddd8a1b4d)
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py