Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-17 Thread Konstantin Shalygin
On 02/18/2018 09:20 AM, Sergey Malinin wrote: All I got with script replacement is the following: Oooh. Try something earlier, without this function https://github.com/ceph/ceph/blob/1adf4325455ccdbf03da63046c510bb041ac8520/src/pybind/mgr/prometheus/module.py To be clear: prometheus

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-17 Thread Sergey Malinin
All I got with script replacement is the following: 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

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread Ansgar Jazdzewski
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 : > On Fri, Feb 16, 2018 at 09:27:08AM

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread Ansgar Jazdzewski
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

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread John Spray
On Fri, Feb 16, 2018 at 8:27 AM, 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

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread Ansgar Jazdzewski
tanks i will have a look into it -- Ansgar 2018-02-16 10:10 GMT+01:00 Konstantin Shalygin : >> i just try to get the prometheus plugin up and runing > > > > Use module from master. > > From this commit should work with 12.2.2, just wget it and replace stock > module. > >

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread Jan Fajerski
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.

Re: [ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread Konstantin Shalygin
i just try to get the prometheus plugin up and runing Use module from master. From this commit should work with 12.2.2, just wget it and replace stock module. https://github.com/ceph/ceph/blob/d431de74def1b8889ad568ab99436362833d063e/src/pybind/mgr/prometheus/module.py k

[ceph-users] Ceph-mgr Python error with prometheus plugin

2018-02-16 Thread Ansgar Jazdzewski
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