[ceph-users] "ceph osd status" fails

Richard Hesketh richard.hesketh at rd.bbc.co.uk
Fri Oct 6 09:01:26 PDT 2017

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 at 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,)

Example and relevant excerpt from the ceph-mgr log shown at https://gist.github.com/rjhesketh/378ec118e42289a2dd0b1dd2462aae92

Is this trying to poll stats for an OSD which doesn't exist and therefore breaking?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20171006/626c319e/attachment.sig>

More information about the ceph-users mailing list