Werk #17883: redfish_drives: Handle missing value due to drive failure

Component Checks & agents
Title redfish_drives: Handle missing value due to drive failure
Date May 5, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Drives that experience failure may report certain values as null via the Redfish API. If the reported capacity is affected, this led to a crash in the "Drive" service:

TypeError (unsupported operand type(s) for /: 'NoneType' and 'int')

Now the null capacity values are treated the same as completely missing capacity: The reported drive size is 0GB.

To the list of all Werks