Project

General

Profile

Actions

Bug #21707

closed

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

Added by John Spray over 6 years ago. Updated about 6 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 1 (0 open1 closed)

Copied to mgr - Backport #22216: luminous: "osd status" command exception if OSD not in pgmap statsResolvedShinobu KinjoActions
Actions #2

Updated by John Spray over 6 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by John Spray over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Nathan Cutler over 6 years ago

  • Backport set to luminous
Actions #5

Updated by Nathan Cutler over 6 years ago

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

Updated by John Spray about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF