From 2574d875623dd0473fdd3eff7fa2d5d41320cc49 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 21 Feb 2013 11:05:30 -0800 Subject: [PATCH] make /var/log/ceph writeable by non-root; make clients log to it Signed-off-by: Sage Weil --- teuthology/ceph.conf.template | 1 + teuthology/task/ceph.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/teuthology/ceph.conf.template b/teuthology/ceph.conf.template index 202a245403e07..192b2313f1d16 100644 --- a/teuthology/ceph.conf.template +++ b/teuthology/ceph.conf.template @@ -30,3 +30,4 @@ rgw cache enabled = true rgw enable ops log = true rgw enable usage log = true + log dir = /var/log/ceph/ceph.$name.$pid.log \ No newline at end of file diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index c2eb06ac3018d..382d7b706c5d1 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -80,6 +80,18 @@ class CephState(object): @contextlib.contextmanager def ceph_log(ctx, config): + log.info('Making ceph log dir writeable by non-root...') + run.wait( + ctx.cluster.run( + args=[ + 'sudo', + 'chown', + '777', + '/var/log/ceph', + ], + wait=False, + ) + ) log.info('Creating extra log directories...') run.wait( ctx.cluster.run( -- 2.39.5