From 389535f1b7ffdf0a02b07d42dbdebdc5a41f4846 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Wed, 21 Aug 2024 13:01:25 +0530 Subject: [PATCH] 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 --- qa/tasks/cephfs/test_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/test_admin.py b/qa/tasks/cephfs/test_admin.py index 34dc59ab2a230..162e8bdb4ad53 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) -- 2.39.5