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.