master
During inspection with the redfish interface, some out of band interfaces might report empty drive bays as having a null size. This breaks sushy's Storage.drives_sizes_bytes which uses sorted(), which internally uses the < operator, that raises type error when the values aren't numbers. We filter out empty drives to avoid this error. Closes-Bug: #2150858 Change-Id: I8c8893e2c54038b2c1dd7a0eddc10442a013e8e0 Signed-off-by: Bertrand Lanson <[email protected]>
Overview
Sushy is a Python library to communicate with Redfish based systems.
The goal of the library is to be extremely simple, small, have as few dependencies as possible and be very conservative when dealing with BMCs by issuing just enough requests to it (BMCs are very flaky).
Therefore, the scope of the library has been limited to what is supported by the OpenStack Ironic project. As the project grows and more features from Redfish are needed we can expand Sushy to fulfill those requirements.
- Free software: Apache license
- Includes Redfish registry files licensed under
-
Creative Commons Attribution 4.0 License: https://creativecommons.org/licenses/by/4.0/
- Documentation: https://docs.openstack.org/sushy/latest/
- Usage: https://docs.openstack.org/sushy/latest/reference/usage.html
- Source: https://opendev.org/openstack/sushy
- Bugs: https://bugs.launchpad.net/sushy
- Release Notes: https://docs.openstack.org/releasenotes/sushy/
Description
Languages
Python
100%