Hi,

I'm not sure if this have been solved since 12.2.4. The same code
occurs in a different file in Github https://github.com/ceph/ceph/blob/
50412f7e9c2691ec10132c8bf9310a05a40e9f9d/src/pybind/mgr/status/module.p
y
The ZeroDivisionError occurs when the dashboard is open, and there is a
network outage (link between 2 datacenters is broken). I'm not sure
about the behaviour of the actual UI in the dashboard at the same time.

Syslog trace:

ceph-mgr[1324]: [15/Apr/2018:09:47:12] HTTP Traceback (most recent call last):
ceph-mgr[1324]:   File 
"/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
ceph-mgr[1324]:     response.body = self.handler()
ceph-mgr[1324]:   File 
"/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in 
__call__
ceph-mgr[1324]:     self.body = self.oldhandler(*args, **kwargs)
ceph-mgr[1324]:   File 
"/usr/lib/python2.7/dist-packages/cherrypy/lib/jsontools.py", line 63, in 
json_handler
ceph-mgr[1324]:     value = cherrypy.serving.request._json_inner_handler(*args, 
**kwargs)
ceph-mgr[1324]:   File 
"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 61, in __call__
ceph-mgr[1324]:     return self.callable(*self.args, **self.kwargs)
ceph-mgr[1324]:   File "/usr/lib/ceph/mgr/dashboard/module.py", line 991, in 
list_data
ceph-mgr[1324]:     return self._osds_by_server()
ceph-mgr[1324]:   File "/usr/lib/ceph/mgr/dashboard/module.py", line 1040, in 
_osds_by_server
ceph-mgr[1324]:     osd_map.osds_by_id[osd_id])
ceph-mgr[1324]:   File "/usr/lib/ceph/mgr/dashboard/module.py", line 1007, in 
_osd_summary
ceph-mgr[1324]:     result['stats'][s.split(".")[1]] = 
global_instance().get_rate('osd', osd_spec, s)
ceph-mgr[1324]:   File "/usr/lib/ceph/mgr/dashboard/module.py", line 268, in 
get_rate
ceph-mgr[1324]:     return (data[-1][1] - data[-2][1]) / float(data[-1][0] - 
data[-2][0])
ceph-mgr[1324]: ZeroDivisionError: float division by zero

HTH,

-- 
Nicolas Huillard
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to