From: Venky Shankar Date: Wed, 5 May 2021 12:37:07 +0000 (-0400) Subject: test: disable mirroring module for certain tests X-Git-Tag: v17.1.0~1930^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0676409bec881807eb8a5be8857439903ba0b257;p=ceph.git test: disable mirroring module for certain tests Without this a traceback is seen in mgr logs. Also, this solves one part of the issue. The other half (failing tests) will be resolved by PR #40885. Fixes: http://tracker.ceph.com/issues/50224 Signed-off-by: Venky Shankar --- diff --git a/qa/tasks/cephfs/test_mirroring.py b/qa/tasks/cephfs/test_mirroring.py index 248919c3866..20d960331af 100644 --- a/qa/tasks/cephfs/test_mirroring.py +++ b/qa/tasks/cephfs/test_mirroring.py @@ -694,6 +694,11 @@ class TestMirroring(CephFSTestCase): def test_mirroring_init_failure(self): """Test mirror daemon init failure""" + # disable mgr mirroring plugin as it would try to load dir map on + # on mirroring enabled for a filesystem (an throw up erorrs in + # the logs) + self.disable_mirroring_module() + # enable mirroring through mon interface -- this should result in the mirror daemon # failing to enable mirroring due to absence of `cephfs_mirorr` index object. self.mgr_cluster.mon_manager.raw_cluster_cmd("fs", "mirror", "enable", self.primary_fs_name)