hi,
wihle i added the "class" to all my OSD's the ceph-mgr crashed :-( but
the prometheus plugin works now
for i in {1..9}; do ceph osd crush set-device-class hdd osd.$i; done
Thanks,
Ansgar
2018-02-16 10:12 GMT+01:00 Jan Fajerski <[email protected]>:
> 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
>> [email protected]
>> 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
> [email protected]
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com