]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager.py: init test_min_size_duration
authorKamoltat <ksirivad@redhat.com>
Mon, 25 Sep 2023 21:29:35 +0000 (21:29 +0000)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 17 Aug 2024 11:01:39 +0000 (18:01 +0700)
Added comment about test_min_size_duration
in qa/tasks/thrashosds.

But also use the variable in ceph_manager.py

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 9f19dffc93463513e03908f3506c62e65364c0cd)

qa/tasks/ceph_manager.py
qa/tasks/thrashosds.py

index e24965026c4b95d0f4af52f6b6b622b1b3b7f5d4..f1b5d08d3f99182aeda278abc1d6a44ad39ddef1 100644 (file)
@@ -895,7 +895,8 @@ class OSDThrasher(Thrasher):
         self.ceph_manager.wait_for_clean(timeout=180)
         assert self.ceph_manager.is_clean(), \
             'not clean before minsize thrashing starts'
-        while not self.stopping:
+        start = time.time()
+        while time.time() - start < self.config.get("test_min_size_duration", 1800):
             # look up k and m from all the pools on each loop, in case it
             # changes as the cluster runs
             k = 0
index aa7ec437a60015702253dbaa9ed094dd03b9eb67..476e0e4755a75cc2c6401234f7c2056afe8bcfbd 100644 (file)
@@ -63,6 +63,9 @@ def task(ctx, config):
        - kills that osd
        - revives all other osds
        - verifies that the osds fully recover
+    
+    test_min_size_duration: (1800) the number of seconds for
+        test_pool_min_size to last.
 
     timeout: (360) the number of seconds to wait for the cluster
        to become clean after each cluster change. If this doesn't