Actions
Bug #43224
closedceph osd status error
% Done:
0%
Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
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.
Updated by Brad Hubbard over 4 years ago
- Project changed from Ceph to mgr
- Category deleted (
ceph cli)
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.
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.
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
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)
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
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.
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)
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
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)
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
Updated by Sage Weil over 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 28603
Updated by Sage Weil over 4 years ago
- Status changed from Fix Under Review to Duplicate
Actions