]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: skip exit-on-first-failure option for valgrind on ubuntu 39724/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 3 Mar 2021 03:43:15 +0000 (19:43 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 3 Mar 2021 17:30:21 +0000 (09:30 -0800)
The valgrind version is too old.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/suites/fs/verify/distro [deleted symlink]
qa/suites/fs/verify/distro/$ [new file with mode: 0644]
qa/suites/fs/verify/distro/.qa [new symlink]
qa/suites/fs/verify/distro/centos_8.yaml [new symlink]
qa/suites/fs/verify/distro/rhel_8.yaml [new symlink]
qa/suites/fs/verify/distro/ubuntu/+ [new file with mode: 0644]
qa/suites/fs/verify/distro/ubuntu/.qa [new symlink]
qa/suites/fs/verify/distro/ubuntu/latest.yaml [new symlink]
qa/suites/fs/verify/distro/ubuntu/overrides.yaml [new file with mode: 0644]
qa/tasks/ceph.py

diff --git a/qa/suites/fs/verify/distro b/qa/suites/fs/verify/distro
deleted file mode 120000 (symlink)
index 78f2991..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.qa/distros/supported-random-distro$/
\ No newline at end of file
diff --git a/qa/suites/fs/verify/distro/$ b/qa/suites/fs/verify/distro/$
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/fs/verify/distro/.qa b/qa/suites/fs/verify/distro/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/fs/verify/distro/centos_8.yaml b/qa/suites/fs/verify/distro/centos_8.yaml
new file mode 120000 (symlink)
index 0000000..380a144
--- /dev/null
@@ -0,0 +1 @@
+.qa/distros/all/centos_8.yaml
\ No newline at end of file
diff --git a/qa/suites/fs/verify/distro/rhel_8.yaml b/qa/suites/fs/verify/distro/rhel_8.yaml
new file mode 120000 (symlink)
index 0000000..133acf2
--- /dev/null
@@ -0,0 +1 @@
+.qa/distros/all/rhel_8.yaml
\ No newline at end of file
diff --git a/qa/suites/fs/verify/distro/ubuntu/+ b/qa/suites/fs/verify/distro/ubuntu/+
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/fs/verify/distro/ubuntu/.qa b/qa/suites/fs/verify/distro/ubuntu/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/fs/verify/distro/ubuntu/latest.yaml b/qa/suites/fs/verify/distro/ubuntu/latest.yaml
new file mode 120000 (symlink)
index 0000000..1629648
--- /dev/null
@@ -0,0 +1 @@
+.qa/distros/all/ubuntu_20.04.yaml
\ No newline at end of file
diff --git a/qa/suites/fs/verify/distro/ubuntu/overrides.yaml b/qa/suites/fs/verify/distro/ubuntu/overrides.yaml
new file mode 100644 (file)
index 0000000..fdd7f5e
--- /dev/null
@@ -0,0 +1,4 @@
+overrides:
+  ceph:
+    valgrind:
+      exit_on_first_error: false
index 18fb862b5b3dc086202bc2b97e7d3f7c710e295b..a13f06c73173baf5214aa11eec313838f935b32c 100644 (file)
@@ -1387,13 +1387,16 @@ def run_daemon(ctx, config, type_):
                 profile_path = '/var/log/ceph/profiling-logger/%s.prof' % (role)
                 run_cmd.extend(['env', 'CPUPROFILE=%s' % profile_path])
 
-            if config.get('valgrind') is not None:
+            vc = config.get('valgrind')
+            if vc is not None:
                 valgrind_args = None
-                if type_ in config['valgrind']:
-                    valgrind_args = config['valgrind'][type_]
-                if role in config['valgrind']:
-                    valgrind_args = config['valgrind'][role]
-                run_cmd = get_valgrind_args(testdir, role, run_cmd, valgrind_args)
+                if type_ in vc:
+                    valgrind_args = vc[type_]
+                if role in vc:
+                    valgrind_args = vc[role]
+                exit_on_first_error = vc.get('exit_on_first_error', True)
+                run_cmd = get_valgrind_args(testdir, role, run_cmd, valgrind_args,
+                    exit_on_first_error=exit_on_first_error)
 
             run_cmd.extend(run_cmd_tail)
             log_path = f'/var/log/ceph/{cluster_name}-{type_}.{id_}.log'