Re: ZeroDivisionError when running ceph osd status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 12, 2019 at 1:52 AM Benjamin Tayehanpour
<benjamin.tayehanpour@polarbear.partners> wrote:
>
> Greetings!
>
> I had an OSD down, so I ran ceph osd status and got this:
>
> [root@ceph1 ~]# ceph osd status
> Error EINVAL: Traceback (most recent call last):
>   File "/usr/lib64/ceph/mgr/status/module.py", line 313, in handle_command
>     return self.handle_osd_status(cmd)
>   File "/usr/lib64/ceph/mgr/status/module.py", line 297, in
> handle_osd_status
>     self.format_dimless(self.get_rate("osd", osd_id.__str__(), "osd.op_w") +
>   File "/usr/lib64/ceph/mgr/status/module.py", line 113, in get_rate
>     return (data[-1][1] - data[-2][1]) / float(data[-1][0] - data[-2][0])
> ZeroDivisionError: float division by zero
> [root@ceph1 ~]#
>
> I could still figure out which OSD it was with systemctl, put I had to
> purge the OSD before ceph osd status would run again. Is this normal
> behaviour?

No. Looks like this was fixed recently in master by
https://tracker.ceph.com/projects/ceph/repository/revisions/0164c399f3c22edce6488cd28e5b172b68ca1239/diff/src/pybind/mgr/status/module.py

>
> Cordially yours,
> Benjamin
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



-- 
Cheers,
Brad
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux