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:
dongdong tao 2018-07-30 09:30:08 +08:00
parent 8e8e5f706a
commit 661984bec7
1 changed files with 1 additions and 0 deletions

View File

@ -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