]> 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>
Wed, 30 Apr 2025 11:52:04 +0000 (17:22 +0530)
commitd3b5a4c72d2f4b75cec6468c78aa83fc320a59c9
tree7097e803b8edfc50b0705b4e69c353efb2555fca
parent2ed4296866af3634d0799f3b958a3f1f6935daa0
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