]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Fix pool removal on volume deletion
authorKotresh HR <khiremat@redhat.com>
Fri, 5 Jun 2020 17:58:36 +0000 (23:28 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 23 Jun 2020 17:34:28 +0000 (23:04 +0530)
commitd07ea8db471b1a1d9082756e1cb775d5543b1307
tree1545f8b8cde5b9f2c602baeabddc42570e852593
parentbfb08d7b14d9e8b1ee4b9c3b09e5a1b460e14e8e
mgr/volumes: Fix pool removal on volume deletion

While volume deletion, the associated pools are not always
removed. The pools are removed only if the volume is created
using mgr plugin and not if created with custom osd pools.
This is because mgr plugin generates pool names with specific
pattern. Both create and delete volume relies on it. This
patch fixes the issue by identifying the pools of the volume
without relying on the pattern.

Fixes: https://tracker.ceph.com/issues/45910
Signed-off-by: Kotresh HR <khiremat@redhat.com>
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/volume.py
src/pybind/mgr/volumes/fs/volume.py