]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/ceph: redirect stderr for crimson flavor
authorKefu Chai <kchai@redhat.com>
Thu, 6 Aug 2020 17:11:53 +0000 (01:11 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 6 Aug 2020 17:11:57 +0000 (01:11 +0800)
we should redirect stderr for crimson instead for default flavor. this
change addresses a regression introduced by
da76f4646157d518a325d5534c30f59aba8fc0e6

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/ceph.py

index 039ccc25ea577c78972d8b4eb6c3ab57ddd1c460..692affd7e561c651b72c64be79bf3c6605865f0f 100644 (file)
@@ -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: