Bug #14310
closedupstart won't automatically start monitor if cluster name contains chars other than [A-Za-z0-9]
0%
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.
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.