Do not crash on bogus ipmitool output

Description

We have a TrueNAS HA system that IT is using and the passive controller is experiencing hardware related issues. In the webUI, a traceback is being generated.

**Standby Controller - Unable to run alert source 'Sensors' Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/alert.py", line 469, in __run_source alerts = (await alert_source.check()) or [] File "/usr/local/lib/python3.6/site-packages/middlewared/alert/base.py", line 100, in check return await self.middleware.run_in_thread(self.check_sync) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1006, in run_in_thread return await self.loop.run_in_executor(executor, functools.partial(method, *args, **kwargs)) File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, *self.kwargs) File "/usr/local/lib/middlewared_truenas/alert/source/sensors.py", line 98, in check_sync for sensor in sensor_list(): File "/usr/local/lib/middlewared_truenas/alert/source/sensors.py", line 48, in sensor_list if fields[index] is None: IndexError: list index out of range*

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Vladimir Vinogradenko September 10, 2019 at 2:51 PM

Can't be tested by QA

Bug Clerk August 12, 2019 at 5:53 PM

Bug Clerk August 12, 2019 at 5:53 PM

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Support Ticket

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created August 12, 2019 at 2:37 PM
Updated July 1, 2022 at 4:34 PM
Resolved September 10, 2019 at 2:53 PM