[Airship-discuss] RAID Config Implementation

Zainub Wahid zainub.wahid at xflowresearch.com
Tue May 25 16:50:15 UTC 2021


Hello everyone,

As discussed in today's meeting, this is related to the demo represented by
Noor, last year, related to performing RAID configurations in Airship via
Metal3 (and Ironic).
Add RAID to example hardwareprofile (I50c82ce5) · Gerrit Code Review (
opendev.org)

Through Airship, the user should be able to perform RAID configurations on
their hardware. The user can specify the RAID controller names and their
associated disks, along with the required RAID level, the desired number of
disks and the amount of storage required.
Here is the proposal for specifying the RAID configuration for a bare metal
host via Metal3:
https://github.com/metal3-io/metal3-docs/pull/148/files

In terms of the CRD, the current implementation of the RAID has the
following sections in it, for hardware RAID:
spec:
  raid:
    hardwareRAIDVolumes:
      - sizeGibiBytes: 1000
        level: 1
        name: volume-name
        rotational: true
        numberOfPhysicalDisks: 2
We propose to add fields into the CRD, in the following manner:
spec:
  raid:
    hardwareRAIDVolumes:
      - sizeGibiBytes: 1000
        level: 1
        name: volume-1
        rotational: true
        numberOfPhysicalDisks: 2
        physicalDisks:
          - diskName: Disk-1
          - diskName: Disk-2
        controller: primary-controller
      - sizeGibiBytes: 2000
        level: 0
        name: volume-2
        rotational: false
        numberOfPhysicalDisks: 2
        physicalDisks:
          - diskName: Disk-3
          - diskName: Disk-4
        controller: secondary-controller-2

However, it remains unclear how the user would have the in-depth knowledge
of the RAID controllers available to them, along with the vendor-specific
disk names.
Example disk names (Dell):
['Disk.Bay.0:Enclosure.Internal.0-1:RAID.Intergrated.1-1',
'Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1',
'Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1',...]
Example disk names (HP):
['2I:1:1', '2I:1:2', '2I:1:3',...]

Example RAID Controllers (Dell):
[‘Boss-F1 RAID Controller’, 'Dell PowerEdge RAID Controller H740P', ' Dell
PowerEdge RAID Controller H830',...]
Example RAID  controller (HP):
['HP Smart Array P400 Controller', 'HPE Smart Array E208i-a Controller',
'HPE Smart Array P816i-a Controller',...]

One possible solution is to let the user specify the required RAID level,
number of disks and storage capacity needed. Metal3 could then validate
this request using the Ironic drivers (e.g. Redfish driver, iDRAC driver
etc.) in order to ensure the required hardware is available in the cluster.
If it is available, the RAID configuration can be applied. Ifnot, the user
can be informed about the error.

Another solution is that Airship can perform inventory of the storage
subsystems available in the cluster, and so the user can construct a RAID
configuration accordingly. Conversely, the logic to select the physical
disks and associated controllers may be implemented in Airship, whilst the
user just specifies the high level requirements.

One issue is that Redfish requires the explicit RAID controller and disk
names in order to do the RAID configuration, but it would be more
convenient if the user did not have to know the low level details of their
system.
Here is the Redfish Action URI: {Base URI of target
resource}/Actions/Volume.ChangeRAIDLayout
(Provided in 6.109.4.2 of Redfish Resource and Schema Guide (dmtf.org))

The disk names can be generated using the Redfish logic constructing a
human friendly identifier or label for hardware devices.
https://github.com/DMTF/Redfish-Tacklebox/blob/e429f70a79cfe288756618498ce485ab4be37131/redfish_utilities/inventory.py#L192

Disk selection logic needs to be implemented in the most appropriate place.
Airship may require that the user be unaware of the storage subsystem
details when requesting the RAID config. Ironic requires a vendor
independent implementation for this purpose.

Here is relevant work done in metal3 to support RAID configuration in
baremetal servers, using the Fujitsu iRMC driver:
https://github.com/metal3-io/baremetal-operator/issues/206
https://github.com/metal3-io/baremetal-operator/pull/292


Warm Regards,

Zainub Wahid
Network Design Engineer II,
xFlow Research Inc.
+923044506900
zainub.wahid at xflowresearch.com
www.xFlowResearch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.airshipit.org/pipermail/airship-discuss/attachments/20210525/c55d4005/attachment.html>


More information about the Airship-discuss mailing list