]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rados/valgrind-leaks: add timeout value for stop command
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 4 Dec 2024 06:49:36 +0000 (06:49 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 5 Oct 2025 10:56:58 +0000 (10:56 +0000)
increase the timeout before stop command failed. in case
of monitor running under valgrind, we sometimes failed beacuse
of timeout.

Fixes: https://tracker.ceph.com/issues/63501
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 5668807051302e6080f637d92e0f25ef055e42a3)

qa/suites/rados/valgrind-leaks/1-start.yaml
qa/tasks/ceph.py

index cc8c8e537666c0f2b353f4a496ee4ae307d5933c..bfc72596cd3bb04745311af2dfb52f14c9e90dc0 100644 (file)
@@ -25,6 +25,7 @@ overrides:
     valgrind:
       mon: [--tool=memcheck, --leak-check=full, --show-reachable=yes]
       osd: [--tool=memcheck]
+    stop-daemons-timeout: 1200
 roles:
 - [mon.a, mon.b, mon.c, mgr.x, mgr.y, osd.0, osd.1, osd.2, client.0]
 tasks:
index 58442202ce73de52761ff9f74a9b0ebb7daebc2b..5aa3e8ea557f79ad7ec64892838e6a13503d26a5 100644 (file)
@@ -1451,7 +1451,8 @@ def run_daemon(ctx, config, type_):
     try:
         yield
     finally:
-        teuthology.stop_daemons_of_type(ctx, type_, cluster_name)
+        timeout = config.get('stop-daemons-timeout', 300)
+        teuthology.stop_daemons_of_type(ctx, type_, cluster_name, timeout=timeout)
 
 
 def healthy(ctx, config):