]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix idempotent subvolume rm 46140/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:07:36 +0000 (14:37 +0530)
commit30bff864ec46d711ce0d3ebe333a2f973021de6b
tree9b0dbf1430299239cbebe9a6fb81b0407417a489
parente8a6693e33e8dc75c3becae67f13377266c95e13
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