Project

General

Profile

Actions

Bug #43224

closed

ceph osd status error

Added by Alexander Kazansky over 4 years ago. Updated over 4 years ago.

Status:
Duplicate
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
% Done:

0%

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

Description

Hello.

I received error when try execute 'ceph osd status', it happens when cluster have some osd down.

# ceph osd status
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 914, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/status/module.py", line 253, in handle_command
    return self.handle_osd_status(cmd)
  File "/usr/share/ceph/mgr/status/module.py", line 237, in handle_osd_status
    mgr_util.format_dimless(self.get_rate("osd", osd_id.__str__(), "osd.op_w") +
  File "/usr/share/ceph/mgr/status/module.py", line 47, in get_rate
    return (data[-1][1] - data[-2][1]) / float(data[-1][0] - data[-2][0])
ZeroDivisionError: float division by zero

if all osd up, command executed normal.

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Brad Hubbard over 4 years ago

  • Project changed from Ceph to mgr
  • Category deleted (ceph cli)
Actions #2

Updated by Sage Weil over 4 years ago

  • Priority changed from Normal to Urgent
Actions #3

Updated by Neha Ojha over 4 years ago

  • Tags set to low-hanging-fruit
Actions #4

Updated by Stephan Müller over 4 years ago

This will be fixed with my PR (https://github.com/ceph/ceph/pull/28603) as soon it is merged.

Actions #5

Updated by Sebastian Wagner over 4 years ago

Note that https://github.com/ceph/ceph/pull/28603 fixes a copy of this code in the dashboard module. someone would need to adapt the code in the status module, too.

Actions #6

Updated by Nathan Cutler over 4 years ago

  • Related to Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py added
Actions #7

Updated by Sage Weil over 4 years ago

  • Pull request ID set to 28603
Actions #8

Updated by Nathan Cutler over 4 years ago

  • Related to deleted (Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py)
Actions #9

Updated by Nathan Cutler over 4 years ago

  • Is duplicate of Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py added
Actions #10

Updated by Nathan Cutler over 4 years ago

  • Status changed from New to Duplicate
Actions #11

Updated by Nathan Cutler over 4 years ago

  • Status changed from Duplicate to New
  • Pull request ID deleted (28603)

Sebastian wrote above: "Note that https://github.com/ceph/ceph/pull/28603 fixes a copy of this code in the dashboard module. someone would need to adapt the code in the status module, too."

which I take to mean that this issue is tracking the problem in the status module.

Actions #12

Updated by Nathan Cutler over 4 years ago

  • Is duplicate of deleted (Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py)
Actions #13

Updated by Nathan Cutler over 4 years ago

  • Related to Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py added
Actions #14

Updated by Stephan Müller over 4 years ago

  • Related to deleted (Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py)
Actions #15

Updated by Stephan Müller over 4 years ago

  • Is duplicate of Feature #40365: mgr: Add get_rates_from_data from the dashboard to the mgr_util.py added
Actions #16

Updated by Sage Weil over 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 28603
Actions #17

Updated by Sage Weil over 4 years ago

  • Status changed from Fix Under Review to Duplicate
Actions

Also available in: Atom PDF