]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Ceph-disk to use correct user in check_journal_req 12947/head
authorSamuel Matzek <smatzek@us.ibm.com>
Mon, 16 Jan 2017 17:11:31 +0000 (11:11 -0600)
committerSamuel Matzek <smatzek@us.ibm.com>
Mon, 16 Jan 2017 17:22:37 +0000 (11:22 -0600)
commitbcf7514bf53693ec61e482341787c80494589faf
tree1d9f2a49a404aa830862a7c9fca10fd20605edda
parent9ce0f7b0b232eb887372f72b8ee05eb14667485f
Ceph-disk to use correct user in check_journal_req

The ceph-disk tool calls ceph-osd to check the journal requirements
using OSD id 0. This creates a log file for osd-0 on the system
using the current user/group for file permissions.  When ceph-disk
is run as root this makes the file owned by root which makes
the osd daemon for osd.0 unable to write to its own log file.

This commit changes the journal reqs calls of ceph-osd to pass
the ceph user and group so ceph-osd creates the log file with the
appropriate permissions.

Fixes: http://tracker.ceph.com/issues/18538
Signed-off-by: Samuel Matzek <smatzek@us.ibm.com>
src/ceph-disk/ceph_disk/main.py