yield
finally:
lookup_procs = list()
- val_path = '{tdir}/archive/log/valgrind'.format(tdir=testdir)
+ val_path = '/var/log/ceph/valgrind'.format(tdir=testdir)
log.info('Checking for errors in any valgrind logs...');
for remote in ctx.cluster.remotes.iterkeys():
#look at valgrind logs for each node
def first_in_ceph_log(pattern, excludes):
args = [
'egrep', pattern,
- '%s/archive/log/cluster.%s.log' % (testdir, firstmon),
+ '/var/log/ceph/ceph.log',
]
for exclude in excludes:
args.extend([run.Raw('|'), 'egrep', '-v', exclude])
run_cmd.extend(teuthology.get_valgrind_args(testdir, name, valgrind_args))
if type_ in config.get('cpu_profile', []):
- profile_path = '%s/archive/log/%s.%s.prof' % (testdir, type_, id_)
+ profile_path = '/var/log/ceph/profiling-logger/%s.%s.prof' % (type_, id_)
run_cmd.extend([ 'env', 'CPUPROFILE=%s' % profile_path ])
run_cmd.extend(run_cmd_tail)
time.sleep(10)
testdir = teuthology.get_testdir(ctx)
- log_path = '{tdir}/archive/log'.format(tdir=testdir)
while True:
for i in range(num_osds):
log.info("osd %d has an error" % i)
raise Exception("osd %d error" % i)
- log_path = '%s/archive/log/osd.%d.log' % (testdir, i)
+ log_path = '/var/log/ceph/osd.%d.log' % (i)
p = osd_remote.run(
args = [
'radosgw',
# authenticate as client.admin and use system keyring
'-k', '/etc/ceph/ceph.keyring',
- '--log-file', '{tdir}/archive/log/rgw.log'.format(tdir=testdir),
+ '--log-file', '/var/log/ceph/rgw.log',
'--rgw_ops_log_socket_path', '{tdir}/rgw.opslog.sock'.format(tdir=testdir),
'{tdir}/apache/apache.conf'.format(tdir=testdir),
'--foreground',
- run.Raw('>'),
- '{tdir}/archive/log/rgw.stdout'.format(tdir=testdir),
+ run.Raw('|'),
+ 'sudo',
+ 'tee',
+ '/var/log/ceph/rgw.stdout'.format(tdir=testdir),
run.Raw('2>&1'),
]