Package: ceph
Version: 10.2.5-7.2
Severity: important
Tags: patch
Dear Maintainer,
* What led up to the situation?
Reboot. I expected all ceph daemons to start automatically but they
did not. /var/run/ceph had incorrect ownership. It belonged to root
instead of ceph. I am using sysvinit. I have not checked whether
this is also a problem using other "init".
I appled the patch below, after which all daemons were started as
expected.
The removal of the mkdir is safe as the directory is created using
install further down in the script using the correct ownership.
--- /tmp/ceph 2017-07-20 23:00:23.924080968 +0200
+++ /etc/init.d/ceph 2017-07-15 01:21:30.116388768 +0200
@@ -275,7 +275,6 @@
if [ "$command" = "start" ]; then
if [ -n "$pid_file" ]; then
- do_cmd "mkdir -p "`dirname $pid_file`
cmd="$cmd --pid-file $pid_file"
fi
-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.31-moby (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages ceph depends on:
pn ceph-mon <none>
pn ceph-osd <none>
ii lsb-base 9.20161125
ceph recommends no packages.
Versions of packages ceph suggests:
pn ceph-mds <none>