]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Fix traceback during fs cleanup between tests 36714/head
authorKotresh HR <khiremat@redhat.com>
Tue, 21 Jul 2020 11:39:39 +0000 (17:09 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 19 Aug 2020 10:09:02 +0000 (15:39 +0530)
The 'mon_allow_pool_delete' option is set to 'True'
in 'setUp' of 'TestVolumes' and is cleared of in
corresponding 'tearDown' function. Hence, any pool
deletion in parent classes such as 'CephFSTestCase'
would fail. This patch fixes the same by setting
the config 'mon_allow_pool_delete' option in the
'CephFSTestCase'.

Fixes: https://tracker.ceph.com/issues/46597
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 381925d219ac2c847947ae1deeab31d6cc2f668f)

qa/tasks/cephfs/cephfs_test_case.py

index bee9e7df9185d8879e8ee8b3394d56f32e91f39c..5ca8f0d54837769e76f8c407910cf390b50c9be1 100644 (file)
@@ -64,6 +64,8 @@ class CephFSTestCase(CephTestCase):
     def setUp(self):
         super(CephFSTestCase, self).setUp()
 
+        self.config_set('mon', 'mon_allow_pool_delete', True)
+
         if len(self.mds_cluster.mds_ids) < self.MDSS_REQUIRED:
             raise case.SkipTest("Only have {0} MDSs, require {1}".format(
                 len(self.mds_cluster.mds_ids), self.MDSS_REQUIRED