Project

General

Profile

Actions

Bug #54213

closed

ceph osd status - ZeroDivisionError: integer division or modulo by zero

Added by Vikhyat Umrao about 2 years ago. Updated about 2 years ago.

Status:
Duplicate
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

# ceph osd status

Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1697, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 433, 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

# ceph versions
{
    "mon": {
        "ceph version 17.0.0-10315-ga00e8b31 (a00e8b315af02865380634f8100dc7d18a18af4f) quincy (dev)": 3
    },
    "mgr": {
        "ceph version 17.0.0-10315-ga00e8b31 (a00e8b315af02865380634f8100dc7d18a18af4f) quincy (dev)": 2
    },
    "osd": {
        "ceph version 16.2.7-34.el8cp (70c4491bd537223bac6d19fdba941d452d4641c2) pacific (stable)": 681,
        "ceph version 17.0.0-10315-ga00e8b31 (a00e8b315af02865380634f8100dc7d18a18af4f) quincy (dev)": 490
    },
    "mds": {
        "ceph version 16.2.7-34.el8cp (70c4491bd537223bac6d19fdba941d452d4641c2) pacific (stable)": 2
    },
    "overall": {
        "ceph version 16.2.7-34.el8cp (70c4491bd537223bac6d19fdba941d452d4641c2) pacific (stable)": 683,
        "ceph version 17.0.0-10315-ga00e8b31 (a00e8b315af02865380634f8100dc7d18a18af4f) quincy (dev)": 495
    }
}


Related issues 1 (0 open1 closed)

Is duplicate of mgr - Bug #53538: mgr/stats: ZeroDivisionErrorResolvedNitzan Mordechai

Actions
Actions #1

Updated by Neha Ojha about 2 years ago

  • Status changed from New to Duplicate
Actions #2

Updated by Neha Ojha about 2 years ago

  • Is duplicate of Bug #53538: mgr/stats: ZeroDivisionError added
Actions

Also available in: Atom PDF