[zabbix plugin] typo in ceph check script

Bug #1661505 reported by Michael Kraynov on 2017-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
High
Olivier Bourdon

Bug Description

Zabbix check script (/etc/zabbix/scripts/ceph.py) has a typo in it causing it to crash with a "ERROR:root:'module' object is not callable" in /var/log/zabbix/sender.log on the controller nodes if a certain piece of code in the script is invoked.

diff /etc/zabbix/scripts/ceph.py /etc/zabbix/scripts/ceph.py.orig
102c102
< self.logger.warning("PG state not known {}".format(s))
---
> self.logger.warnings("PG state not known {}".format(s))

Also, one more PG state ("deep") is missing in the list. The correct list is:

pg_states = {
            'creating': 0,
            'active': 0,
            'clean': 0,
            'down': 0,
            'replay': 0,
            'splitting': 0,
            'scrubbing': 0,
            'deep': 0,
            'degraded': 0,
            'inconsistent': 0,
            'peering': 0,
            'repair': 0,
            'recovering': 0,
            'backfill': 0,
            'waitbackfill': 0,
            'backfilltoofull': 0,
            'incomplete': 0,
            'stale': 0,
            'remapped': 0,
            'undersized': 0,
            'peered': 0,
        }

Changed in fuel:
assignee: nobody → Fuel Plugin Zabbix (fuel-plugin-zabbix)
importance: Undecided → High
Changed in fuel:
assignee: Fuel Plugin Zabbix (fuel-plugin-zabbix) → Olivier Bourdon (olivierbourdon38)
status: New → In Progress
Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers