Re: Ceph-mgr Python error with prometheus plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



we upgraded the cluster from jewel to luminous

but the restart of the ceph osd service did not add the 'CLASS
(hdd/ssd)' on its own it it not exist so i had to add it on my own to
make it work.

should somhow mentiond in the upgrade process?

like:
for all osd make shure that the "class" it set in in the crushmap by
useing "ceph osd crush set-device-class hdd osd.<num>"

the versions on the stage cluster
# ceph versions
{
   "mon": {
       "ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba)
luminous (stable)": 3
   },
   "mgr": {
       "ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba)
luminous (stable)": 1
   },
   "osd": {
       "ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba)
luminous (stable)": 10
   },
   "mds": {
       "ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba)
luminous (stable)": 2
   },
   "rgw": {
       "ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba)
luminous (stable)": 3
   },
   "overall": {
       "ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba)
luminous (stable)": 19
   }
}


2018-02-16 12:09 GMT+01:00 John Spray <jspray@xxxxxxxxxx>:
> On Fri, Feb 16, 2018 at 8:27 AM, Ansgar Jazdzewski
> <a.jazdzewski@xxxxxxxxxxxxxx> 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'
>
> Looks a lot like you might be trying to run a >= luminous ceph-mgr
> with an older Ceph cluster?
>
> What versions are you running?
>
> John
>
>>
>> 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@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux