]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: make /var/run/ceph writeable by non-root too
authorSage Weil <sage@inktank.com>
Thu, 21 Feb 2013 20:45:26 +0000 (12:45 -0800)
committerSage Weil <sage@inktank.com>
Thu, 21 Feb 2013 20:45:26 +0000 (12:45 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/ceph.py

index 2d12d7269f11a4860fe054da23aa894f33e0cf26..be6b7eee3334d8498c38eff9c58b3bda45833631 100644 (file)
@@ -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,
             )