Project

General

Profile

Actions

Bug #13474

closed

Ceph daemon failed to start, because the service name was already used.

Added by chuanhong wang over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
-
% Done:

0%

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

Description

Sometimes, ceph daemon cant't be started up, because the service name which allocated by systemd-run was alread used. For details, please find the log below.
It seemd that the service name include a prefix, like 'run-', and a process id. If a process exited, its id will be reused, and result in conflicts of service name.

[root@ceph6 ~]#service ceph restart 
Running as unit run-9539.service.
=== osd.14 === 
=== osd.14 === 
Stopping Ceph osd.14 on ceph104...kill 14943...kill 14943...done
=== osd.14 === 
libust[10508/10508]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup_local_apps() at lttng-ust-comm.c:375)
create-or-move updated item name 'osd.14' weight 0.27 at location {host=ceph104,root=default} to crush map
Starting Ceph osd.14 on ceph104...
Running as unit run-10551.service.
Failed start transient unit: Unit run-10551.service already exists.
failed: 'systemd-run -r bash -c 'ulimit -n 32768; ulimit -c unlimited; cgexec -g cpuset,memory:osd /usr/bin/ceph-osd -i 14 --pid-file /var/run/ceph/osd.14.pid -c /etc/ceph/ceph.conf --cluster ceph -f''

Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #13935: infernalis: Ceph daemon failed to start, because the service name was already used.ResolvedActions
Copied to Ceph - Backport #13936: hammer: Ceph daemon failed to start, because the service name was already used.ResolvedNathan CutlerActions
Actions

Also available in: Atom PDF