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: v16.1.0~1480^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36499%2Fhead;p=ceph.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 039ccc25ea57..692affd7e561 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: