]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: disable mgr/mirroring for `test_mirroring_init_failure_with_recovery` test
authorVenky Shankar <vshankar@redhat.com>
Mon, 29 Mar 2021 06:44:00 +0000 (02:44 -0400)
committerVenky Shankar <vshankar@redhat.com>
Mon, 29 Mar 2021 06:53:16 +0000 (02:53 -0400)
The test simulates failures by enabling mirroring for file system
via mon interface. Doing this does not create `cephfs-mirror` index
obejct that trips the mirror daemon to report failed status via
asok interface -- so that the test can verify this.

However, mgr/mirroring module gets to know that mirroring is
enabled for this file system (via FSMap) and tried to load the
directory map, but fails to do so and throws a backtrace in the
logs. Fix this by disabling mgr/mirroring before mirroring is
enabled via mon command.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
qa/tasks/cephfs/test_mirroring.py

index 13c0de6cd119abfb2c9384b4c087b7d4527f06f5..9f352bedf8f3f6ffa987eb63521f55fde0be440f 100644 (file)
@@ -740,6 +740,11 @@ class TestMirroring(CephFSTestCase):
     def test_mirroring_init_failure_with_recovery(self):
         """Test if the mirror daemon can recover from a 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.