]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix idempotent subvolume rm 45683/head
authorKotresh HR <khiremat@redhat.com>
Tue, 29 Mar 2022 05:07:36 +0000 (10:37 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 29 Mar 2022 05:27:47 +0000 (10:57 +0530)
commit15a2ab4e263b86a77af42c88247a1cb5fb016f94
treed4d0dbe2d4b928c02d3900e8f95010d5445ab747
parent87aa88e30b930c7969b38e1b998e95f8f1faa51b
mgr/volumes: Fix idempotent subvolume rm

The subvolume deletion of a subvolume which is already deleted
with retain snapshots option fails with 'EAGAIN: clone in progress'
error. After subvolume deletion with retain snapshots, the subvolume
exists until the trash directory (resides inside subvolume) is
cleaned up. The subvolume deletion issued while the trash directory is not empty, should
pass. This patch fixes the same.

Credit: Issue discovery and fix suggestion to John Mulligan <jmulligan@redhat.com>
Fixes: https://tracker.ceph.com/issues/54625
Signed-off-by: Kotresh HR <khiremat@redhat.com>
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py