Project

General

Profile

Actions

Bug #46655

closed

cephadm rm-cluster: Systemd ceph.target not deleted

Added by Juan Miguel Olmo Martínez almost 4 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.


Related issues 1 (0 open1 closed)

Related to Orchestrator - Bug #53010: cehpadm rm-cluster does not clean up /var/run/cephResolvedRedouane Kachach Elhichou

Actions
Actions #1

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

Actions #2

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
Actions #3

Updated by Sebastian Wagner about 3 years ago

  • Tags set to low-hanging-fruit
Actions #4

Updated by Sebastian Wagner almost 3 years ago

  • Category set to cephadm (binary)
Actions #5

Updated by Sebastian Wagner over 2 years ago

  • Related to Bug #53010: cehpadm rm-cluster does not clean up /var/run/ceph added
Actions #6

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
Actions #7

Updated by Redouane Kachach Elhichou about 2 years ago

  • Assignee set to Redouane Kachach Elhichou
Actions #8

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from New to In Progress
Actions #9

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from In Progress to Fix Under Review
Actions #11

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from Fix Under Review to Resolved
Actions #13

Updated by Redouane Kachach Elhichou about 2 years ago

  • Pull request ID set to 45054
Actions

Also available in: Atom PDF