fix permissions when creating OSD with directory

This commit is contained in:
Chris MacNaughton 2016-01-12 09:17:36 -05:00
parent 84fa24c2ac
commit 7e20b4cb16

View File

@ -473,8 +473,10 @@ def osdize_dir(path):
level=ERROR)
raise
mkdir(path, owner=ceph_user(), group=ceph_user())
mkdir(path, owner=ceph_user(), group=ceph_user(), perms=0o755)
chownr('/var/lib/ceph', ceph_user(), ceph_user())
cmd = [
'sudo', '-u', ceph_user(),
'ceph-disk',
'prepare',
'--data-dir',