Project

General

Profile

Bug #21707

"osd status" command exception if OSD not in pgmap stats

Added by John Spray over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/06/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

[ceph-users] "ceph osd status" fails

When I try to run the command "ceph osd status" on my cluster, I just get an error. Luckily unlike the last issue I had with ceph fs commands it doesn't seem to be crashing any of the daemons.

root@vm-ds-01:/var/log/ceph# ceph osd status
Error EINVAL: Traceback (most recent call last):
  File "/usr/lib/ceph/mgr/status/module.py", line 293, in handle_command
    return self.handle_osd_status(cmd)
  File "/usr/lib/ceph/mgr/status/module.py", line 273, in handle_osd_status
    stats = osd_stats[osd_id]
KeyError: (78L,)

Related issues

Copied to mgr - Backport #22216: luminous: "osd status" command exception if OSD not in pgmap stats Resolved

History

#2 Updated by John Spray over 1 year ago

  • Status changed from New to Need Review

#3 Updated by John Spray over 1 year ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler over 1 year ago

  • Backport set to luminous

#5 Updated by Nathan Cutler over 1 year ago

  • Copied to Backport #22216: luminous: "osd status" command exception if OSD not in pgmap stats added

#6 Updated by John Spray about 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF