Define idrac Hardware Type Support of Redfish Interfaces¶
https://storyboard.openstack.org/#!/story/2004592
Operators need the ability to configure Ironic to use Redfish to manage Dell EMC bare metal servers, and be assured it:
offers a means of incrementally increasing the use of Redfish as Ironic’s support, the standard, and Dell EMC service implementations evolve,
delivers management protocol choice among those supported by Dell EMC – Intelligent Platform Management Interface (IPMI), Redfish, and Web Services Management (WS-Man),
provides all the
idrachardware type functionality they have relied on,works and will continue to,
is supported by the vendor and community, and
can offer Dell EMC value added.
This specification suggests the idrac hardware type provides that.
Problem description¶
Use cases¶
Expanding on what the introductory paragraph describes above, several use cases can be envisioned. While this specification enables them, it may turn out only some will find practical use among operators. That could be driven by many factors, including an existing versus greenfield deployment, operator comfort level with Redfish versus WS-Man, maturity of the protocol implementations, availability of needed functionality across Redfish and WS-Man, requirement for vendor value added, operational plans and schedules, among others.
Here they are. Note that except for the first two, they can be used in combination to configure a single Dell EMC bare metal server.
An Admin User has a Dell EMC bare metal server and uses only WS-Man to manage it.
An Admin User has a Dell EMC bare metal server and uses only Redfish to manage it.
An Admin User has a Dell EMC bare metal server and uses both Redfish and WS-Man to manage it. When both offer the needed functionality, either is used.
An Admin User has a Dell EMC bare metal server and uses both Redfish and WS-Man to manage it. Ironic’s ability to manage the server is maximized.
An Admin User has a Dell EMC bare metal server and uses both Redfish and WS-Man to manage it. Vendor value added, which is available from only one or both, is used.
Proposed change¶
Background¶
The idrac hardware type is the Ironic driver intended for use with Dell EMC
bare metal servers equipped with an integrated Dell Remote Access Controller
(iDRAC) baseboard management controller (BMC). To date, all the out-of-band
(OOB) management protocol-dependent interface implementations idrac has
supported use the WS-Man protocol to interact with the iDRAC. Those implement
the inspect, management, power, raid, and vendor hardware
interfaces. Like the hardware type, they are named idrac. They rely on
python-dracclient’s WS-Man client.
Operators also have the option to use the generic, vendor-independent
redfish hardware type with Dell EMC bare metal servers that have an iDRAC
that supports the Redfish protocol. redfish’s supported OOB
protocol-dependent interface implementations use the Redfish protocol to
interact with
the BMC. Those implement the bios, inspect, management, and
power hardware interfaces. Again, like the hardware type, they are named
redfish. They rely on sushy’s Redfish client. Importantly, while some
of those work with the iDRAC, including management and power, not all
of them do.
The redfish hardware type enables managing servers compliant with the
Redfish protocol. However, it is relatively new, and the protocol standard has
been evolving, along with its implementations by hardware vendors such as Dell
EMC. As is common among standards, there is a difference between compliance and
interoperability. For example, the Redfish bios interface implementation
has not worked with the iDRAC because of client and server protocol
implementation incompatibility.
While there is much functional overlap between the interface implementations
supported by the idrac and redfish hardware types, it is not complete.
Only idrac supports a raid interface implementation and only
redfish supports bios. Also, the optional hardware interface
functionality available in the idrac and redfish interface
implementations can differ. For example, while the redfish implementation
of the management hardware interface first introduced optional boot mode
functionality, idrac does not offer that, yet. Therefore, those two
hardware types are not perfect substitutes for one another.
Dell EMC wants to be able to offer its customers vendor value added as supported by the Redfish standard, like it has done through WS-Man. That benefits operators by making available features and functionality that has not yet been standardized. Dell EMC can be more responsive to its customers’ needs and differentiate itself in the market.
Goal¶
With this specification, we are going to achieve the goal of promoting and accelerating the adoption of Redfish by operators with Dell EMC bare metal servers.
Non-goals¶
The following is considered outside the scope of this specification:
Support a node configuration with a mix of Redfish and WS-Man
managementandpowerinterface implementations. The legacyidracimplementations of themanagementandpowerhardware interfaces interact to set the boot device. It is not clear there is a compelling need to accommodate that in a mixed Redfish and WS-Man configuration.The following TripleO command can be used to register and configure nodes for their deployment with Ironic:
openstack overcloud node import instackenv.json
See the TripleO register nodes documentation. It sets properties in a node’s
driver_infofield which are required by its driver. Presently, when the node’s driver isidrac, those are the properties –drac_address,drac_username, anddrac_password– needed by the WS-Man interface implementationsidrachas supported. See the iDRAC driver documentation.The Redfish interface implementations need similar, but different, properties in the
driver_infofield, includingredfish_address,redfish_system_id,redfish_username, andredfish_password. See the Redfish driver documentation.Changing that TripleO command to set both the Redfish and WS-Man properties in a node’s
driver_infofield when itsdriverisidracis beyond the scope of this specification. That will be addressed by a TripleO project blueprint.Define
idrachardware type support of IPMI interface implementations. That could be done as a follow-on to this.
Solution¶
This specification proposes to solve the problem it describes by changing the
idrac hardware type. Since the Ironic Driver composition reform, we have
been allowed to have “one vendor driver with options configurable per node
instead of many drivers for every vendor.” [1] The reform’s goals include
[2]:
* Make vendors in charge of defining a set of supported interface
implementations in priority order
* Allow vendors to guarantee that unsupported interface implementations will
not be used with hardware types they define. This is done by having a
hardware type list all interfaces it supports.
Implementing the solution in the idrac hardware type contributes toward
making it the one Dell EMC driver for its bare metal servers with iDRACs and
their value added implementations of the IPMI, Redfish, and WS-Man management
protocols. It also aligns with the goals of the reform. That is what operators
have come to expect.
Here are the details of the proposal.
Define two new groups of interface implementations with entrypoints named
idrac-redfishandidrac-wsman. Theidrac-redfishentrypoints refer to Redfish interface implementations which are compatible with the iDRAC, presently those of themanagementandpowerhardware interfaces. Theidrac-wsmanentrypoints are new names for the legacyidracentrypoints. The legacyidracentrypoints are left unchanged. For example:ironic.hardware.interfaces.management = ... idrac = ironic.drivers.modules.drac.management:DracManagement idrac-redfish = ironic.drivers.modules.drac.management:DracRedfishManagement idrac-wsman = ironic.drivers.modules.drac.management:DracWSManManagement ... redfish = ironic.drivers.modules.redfish.management:RedfishManagement
Declare
idrachardware type support for theidrac,idrac-redfish, andidrac-wsmaninterface implementations.idraccontinues to have the highest priority by being first in itssupported_<INTERFACE>_interfaceslists. Here<INTERFACE>is a type of hardware interface:inspect,management,power, etc. For example:class IDRACHardware(generic.GenericHardware): ... @property def supported_management_interfaces(self): return [management.DracManagement, management.DracWSManManagement, management.DracRedfishManagement] ...
Note
The property uses classes, not instances nor entrypoint names. The example assumes the required modules are imported.
New
idrac-redfishentrypoints are defined by new Python classes, because using the generic, vendor-independent Redfish classes would make theredfishentrypoints synonyms foridrac-redfishand supported. A later requirement to change the name of an entrypoint’s Python class to resolve a Dell EMC-specific incompatibility or introduce vendor value added, which would eliminate support forredfish, could be a breaking change. The new Python classes are derived from the generic, vendor-independent Redfish classes.New
idrac-wsmanentrypoints are defined by new Python classes. Those classes are created by renaming the classes for the legacyidracentrypoints fromDrac<INTERFACE>toDracWSMan<INTERFACE>. Here<INTERFACE>refers to a type of hardware interface:Inspect,Management,Power, etc.The legacy
Drac<INTERFACE>classes are redefined by simply deriving them from the newDracWSMan<INTERFACE>classes. For example:class DracManagement(DracWSManManagement): pass
That makes the legacy
Drac<INTERFACE>classes aliases for the newDracWSMan<INTERFACE>classes. Any bug fixes or features added to the WS-Man interface implementations are available from both theidracandidrac-wsmanentrypoints. Having separate classes for the two groups of entrypoints makes it possible to subsequently add logic that implements deprecation of the legacyidracentrypoints by emitting a log message and similar.
Alternatives¶
We could change the lowest layer of
python-dracclientto support Redfish, in addition to WS-Man. However, we expect it would be challenging to providepython-dracclientAPIs and workflows which abstract the very different Redfish and WS-Man technologies. Redfish’s interface is RESTful, while WS-Man is a Simple Object Access Protocol (SOAP). APIs and workflows would likely need to be changed or newly defined. That would require substantial modification of the existingidracinterface implementations.We could maintain the status quo split of the
idrachardware type for WS-Man andredfishhardware type for Redfish. However, that would not promote and accelerate the use of Redfish among operators with Dell EMC bare metal servers today, becauseredfishdoes not offer everythingidracdoes. That also would not support resolving Dell EMC vendor-specific incompatibilities with the generic, vendor-independentredfishhardware type nor using Redfish to introduce vendor value added.We could let the
redfishinterface implementations use Redfish OEM extensions to address vendor-specific incompatibilities and introduce vendor value added. However, that seems inconsistent with the intent that they be generic and vendor-independent.
Data model impact¶
None
State Machine Impact¶
None
REST API impact¶
None
Client (CLI) impact¶
“ironic” CLI¶
None
“openstack baremetal” CLI¶
None
RPC API impact¶
None
Driver API impact¶
None
Nova driver impact¶
None
Ramdisk impact¶
None
Security impact¶
None
Other end user impact¶
None
Scalability impact¶
None
Performance Impact¶
None
Other deployer impact¶
A deployer can add
idrac-redfishto theenabled_management_interfacesandenabled_power_interfacesoptions to enable those new interface implementations.A deployer can add
idrac-wsmanto theenabled_inspect_interfaces,enabled_management_interfaces,enabled_power_interfaces,enabled_raid_interfaces, andenabled_vendor_interfacesto enable those new interface implementations.A deployer must specify properties in the node’s
driver_infofield that are needed by Redfish interface implementations, includingredfish_address,redfish_system_id,redfish_username, andredfish_password, to use theidrac-redfishinterface implementations. That is in addition to the legacy properties theidrachardware type has needed indriver_info–drac_address,drac_username, anddrac_password.openstack baremetal node create --driver idrac --driver-info \ drac_address=1.2.3.4 --driver-info drac_username=admin --driver-info \ drac_password=password --driver_info redfish_address=https://1.2.3.4 \ --driver-info redfish_system_id=/redfish/v1/Systems/System.Embedded.1 \ --driver-info redfish_username=admin --driver-info \ redfish_password=password
See the Redfish driver documentation, iDRAC driver documentation, and Non-goals.
A deployer can specify the new
idrac-redfishandidrac-wsmaninterface implementations on node enrollment:openstack baremetal node create --driver idrac ... --management-interface \ idrac-wsman --power-interface idrac-wsman ...
They can also be set by the following command:
openstack baremetal node set <NODE> --management-interface idrac-redfish \ --power-interface idrac-redfish
They must be enabled as described above.
Developer impact¶
None
Implementation¶
Assignee(s)¶
- Primary assignee:
rpioso
- Other contributors:
None
Work Items¶
Define two new groups of interface implementations with entrypoints named
idrac-redfishandidrac-wsman.Declare
idrachardware type support for theidrac,idrac-redfish, andidrac-wsmaninterface implementations.Integration test the changes against Dell EMC bare metal servers.
Modify the Dell EMC Ironic third-party continuous integration (CI) to cover supported configurations added by this specification.
Update the iDRAC driver documentation.
Dependencies¶
This specification is related to the Driver composition reform.
It specifically targets Dell EMC bare metal servers equipped with an iDRAC and
managed by the idrac hardware type.
Testing¶
This is not testable in the gate given current limitations on the availability of the specific hardware required.
The mitigation plan is to add coverage to the Dell EMC Ironic third-party CI for supported configurations added by this specification that we expect to be common.
Upgrades and Backwards Compatibility¶
This change is designed to be backwards compatible. The legacy idrac
interface implementation entrypoints will be supported for at least some time.
A separate story will cover their deprecation.
We will recommend switching to the appropriate new idrac-redfish and
idrac-wsman interface implementation entrypoints as soon as it is possible.
Documentation Impact¶
The iDRAC driver documentation is updated to:
describe switching from the legacy
idracinterface implementation entrypoints to the newidrac-redfishandidrac-wsmanentrypoints,reflect the changes to the supported interface implementations, and
inform that a node configuration with a mix of Redfish and WS-Man
managementandpowerinterface implementations is not supported.
References¶
- OpenStack software projects:
- Related Ironic specifications:
- Documentation:
- Standards:
Footnotes