]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/mgr/test_progress.py: deal with pre-exisiting pool 58263/head
authorKamoltat <ksirivad@redhat.com>
Fri, 10 May 2024 15:51:38 +0000 (15:51 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Tue, 25 Jun 2024 14:46:28 +0000 (20:16 +0530)
commit7324086c3e30db6662e1ec7ff68acbf8d7d4e657
tree90b92b2734052bcc6849bb02368e8d8d09083482
parentae67f83842dc03c611d34a4c82be324443b930a7
qa/tasks/mgr/test_progress.py: deal with pre-exisiting pool

Problem:
Currently, the test will fail we try
to remove a pool that was not created
by test_progress.py if we use the function
`remove_pool` from class CephManager
because it tracks the pools in a dictionary
and there is an assert to check if the pool
exists in the dictionary.

Solution:
Therefore, add a case where if
there is a pool that was not created
by the test, then we would delete it
through raw command instead of using
`remove_pool` from CephManager

Fixes: https://tracker.ceph.com/issues/65826
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit b083552cea0f75e76849300a1352b71d2229c6a6)
qa/tasks/mgr/test_progress.py