]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
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)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:30:32 +0000 (07:30 +0200)
commit7e6abbda1ad90fc1432c1622f8694d154d4aaeef
tree535e7cbeaa0492cfd5c8461aa129807ad3c5a03f
parent932dd17a34e0e09974992c58846070f283329396
test: disable mgr/mirroring for `test_mirroring_init_failure_with_recovery` test

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>
(cherry picked from commit c0df8cf78d73181c7c665dd15fd862d9fb0cf5f5)
qa/tasks/cephfs/test_mirroring.py