]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: disable mirroring module for certain tests
authorVenky Shankar <vshankar@redhat.com>
Wed, 5 May 2021 12:37:07 +0000 (08:37 -0400)
committerVenky Shankar <vshankar@redhat.com>
Thu, 27 May 2021 13:35:21 +0000 (09:35 -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>
(cherry picked from commit 0676409bec881807eb8a5be8857439903ba0b257)

qa/tasks/cephfs/test_mirroring.py

index cbed9494cca060ea7f7c13d148e252cce3e32bf3..75f9a51f0b6ca07f5e3ce8b404a00476807a7d61 100644 (file)
@@ -709,6 +709,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)