]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: disable mirroring module for certain tests 41171/head
authorVenky Shankar <vshankar@redhat.com>
Wed, 5 May 2021 12:37:07 +0000 (08:37 -0400)
committerVenky Shankar <vshankar@redhat.com>
Wed, 5 May 2021 12:37:35 +0000 (08:37 -0400)
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 <vshankar@redhat.com>
qa/tasks/cephfs/test_mirroring.py

index 248919c3866ed8ca405a6c9ab10e4ef47cc3eea3..20d960331aff7794b022c50172774dc54720efb8 100644 (file)
@@ -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)