Project

General

Profile

Actions

Bug #20276

closed

dashboard raised TypeErorr: unsupported operand type(s) for -: 'str' and 'str'

Added by Chang Liu almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 221, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/liuchang/WorkSpace/ceph/src/pybind/mgr/dashboard/module.py", line 646, in index
    return self.health()
  File "/home/liuchang/WorkSpace/ceph/src/pybind/mgr/dashboard/module.py", line 573, in health
    content_data=json.dumps(self._health(), indent=2)
  File "/home/liuchang/WorkSpace/ceph/src/pybind/mgr/dashboard/module.py", line 620, in _health
    'rate': get_rate(stat_series),
  File "/home/liuchang/WorkSpace/ceph/src/pybind/mgr/dashboard/module.py", line 613, in get_rate
    return (series[0][1] - series[1][1]) / float(series[0][0] - series[1][0])
TypeError: unsupported operand type(s) for -: 'str' and 'str'

Actions #2

Updated by Kefu Chai almost 7 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Greg Farnum almost 7 years ago

  • Project changed from Ceph to mgr
  • Category deleted (110)
Actions

Also available in: Atom PDF