]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/vol: don't delete user-created pool in "volume create" command
authorRishabh Dave <ridave@redhat.com>
Wed, 16 Apr 2025 08:24:27 +0000 (13:54 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 15 Sep 2025 06:18:49 +0000 (11:48 +0530)
commitdc0f18008c1c64c9ce8c44c754a057948548a6be
tree3b4151f7964bdde708810ffb604d354d96b3a072
parent38fbdd990ad056dc5d45ff017a651743d495c805
mgr/vol: don't delete user-created pool in "volume create" command

If one of the pool names passed to "ceph fs volume create" command
(through --data-pool and --meta-pool name) is absent, don't delete the
pool that is present and passed to this command during the cleanup code
of this command.

IOW, "volume create" command should continue deleting pool created by it
but not delete pool created by the user.

Fixes: https://tracker.ceph.com/issues/70945
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4299f660ba9c83ef9305b2834c195da9008810a9)
src/pybind/mgr/volumes/fs/operations/volume.py