Project

General

Profile

Actions

Bug #19242

closed

Ownership of /var/run/ceph not set with sysv-init under Jewel

Added by Christian Balzer about 7 years ago. Updated 5 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

100%

Source:
Community (dev)
Tags:
Backport:
pacific,octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The init.d/ceph script has these lines:


            if [ ! -d $run_dir ]; then
                # assume /var/run exists
                install -d -m0770 -o ceph -g ceph /var/run/ceph
            fi

Which should do the right thing.
However with 10.2.6 (and probably before) under Debian Jessie something else seems to create the directory with root ownership before the startup script even runs.
So the above check finds the directory and never installs it.
Which consequently leads to a failure to start any services.
Removing the check and making the "install" unconditional fixes this.

Actions

Also available in: Atom PDF