]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: use different config options to generate MDS_TRIM 59375/head
authorRishabh Dave <ridave@redhat.com>
Wed, 21 Aug 2024 07:31:25 +0000 (13:01 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 23 Aug 2024 12:00:56 +0000 (17:30 +0530)
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 <ridave@redhat.com>
qa/tasks/cephfs/test_admin.py

index 34dc59ab2a230754a07fbd2ebd665859fa1d2d5d..162e8bdb4ad531f0f74f9c84c57b7d9f33313d77 100644 (file)
@@ -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)