Bug #46655
closedcephadm rm-cluster: Systemd ceph.target not deleted
0%
Description
systemd ceph target persist (active and running after deleting the cluster using cephadm rm-cluster).
This not prevents to create a new cluster or other operations, but when we delete a cluster we must delete all the things related with the cluster.
Steps to reproduce:
1. cephadm bootstrap --mon-ip x.x.x.x
2. cephadm rm-cluster --fsid <xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> --force
3. [root@cephLab2-node-00 storage]# systemctl list-units ceph*
UNIT LOAD ACTIVE SUB DESCRIPTION
ceph.target loaded active active All Ceph clusters and services
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
4. [root@cephLab2-node-00 storage]# systemctl status ceph.target
● ceph.target - All Ceph clusters and services
Loaded: loaded (/etc/systemd/system/ceph.target; enabled; vendor preset: disabled)
Active: active since Mon 2020-07-20 10:51:32 UTC; 1 day 1h ago
Jul 20 10:51:32 cephLab2-node-00 systemd1: Reached target All Ceph clusters and services.
Updated by Sebastian Wagner over 3 years ago
the problem is: there might be other clusters. we have to make sure, no cluster is left. Only then we can remove the ceph.target
Updated by Sebastian Wagner over 3 years ago
- Subject changed from Systemd Ceph target not deleted after removing cluster to Systemd ceph.target not deleted after removing cluster
- Priority changed from Low to Normal
Updated by Sebastian Wagner over 2 years ago
- Related to Bug #53010: cehpadm rm-cluster does not clean up /var/run/ceph added
Updated by Sebastian Wagner over 2 years ago
- Subject changed from Systemd ceph.target not deleted after removing cluster to cephadm rm-cluster: Systemd ceph.target not deleted
Updated by Redouane Kachach Elhichou about 2 years ago
- Assignee set to Redouane Kachach Elhichou
Updated by Redouane Kachach Elhichou about 2 years ago
- Status changed from New to In Progress
Updated by Redouane Kachach Elhichou about 2 years ago
- Status changed from In Progress to Fix Under Review
Updated by Redouane Kachach Elhichou about 2 years ago
Fixed by PR: https://github.com/ceph/ceph/pull/45054
Updated by Redouane Kachach Elhichou about 2 years ago
- Status changed from Fix Under Review to Resolved
Updated by Redouane Kachach Elhichou about 2 years ago
Backported to pacific by PR: https://github.com/ceph/ceph/pull/45228
Updated by Redouane Kachach Elhichou about 2 years ago
- Pull request ID set to 45054