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
da76f46461

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-08-07 01:11:53 +08:00
parent 2ccd47711b
commit e0620eefbd

View 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: