Project

General

Profile

Actions

Bug #45976

closed

cephadm: prevent rm-daemon from removing legacy daemons

Added by Deepika Upadhyay almost 4 years ago. Updated almost 4 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

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

Description

cephadm displays daemon when none could be found at /var/lib/ceph/unknown/osd.0

[ideepika@vossi04 cephadm]$ sudo ./cephadm rm-daemon --name osd.0 --fsid unknown --force
Traceback (most recent call last):
  File "./cephadm", line 4655, in <module>
    r = args.func()
  File "./cephadm", line 3553, in command_rm_daemon
    os.path.join(backup_dir, dirname))
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ceph/unknown/osd.0' -> '/var/lib/ceph/unknown/removed/osd.0_2020-06-11T12:46:07.421158'

[ideepika@vossi04 cephadm]$ sudo ./cephadm ls
[
    {
        "style": "legacy",
        "name": "osd.0",
        "fsid": "unknown",
        "systemd_unit": "ceph-osd@0",
        "enabled": false,
        "state": "stopped",
        "host_version": null
    },

even on creating a dummy /var/lib/ceph/unknown/osd.0 cephadm didn't remove cluster(osd daemon)[ verified using sudo ./cephadm ls]


Related issues 2 (0 open2 closed)

Related to Orchestrator - Feature #45138: cephadm: remove legacy daemonsClosed

Actions
Is duplicate of Orchestrator - Bug #45999: cephadm shell: picking up legacy_dirResolvedMichael Fritch

Actions
Actions #1

Updated by Deepika Upadhyay almost 4 years ago

  • Project changed from Ceph to Orchestrator
  • Category changed from common to cephadm
Actions #2

Updated by Deepika Upadhyay almost 4 years ago

  • Description updated (diff)
Actions #3

Updated by Sebastian Wagner almost 4 years ago

  • Subject changed from cephadm: cannot remove daemon to cephadm: cannot remove legacy daemon
Actions #4

Updated by Sebastian Wagner almost 4 years ago

we should probably prevent legacy daemons from being removed altogether.

workarounds:

  • Either adopt to a cephadm based daemon and them remove it
  • remove the daemon the traditional (manual) way.
Actions #5

Updated by Sebastian Wagner almost 4 years ago

  • Subject changed from cephadm: cannot remove legacy daemon to cephadm: prevent rm-daemon from removing legacy daemons
Actions #6

Updated by Sebastian Wagner almost 4 years ago

Actions #7

Updated by Sebastian Wagner almost 4 years ago

  • Is duplicate of Bug #45999: cephadm shell: picking up legacy_dir added
Actions #8

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF