Project

General

Profile

Bug #21707

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

Added by John Spray over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

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 5 years ago

  • Status changed from New to Fix Under Review

#3 Updated by John Spray about 5 years ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Nathan Cutler about 5 years ago

  • Backport set to luminous

#5 Updated by Nathan Cutler about 5 years ago

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

#6 Updated by John Spray about 5 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF