From: Sage Weil Date: Thu, 21 Feb 2013 19:05:30 +0000 (-0800) Subject: make /var/log/ceph writeable by non-root; make clients log to it X-Git-Tag: v0.94.10~27^2^2~364^2~1011 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2574d875623dd0473fdd3eff7fa2d5d41320cc49;p=ceph.git make /var/log/ceph writeable by non-root; make clients log to it Signed-off-by: Sage Weil --- diff --git a/teuthology/ceph.conf.template b/teuthology/ceph.conf.template index 202a245403e0..192b2313f1d1 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 c2eb06ac3018..382d7b706c5d 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(