fix permissions when creating OSD with directory
This commit is contained in:
parent
84fa24c2ac
commit
7e20b4cb16
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user