From: Patrick Donnelly Date: Tue, 23 Apr 2024 19:49:42 +0000 (-0400) Subject: qa: add quiesce tests during fragmentation X-Git-Tag: v19.1.1~335^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3eeccf6e54cdc260f72f57a38171f37095b15cbe;p=ceph.git qa: add quiesce tests during fragmentation Reproduces: https://tracker.ceph.com/issues/65603 Signed-off-by: Patrick Donnelly (cherry picked from commit 527f46f70411c5895dfe33a88e44a58fa6ccaf60) --- diff --git a/qa/tasks/cephfs/test_quiesce.py b/qa/tasks/cephfs/test_quiesce.py index 50106786053f..5b460de983ff 100644 --- a/qa/tasks/cephfs/test_quiesce.py +++ b/qa/tasks/cephfs/test_quiesce.py @@ -5,6 +5,7 @@ import os import re import secrets import tempfile +import time import unittest from io import StringIO import os.path @@ -587,6 +588,26 @@ class TestQuiesce(QuiesceTestCase): self._wait_for_quiesce_complete(reqid) self._verify_quiesce(root=self.subvolume) + def test_quiesce_dir_fragment(self): + """ + That quiesce completes with fragmentation in the background. + """ + + self.config_set('mds', 'mds_bal_split_size', '10') + self.config_set('mds', 'mds_bal_merge_size', '1') # do not merge + self.config_set('mds', 'mds_bal_split_bits', '1') + self._configure_subvolume() + self._client_background_workload() + + # time for the workload to get busy + time.sleep(5) + + J = self.fs.rank_tell("quiesce", "path", self.subvolume) + log.debug(f"{J}") + reqid = self._reqid_tostr(J['op']['reqid']) + self._wait_for_quiesce_complete(reqid) + self._verify_quiesce(root=self.subvolume) + class TestQuiesceMultiRank(QuiesceTestCase): """