Project

General

Profile

Actions

Bug #53538

closed

mgr/stats: ZeroDivisionError

Added by Sebastian Wagner over 2 years ago. Updated 5 months ago.

Status:
Resolved
Priority:
Urgent
Category:
-
Target version:
-
% Done:

100%

Source:
Tags:
low-hanging-fruit backport_processed
Backport:
pacific,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

root@service-01-08020:~# ceph osd status storage-01-08002
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1623, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 416, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/status/module.py", line 338, in handle_osd_status
    wr_ops_rate = (self.get_rate("osd", osd_id.__str__(), "osd.op_w") +
  File "/usr/share/ceph/mgr/status/module.py", line 28, in get_rate
    return (data[-1][1] - data[-2][1]) // int(data[-1][0] - data[-2][0])
ZeroDivisionError: integer division or modulo by zero

Since those PRs:

no one had the patience to look into this all over again.


Related issues 4 (0 open4 closed)

Related to mgr - Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.pyResolvedStephan Müller

Actions
Has duplicate mgr - Bug #54213: ceph osd status - ZeroDivisionError: integer division or modulo by zeroDuplicate

Actions
Copied to mgr - Backport #54281: pacific: mgr/stats: ZeroDivisionErrorResolvedNitzan MordechaiActions
Copied to mgr - Backport #54282: quincy: mgr/stats: ZeroDivisionErrorResolvedNitzan MordechaiActions
Actions

Also available in: Atom PDF