]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/mgr/test_progress.py: deal with pre-exisiting pool 57401/head
authorKamoltat <ksirivad@redhat.com>
Fri, 10 May 2024 15:51:38 +0000 (15:51 +0000)
committerKamoltat <ksirivad@redhat.com>
Fri, 10 May 2024 15:51:58 +0000 (15:51 +0000)
commitb083552cea0f75e76849300a1352b71d2229c6a6
treeae81d9ff37a80b788ea8ac9ec882f92d6ddeedc3
parent61bf8cb3369fedfe6c090ec50690b983d6429d8b
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>
qa/tasks/mgr/test_progress.py