From: Patrick Donnelly Date: Wed, 3 Mar 2021 03:43:15 +0000 (-0800) Subject: qa: skip exit-on-first-failure option for valgrind on ubuntu X-Git-Tag: v17.1.0~2736^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ec1b82fd24220a8cff442194ca98be9ed7ea1816;p=ceph.git qa: skip exit-on-first-failure option for valgrind on ubuntu The valgrind version is too old. Signed-off-by: Patrick Donnelly --- diff --git a/qa/suites/fs/verify/distro b/qa/suites/fs/verify/distro deleted file mode 120000 index 78f2991b407a..000000000000 --- a/qa/suites/fs/verify/distro +++ /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 index 000000000000..e69de29bb2d1 diff --git a/qa/suites/fs/verify/distro/.qa b/qa/suites/fs/verify/distro/.qa new file mode 120000 index 000000000000..a602a0353e75 --- /dev/null +++ b/qa/suites/fs/verify/distro/.qa @@ -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 index 000000000000..380a1443b783 --- /dev/null +++ b/qa/suites/fs/verify/distro/centos_8.yaml @@ -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 index 000000000000..133acf27bff7 --- /dev/null +++ b/qa/suites/fs/verify/distro/rhel_8.yaml @@ -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 index 000000000000..e69de29bb2d1 diff --git a/qa/suites/fs/verify/distro/ubuntu/.qa b/qa/suites/fs/verify/distro/ubuntu/.qa new file mode 120000 index 000000000000..a602a0353e75 --- /dev/null +++ b/qa/suites/fs/verify/distro/ubuntu/.qa @@ -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 index 000000000000..162964882d38 --- /dev/null +++ b/qa/suites/fs/verify/distro/ubuntu/latest.yaml @@ -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 index 000000000000..fdd7f5e5a721 --- /dev/null +++ b/qa/suites/fs/verify/distro/ubuntu/overrides.yaml @@ -0,0 +1,4 @@ +overrides: + ceph: + valgrind: + exit_on_first_error: false diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 18fb862b5b3d..a13f06c73173 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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'