middleware icon indicating copy to clipboard operation
middleware copied to clipboard

NAS-131090 / 25.04 / Fibre Channel Support

Open bmeagherix opened this issue 1 year ago • 1 comments

Add support for Fibre Channel targets

Overview

SCST includes support for Fibre Channel targets using QLA2xxx HBAs. This PR includes the middleware changes necessary to utilize the mechanism.

  • ALUA is supported, using the same HA internal iSCSI targets as are used for iSCSI ALUA support,
  • NPIV will be supported (not yet ready, hence WIP)

API summary

In CORE an fcport CRUD interface was available to perform the target to FC port mapping. A similar CRUD API is presented here.

However, in CORE we could reliably pair the ports on each node in a HA system simply by using the same moniker (e.g. isp0). Since this is not quite true in SCALE we instead will have a DB table / API to wire the ports together based upon the slot information obtained from dmidecode. The auto-wiring will use a default moniker of fc0, etc ... so that any migration from SCALE will be forced to manually check that the A/B controllers port pairing are as expected. The upshot of all of this is that another fc.fc_host API is implemented.

The fc.fc_host API will also include the NPIV setting for the FC Host port, which in CORE was a System Tunable.

To support the UI fcport.port_choices and fcport.status are also included.

bmeagherix avatar Oct 14 '24 20:10 bmeagherix