Project

General

Profile

Bug #20276

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

Added by Chang Liu about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/13/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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'

History

#2 Updated by Kefu Chai about 1 month ago

  • Status changed from New to Resolved

#3 Updated by Greg Farnum about 1 month ago

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

Also available in: Atom PDF