Actions
Fix #17433
open[systemd]: Ceph doesn`t remove symlinks for systemd services
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Hi.
Just noticed that after unistalling ceph (for example, using ceph-deploy uninstall & purge & purgedata), there are still symbolic links on systemd services (target).
Besides these services are still enabled and systemd tries start their after reboot the sytem, but it can`t.
Here are some examples below:
root@storage-ceph-01x:~# ps aux | egrep 'ceph-osd.*id 34' root 287695 0.0 0.0 13952 2232 pts/0 S+ 13:37 0:00 grep -E ceph-osd.*id 34
root@storage-ceph-01x:~# systemctl status ceph-osd@34.service ● ceph-osd@34.service - Ceph object storage daemon Loaded: loaded (/lib/systemd/system/ceph-osd@.service; enabled) Active: failed (Result: start-limit) since Fri 2016-08-19 23:33:48 MSK; 1 months 10 days ago Process: 51523 ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph (code=exited, status=1/FAILURE) Process: 51055 ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i (code=exited, status=0/SUCCESS) Main PID: 51523 (code=exited, status=1/FAILURE)
root@storage-ceph-01x:~# ls -l /etc/systemd/system/ceph-osd.target.wants/ceph-osd@34.service lrwxrwxrwx 1 root root 37 Aug 1 18:53 /etc/systemd/system/ceph-osd.target.wants/ceph-osd@34.service -> /lib/systemd/system/ceph-osd@.service
So I think it will be great, if we would have some post-delete script or something else, which can delete following pathes:
/etc/systemd/system/ceph* (include wants-folders) /etc/systemd/system/multi-user.target.wants/ceph-* /etc/init.d/ceph
More information, if you need:
root@storage-ceph-01x:~# ceph --version
ceph version 10.2.2 (45107e21c568dd033c2f0a3107dec8f0b0e58374)
root@storage-ceph-01x:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.5 (jessie)
Release: 8.5
Codename: jessie
Thank you for your work.
BR, Nikita.
Updated by Vasu Kulkarni almost 7 years ago
- Related to Bug #15333: stale /etc/systemd/system/ceph* files after ceph uninstall added
Actions