Project

General

Profile

Actions

Bug #50518

open

ceph-osd-prestart.sh don't use the configuration

Added by Fabrice Bacchella almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

I'm using a rpm build directly from ceph, ceph-osd-16.2.1-0.el8.x86_64

I tweaked the configuration with a custom installation path

In the unit, there is the configuration:
ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i

And this script check the osd path with an hard coded value:
data="/var/lib/ceph/osd/${cluster:-ceph}-$id"

It doesn't use the key from the configuration file, but uses the deprecated feature $cluster. But using ceph-conf would have solve the problem:

$ CEPH_CONF=/data/ceph/conf/ceph.conf --name osd.1 --show-config-value osd_data
/data/ceph/data/osd/ceph.1

No data to display

Actions

Also available in: Atom PDF