]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix idempotent subvolume rm 46139/head
authorKotresh HR <khiremat@redhat.com>
Tue, 29 Mar 2022 05:07:36 +0000 (10:37 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 4 May 2022 09:05:48 +0000 (14:35 +0530)
commit50a3169b48149c7844986bad427f8b4cdfc784e5
tree045dca02ebd1a38a5e2b0205aa5decadec855cf9
parent73636a1b00037ff974bcdc969b009c5ecec626cc
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>
(cherry picked from commit 15a2ab4e263b86a77af42c88247a1cb5fb016f94)
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py