From: Kefu Chai Date: Thu, 6 Aug 2020 17:11:53 +0000 (+0800) Subject: qa/tasks/ceph: redirect stderr for crimson flavor X-Git-Tag: wip-pdonnell-testing-20200918.022351~417^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e0620eefbdf5c9fb7145b4fba0d7fafe2d337645;p=ceph-ci.git qa/tasks/ceph: redirect stderr for crimson flavor we should redirect stderr for crimson instead for default flavor. this change addresses a regression introduced by da76f4646157d518a325d5534c30f59aba8fc0e6 Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 039ccc25ea5..692affd7e56 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -541,7 +541,7 @@ def create_simple_monmap(ctx, remote, conf, mons, def maybe_redirect_stderr(args, config, cluster, type_, id_): if type_ == 'osd' and \ - config.get('flavor', 'default') != 'crimson': + config.get('flavor', 'default') == 'crimson': log_path = f'/var/log/ceph/{cluster}-{type_}.{id_}.log' return args + [run.Raw('2>>'), log_path] else: