Fix ceph-mon can not print log due to incorrect permission on log file
Change-Id: Iea0bc531446b79dfbc9ecd9d8b432b1efef2aaaf Signed-off-by: dongdong tao <dongdong.tao@canonical.com> Closes-Bug: #1783526
This commit is contained in:
parent
8e8e5f706a
commit
661984bec7
|
@ -1287,6 +1287,7 @@ def add_keyring_to_ceph(keyring, secret, hostname, path, done, init_marker):
|
|||
subprocess.check_call(['ceph-mon', '--mkfs',
|
||||
'-i', hostname,
|
||||
'--keyring', keyring])
|
||||
chownr('/var/log/ceph', ceph_user(), ceph_user())
|
||||
chownr(path, ceph_user(), ceph_user())
|
||||
with open(done, 'w'):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue