From: Rishabh Dave Date: Wed, 21 Aug 2024 07:31:25 +0000 (+0530) Subject: qa/cephfs: use different config options to generate MDS_TRIM X-Git-Tag: v18.2.5~98^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=389535f1b7ffdf0a02b07d42dbdebdc5a41f4846;p=ceph.git qa/cephfs: use different config options to generate MDS_TRIM Test test_with_health_warn_trim in classes TestFSFail and TestMDSFail use config options mds_log_trim_decay_rate and mds_log_trim_threshold to generte health warning MDS_TRIM which is required for this test. Since these config options are not present in Reef, use config options mds_log_max_segments and mds_log_warn_factor to generate health MDS_TRIM. Fixes: https://tracker.ceph.com/issues/66829 Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/test_admin.py b/qa/tasks/cephfs/test_admin.py index 34dc59ab2a2..162e8bdb4ad 100644 --- a/qa/tasks/cephfs/test_admin.py +++ b/qa/tasks/cephfs/test_admin.py @@ -179,8 +179,8 @@ class TestAdminCommands(CephFSTestCase): self.config_set('mds', 'mds_debug_subtrees', 'true') # this will really really slow the trimming, so that MDS_TRIM stays # for longer. - self.config_set('mds', 'mds_log_trim_decay_rate', '60') - self.config_set('mds', 'mds_log_trim_threshold', '1') + self.config_set('mds', 'mds_log_max_segments', '0') + self.config_set('mds', 'mds_log_warn_factor', '1') self.mount_a.open_n_background('.', 400) self.wait_for_health(health_warn, 30)