Project

General

Profile

Actions

Bug #14310

closed

upstart won't automatically start monitor if cluster name contains chars other than [A-Za-z0-9]

Added by Emile Snyder over 8 years ago. Updated about 7 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

The src/upstart/*-all-starter.conf files all use the same strategy to find the cluster and id values to use for 'initctl emit [ceph-osd|ceph-mds|ceph-mon|radosgw] cluster="$cluster" id="$id"' command.

They all do a "find /var/lib/ceph/<daemontype> regex '.*/[A-Za-z0-9]+[A-Za-z0-9._-]+' -printf '%P\n' | while read f; do ..." command and then set

cluster="${f%%-*}"
id="${f#*-}"

to set the cluster name as anything before the first '-' and id as everything after it.

Our cluster names are things like 'slc07_ceph_02', so on node restart our monitor processes don't come up on their own.

The osd processes do though, which I still don't understand.

I verified that if I change the regex in /etc/init/ceph-mon-all-starter.conf to '.*/[A-Za-z0-9_]+-[A-Za-z0-9._-]+' and reboot a monitor node the monitor process is started.

Actions #2

Updated by Josh Durgin about 7 years ago

  • Status changed from New to Won't Fix

upstart is no longer used - if this is still an issue with the systemd units please re-open.

Actions

Also available in: Atom PDF