From: Kotresh HR Date: Tue, 21 Jul 2020 11:39:39 +0000 (+0530) Subject: qa: Fix traceback during fs cleanup between tests X-Git-Tag: v16.1.0~1550^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36155%2Fhead;p=ceph.git qa: Fix traceback during fs cleanup between tests 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 --- diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 063a6508c61e..42d78f8caef3 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -63,6 +63,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: self.skipTest("Only have {0} MDSs, require {1}".format( len(self.mds_cluster.mds_ids), self.MDSS_REQUIRED