From c89d9ea1eef957c66093f55be8c364b88520981f Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Fri, 26 May 2017 21:37:52 +0200 Subject: [PATCH] task/internal/syslog: make kern.log and misc.log world-writable kern.log and misc.log weren't getting written to on ubuntu machines. On centos chcon is saving the day. Fixes: http://tracker.ceph.com/issues/16835 Signed-off-by: Ilya Dryomov --- teuthology/task/internal/syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/internal/syslog.py b/teuthology/task/internal/syslog.py index 63b8f7764..27abc8fe4 100644 --- a/teuthology/task/internal/syslog.py +++ b/teuthology/task/internal/syslog.py @@ -46,7 +46,7 @@ def syslog(ctx, config): for rem in ctx.cluster.remotes.iterkeys(): log_context = 'system_u:object_r:var_log_t:s0' for log_path in (kern_log, misc_log): - rem.run(args='touch %s' % log_path) + rem.run(args=['install', '-m', '666', '/dev/null', log_path]) rem.chcon(log_path, log_context) misc.sudo_write_file( remote=rem, -- 2.47.3