]> git-server-git.apps.pok.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)
committerroot <root@vossi03.front.sepia.ceph.com>
Fri, 1 Mar 2024 23:01:21 +0000 (23:01 +0000)
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 a8a1b6de8b1ae874750594fa6d2e3c6edd5d0c59..d2d600e644b568754dc0eb4fe9affda0ac6e222b 100644 (file)
@@ -924,7 +924,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