Sushy is a small Python library to communicate with Redfish based systems
Go to file
Richard Pioso 2f961fc3e5 SSC.disks_sizes_bytes handle CapacityBytes is None
In the open ocean, a Redfish service can return a SimpleStorage resource
containing a Device property with its CapacityBytes property set to
null. According to the Distributed Management Task Force (DMTF) schema
for SimpleStorage, the type of CapacityBytes can be either integer or
null [1].

The Dell integrated Dell Remote Access Controller (iDRAC) 9 running
Lifecycle Controller firmware version 3.30.30.30 returns that for a Dell
EMC PowerEdge R740xd containing a Dell HBA 330 12Gbps SAS Host Bus
Adapter Controller (non-RAID), MiniCard (HBA 330 Mini) [2]. The HBA 330
Mini firmware version is 16.17.00.03.

The same was observed against an R740xd running Lifecycle Controller
firmware version 3.34.34.34.

This changes the SimpleStorageCollection.disks_size_bytes property to
process only Disks with CapacityByes not set to None.

[1] https://redfish.dmtf.org/schemas/SimpleStorage.v1_2_3.json
[2] http://eavesdrop.openstack.org/irclogs/%23openstack-ironic/%23openstack-ironic.2019-12-11.log.html#t2019-12-11T07:24:17

Change-Id: I57a0074a7f6c4495e7c73a00c87675ea87fdb6e8
Story: 2006918
Task: 37567
(cherry picked from commit 9d01756833)
2020-01-09 13:47:35 -05:00
doc/source Build pdf doc 2019-09-05 17:23:31 +08:00
releasenotes SSC.disks_sizes_bytes handle CapacityBytes is None 2020-01-09 13:47:35 -05:00
sushy SSC.disks_sizes_bytes handle CapacityBytes is None 2020-01-09 13:47:35 -05:00
zuul.d Update Python 3 test runtimes for Train 2019-06-13 14:07:19 +08:00
.coveragerc Omit tests from code coverage run 2018-09-25 07:13:40 +00:00
.gitignore Switch to use stestr for unit test 2018-07-19 10:46:08 +07:00
.gitreview Update .gitreview for stable/train 2019-09-05 23:47:49 +00:00
.mailmap Initial commit 2017-02-13 22:04:23 +00:00
.stestr.conf Switch to use stestr for unit test 2018-07-19 10:46:08 +07:00
CONTRIBUTING.rst Update Launchpad references to Storyboard 2018-03-26 12:21:46 -07:00
HACKING.rst fix error url 2018-02-06 00:58:41 +08:00
LICENSE Initial commit 2017-02-13 22:04:23 +00:00
README.rst update git.openstack.org to opendev 2019-04-29 10:41:50 +08:00
babel.cfg Initial commit 2017-02-13 22:04:23 +00:00
lower-constraints.txt Build pdf doc 2019-09-05 17:23:31 +08:00
requirements.txt Add foundation for supporting Redfish OEMs 2019-02-26 11:08:30 +05:30
setup.cfg Change OEM extensions architecture 2019-08-28 15:44:24 +02:00
setup.py Updated from global requirements 2017-03-02 11:56:16 +00:00
test-requirements.txt Build pdf doc 2019-09-05 17:23:31 +08:00
tox.ini Update TOX/UPPER_CONSTRAINTS_FILE for stable/train 2019-09-05 23:47:52 +00:00

README.rst

About Sushy

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.