HomeClusterLabs Projects

Medium: RA: iSCSITarget, iSCSILogicalUnit: identify targets by IQN, not by tid

Description

Medium: RA: iSCSITarget, iSCSILogicalUnit: identify targets by IQN, not by tid

While implementing LIO functionality for these RAs, I noticed a design
flaw in the existing RAs: They identify a target by a numeric "target
ID", which is actually IET/stgt specific and not supported in LIO (and
presumably, other target implementations). So, I've rewritten these
agents to identify and reference targets by iSCSI Qualified Name
(IQN).

As a consequence:

  • the iSCSITarget parameter previously named "name" (which was stupid and ambigious, anyway) is now named "iqn";
  • the iSCSITarget parameter "tid" has gone away. Instead, where the implementation requires it, a "target ID" is discerned on the fly;
  • the iSCSILogicalUnit resource parameter "tid" has also gone away;
  • iSCSILogicalUnit now has a required parameter "target_iqn", which is to hold the target IQN and is, of course, used to assign the LU to an existing target.

Details

Event Timeline