Commit Graph

18 Commits

Author SHA1 Message Date
Sharpz7 a7f9492372 [codespell] Fixing Spelling Mistakes
This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent.

Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: I305a44beb929495f4b67a5e94b0387647814db1e
2024-01-26 05:06:25 +00:00
Julia Kreger 3c49a85c5f Add a boot progress indicator
Add the indicator for boot progress, as mapped to the System
``BootProgress`` field and subvalues, which allows for API
consumers to determine the current status.

Related-Bug: #2041902
Change-Id: Icaf8d1ba1a46ab5ffbf8a98fc7eff020fdcecfa5
2023-11-22 06:26:59 -08:00
Dmitry Tantsur 519e54b1e9 Migrate System constants to enums
Change-Id: I7159f6f4c998d9a7de085b07aedd0313ea1b1e12
2021-11-18 15:40:41 +01:00
Jacob Anders f7c873fe4a Changing boot device string for vmedia on SuperMicro
On SuperMicro machines (e.g. X11 and X12 models) the device name string
for CD based virtual media is "UsbCd" as opposed to "CD" used by other
vendors.

This change adjust the boot device target string to "UsbCd" if a
SuperMicro machine is detected

Story: 2009663
Task: 43913
Change-Id: I384baf5c27a531be0c4b78e11e1214d6371fa8be
2021-11-18 19:58:19 +10:00
Dmitry Tantsur 559e3ed4c4 Migrate common constants to enums
The new enums are generated by a new script that reads the DMTF
definitions and produced Python code in stdout. Missing items
and docstrings are added because of that.

The change migrates everything from sushy.resources.constants except for
ProtocolType, which has to be untangled from other protocol-related
enums.

This change also misses a release note. The intention is to create one
final release note before the next release.

Change-Id: I863fad54a9703c88aa92993ad0d48d18c50e492a
2021-10-27 11:09:56 +02:00
Dmitry Tantsur 4abea1879f Initial support for secure boot databases
Change-Id: Id35d5b3c1d09718d05f6b2e470412d76d60b5198
2021-02-01 15:03:42 +01:00
Dmitry Tantsur 5425c005e2 Secure boot support: enabling/disabling and resetting keys
Story: #2008270
Task: #41582
Change-Id: I72f8103fe9bb4613ef8c53a3ff08a710dc96c12d
2021-01-13 16:41:39 +01:00
Ilya Etingof f2cf60f3ce Deprecate System-specific `IndicatorLED` state constants
Change-Id: Ib4ccad20dc49e0b33a1d2b1ea24b6c8f989222a3
Story: 2005342
Task: 30290
2019-04-15 18:00:05 +02:00
Varsha e348ac8dd5 Add mappings for `system_type`
Create mappings for the system_type of the System resource.
This represents the type of the computer system.

Story: #2005160
Task: #29880

Change-Id: Icf688752791c21c8652e7fc64478ef0307682f1e
2019-03-16 00:35:11 +05:30
Zuul 3ac4cbd42d Merge "Unify sushy models by Redfish schema bundle" 2018-12-12 10:54:45 +00:00
Gabriela Soria c5d13e4385 Add `ChassisCollection` and `Chassis` classes
Add representation of Chassis and ChassisCollection resources.
The Chassis is used to represent a chassis or other physical enclosure
as a Redfish resource.

Also adds the methods get_chassis_collection and get_chassis in the
public API.

Implements: ChassisCollection and Chassis classes
Story: #2003853
Task: #26647

Change-Id: I59083562ff2ab3b18bfeebdabc0f4cfd663d01bb
2018-12-04 01:15:24 -08:00
dnuka 3c7a281422 Unify sushy models by Redfish schema bundle
In the course of sushy library development, we seem to model resources
using the most current schemas at the time. Sometimes DMTF releases
schema bundles that ties all the most recent schemas together thus
ensuring their interoperability.

These changes introduce and update currently implemented sushy models
to comply with the most recent schema bundle[1].
[1]https://www.dmtf.org/documents/redfish-spmf/redfish-schema-bundle-20181

Story: #2004050
Task: #27056

Change-Id: I479bc18f79c6c51644115671ef68a879a94d102e
2018-11-21 11:18:31 +05:30
Debayan Ray d44059483c Add system simple storage resource support
Adds the simple storage resource of Redfish standard schema.
This new resource represents the properties of a storage
controller and its directly-attached devices. This patch
introduces the property ``max_size_bytes`` of
SimpleStorageCollection resource to expose the size of the
largest storage size available among all directly attached
devices available to the System.

Also brought in the common 'Status' (comprising of Health,
HealthRollup and State sub-fields) field and refactored the code
base to use that field across all the Redfish resources.

Story: 1668487
Task: 23041

Change-Id: I512c2507bf78f4a9cf1e2525fd685836387a7581
2018-07-19 07:43:31 +00:00
Nate Potter 0b9497dfa6 Create mappings for System Indicator LED
Add mappings and constants for the Indicator LED
value in the System class.

Change-Id: I5ecad5d81a6ca1487fab2002d2bc8b57736ab4ef
2018-05-11 14:59:36 +00:00
Nisha Agarwal 2f746cbdad Follow-up patch for 8fe2904a62
This addresses the nit comments left over
from the parent patch 8fe2904a62.
Adds the missing test case from the parent patch.

Change-Id: Ic60235834284302331e29122417d6490a3207bf8
2017-11-23 21:19:24 -08:00
Nisha Agarwal 8fe2904a62 Adds EthernetInterface to the library
This commit adds the EthernetInterface to the library.
This returns the MAC addresses and its status as a dictionary to
its caller.

This has been tested on HPE Redfish hardware.

Change-Id: If57184d71d244cdc6f04d3f66d56c374d4336d24
2017-10-06 00:41:11 -07:00
Debayan Ray 18febd060f Add System Processor/Memory info
This patch adds 2 new attributes to System:

  memory_summary: <type: namedtuple>
    The memory of the system in general detail. It is a
    namedtuple containing the following:

      `size_gib`: The size of memory of the system in GiB
      `health`: The overall health state of memory.

  processor_summary: <type: namedtuple>
    The processors of the system in general detail. It is a
    namedtuple containing the following:

      `count`: The number of processors in the system. To be
               precise, it is number of logical CPUs (threads).
      `architecture`: The architecture of the processor/s.

This processor and memory information will be directly consumed
by ironic inspection.

Change-Id: I19acd74e26a861147df747f3d3f34852decf5403
2017-05-10 07:38:22 -04:00
Lucas Alvares Gomes bb9f4ada4f Initial commit 2017-02-13 22:04:23 +00:00