]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: set mds config with `config set` for a particular test
authorVenky Shankar <vshankar@redhat.com>
Mon, 20 Nov 2023 05:44:24 +0000 (00:44 -0500)
committerVenky Shankar <vshankar@redhat.com>
Wed, 13 Mar 2024 13:48:55 +0000 (19:18 +0530)
commit27f0557baa477e45be67bfa1ebcc73fec31e51c9
treeaa906c1d96bd88e9a7ac0450e7e6b7a0c8d058c1
parenta6696f11108a2345bc1831e5e3a6621aff6f50c9
qa: set mds config with `config set` for a particular test

The config setting is persisted in ceph.conf after the MDSs are started.
However, the test case fails the file system causing the active MDS to
restart and pick up the new config. When the file system is marked joinable,
then, if the MDS which was standby before the file system was marked failed
takes over as the rank, the updated setting are not used by this MDS.

In the failed test, merging directory fragment is disabled, but since
the config is set in ceph.conf, the (earlier standby) MDS which acquires
a rank uses the default merge size causing the dirfrag to merge and
thereby tripping the test.

Fixes: http://tracker.ceph.com/issues/57087
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 2958a7cd1259cdfb6e04ebc5047cadb86bf90707)
qa/tasks/cephfs/test_data_scan.py