check_megacli.py crashes when parsing output of `megacli`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hw-health-charm |
Fix Released
|
High
|
Alvaro Uria |
Bug Description
check_megacli.py crashes when parsing the contents of /var/lib/
/usr/local/
<function parse_output at 0x7fc36a0410d0> raised unknown exception '<class 'TypeError'>'
=======
Traceback (most recent call last):
File "/usr/local/
function(*args, **kwargs)
File "/usr/local/
for cnt in ('failed_ld', 'wrg_policy_ld') if vars()['cnt'] > 0
File "/usr/local/
for cnt in ('failed_ld', 'wrg_policy_ld') if vars()['cnt'] > 0
TypeError: unorderable types: str() > int()
=======
This error was triggered when a physical disk died.
Related branches
- Jeremy Lounder (community): Approve
- Nagios Charm developers: Pending requested
-
Diff: 331 lines (+292/-1)4 files modifiedsrc/files/megacli/check_megacli.py (+1/-1)
src/tests/hw-health-samples/megacli.output.nrpe.critical.1 (+135/-0)
src/tests/hw-health-samples/megacli.output.nrpe.critical.2 (+135/-0)
src/tests/unit/test_check_megacli.py (+21/-0)
Changed in hw-health-charm: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Alvaro Uria (aluria) |
Fix released at cs:~nagios- charmers/ hw-health- 15