From 5c0a2f40deb315c65519b5bbabdb1fbf3b553dad Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 21 Feb 2013 12:45:26 -0800 Subject: [PATCH] ceph: make /var/run/ceph writeable by non-root too Signed-off-by: Sage Weil --- teuthology/task/ceph.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 2d12d7269f11a..be6b7eee3334d 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -80,14 +80,19 @@ class CephState(object): @contextlib.contextmanager def ceph_log(ctx, config): - log.info('Making ceph log dir writeable by non-root...') + log.info('Making ceph log and run dirs writeable by non-root...') run.wait( ctx.cluster.run( args=[ + 'sudo', + 'install', '-d', '-m0755', '--', + '/var/run/ceph', + run.Raw(';'), 'sudo', 'chmod', '777', '/var/log/ceph', + '/var/run/ceph', ], wait=False, ) -- 2.39.5