[ceph-users] ceph-mgr bug - zabbix module division by zero

Wido den Hollander wido at 42on.com
Tue Nov 7 23:12:10 PST 2017


> Op 7 november 2017 om 18:27 schreef Brady Deetz <bdeetz at gmail.com>:
> 
> 
> I'm guessing this is not expected behavior
> 

It's not indeed.

Two PRs for this are out there:

- https://github.com/ceph/ceph/pull/18734
- https://github.com/ceph/ceph/pull/18515

Where the last one is the one you are seeing.

It's on the radar!

Wido

> 
> $ ceph zabbix send
> Error EINVAL: Traceback (most recent call last):
>   File "/usr/lib64/ceph/mgr/zabbix/module.py", line 234, in handle_command
>     self.send()
>   File "/usr/lib64/ceph/mgr/zabbix/module.py", line 206, in send
>     data = self.get_data()
>   File "/usr/lib64/ceph/mgr/zabbix/module.py", line 174, in get_data
>     osd_fill.append((float(osd['kb_used']) / float(osd['kb'])) * 100)
> ZeroDivisionError: float division by zero
> 
> 
> $rpm -qa |grep ceph
> ceph-mon-12.2.1-0.el7.x86_64
> ceph-12.2.1-0.el7.x86_64
> libcephfs2-12.2.1-0.el7.x86_64
> python-cephfs-12.2.1-0.el7.x86_64
> ceph-base-12.2.1-0.el7.x86_64
> ceph-common-12.2.1-0.el7.x86_64
> ceph-osd-12.2.1-0.el7.x86_64
> ceph-radosgw-12.2.1-0.el7.x86_64
> ceph-deploy-1.5.39-0.noarch
> ceph-selinux-12.2.1-0.el7.x86_64
> ceph-mgr-12.2.1-0.el7.x86_64
> ceph-release-1-1.el7.noarch
> ceph-mds-12.2.1-0.el7.x86_64
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


More information about the ceph-users mailing list