Project

General

Profile

Actions

Bug #19242

open

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

Added by Christian Balzer about 7 years ago. Updated over 2 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

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 #1

Updated by Sage Weil about 3 years ago

  • Status changed from New to Won't Fix
Actions #2

Updated by Patrick Donnelly over 2 years ago

  • Status changed from Won't Fix to Fix Under Review
  • Target version set to v17.0.0
  • Source set to Community (dev)
  • Backport set to pacific,octopus
  • Pull request ID set to 43305
Actions

Also available in: Atom PDF