Project

General

Profile

Fix #24126

ceph osd purge command error message improvement

Added by Jesse Williamson almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Low
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature:

Description

In response to the command "ceph osd purge 1 --yes-i-really-mean-it", we
get:
2018-05-10 15:18:03.444 7f29c0ae2700 2 mon.a@0(leader) e1
send_reply 0x556281707d40 0x5562818cdcc0 mon_command_ack([{"prefix": "osd
purge", "sure": "--yes-i-really-mean-it", "id": 0}]=-16 osd.1 is not
`down`.
v16) v1

...suggesting that the OSD process should me marked as down. However, "ceph osd purge"
actually requires the target process to not be running. It would be helpful if the
error message were revised to disambiguate this, perhaps something like "osd.1 (PID <pid>) is still running".

History

#1 Updated by John Spray almost 2 years ago

  • Project changed from Ceph to RADOS
  • Category deleted (ceph cli)

How are you seeing that ugly logfile style output? When I try it, it looks like this:

# ceph osd purge 4 --yes-i-really-mean-it
Error EBUSY: osd.4 is not `down`.

I agree that the message should be improved to suggest to the user that they should stop the daemon.

Also available in: Atom PDF