On Fri, Feb 16, 2018 at 09:27:08AM +0100, Ansgar Jazdzewski wrote:
Hi Folks,

i just try to get the prometheus plugin up and runing but as soon as i
browse /metrics i got:

500 Internal Server Error
The server encountered an unexpected condition which prevented it from
fulfilling the request.

Traceback (most recent call last):
 File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line
670, in respond
   response.body = self.handler()
 File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py",
line 217, in __call__
   self.body = self.oldhandler(*args, **kwargs)
 File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py",
line 61, in __call__
   return self.callable(*self.args, **self.kwargs)
 File "/usr/lib/ceph/mgr/prometheus/module.py", line 386, in metrics
   metrics = global_instance().collect()
 File "/usr/lib/ceph/mgr/prometheus/module.py", line 323, in collect
   self.get_metadata_and_osd_status()
 File "/usr/lib/ceph/mgr/prometheus/module.py", line 283, in
get_metadata_and_osd_status
   dev_class['class'],
KeyError: 'class'
This error is part of the osd metadata metric. Which version of Ceph are you running this with? Specifically the Crush Map of this cluster seems to not have the device class for each OSD yet.

I assume that i have to change the mkgr cephx kex? but iam not 100% sure

mgr.mgr01
      key: AQAqLIRasocnChAAbOIEMKVEWWHCbgVeEctwng==
      caps: [mds] allow *
      caps: [mon] allow profile mgr
      caps: [osd] allow *

thanks for your help,
Ansgar
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


--
Jan Fajerski
Engineer Enterprise Storage
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to