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 |
|
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.