Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kraken: tools: ceph-disk prepare writes osd log 0 with root owner #13026

Merged
merged 1 commit into from Apr 12, 2017

Conversation

smithfarm
Copy link
Contributor

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>
(cherry picked from commit bcf7514)
@smithfarm smithfarm self-assigned this Jan 20, 2017
@smithfarm smithfarm added this to the kraken milestone Jan 20, 2017
@smithfarm
Copy link
Contributor Author

Jenkins re-test this please

@jan--f jan--f deleted the wip-18606-kraken branch February 8, 2017 20:18
@smithfarm smithfarm requested a review from a user February 21, 2017 21:46
@smithfarm smithfarm changed the title kraken: ceph-disk prepare writes osd log 0 with root owner kraken: tools: ceph-disk prepare writes osd log 0 with root owner Feb 21, 2017
@smithfarm
Copy link
Contributor Author

This passed a ceph-disk suite at http://tracker.ceph.com/issues/19009#note-5

@smithfarm smithfarm merged commit 42e93ae into ceph:kraken Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants