[ClusterLabs] chap lio-t / iscsitarget disabled - why?

Valentin Vidic Valentin.Vidic at CARNet.hr
Tue Apr 3 13:12:47 EDT 2018

On Tue, Apr 03, 2018 at 04:48:00PM +0200, Stefan Friedel wrote:
> we've a running drbd - iscsi cluster (two nodes Debian stretch, pacemaker /
> corosync, res group w/ ip + iscsitarget/lio-t + iscsiluns + lvm etc. on top of
> drbd etc.). Everything is running fine - but we didn't manage to get CHAP to
> work. targetcli / lio-t always switches the authentication off after a migration
> or restart.
> I found the following lines in the iSCSITarget resource file (Debian stretch
> /usr/lib/ocf/resource.d/heartbeat/iSCSITarget, also in
> https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/iSCSITarget.in):
>    [...]
>    # TODO: add CHAP authentication support when it gets added back into LIO
>    ocf_run targetcli /iscsi/${OCF_RESKEY_iqn}/tpg1/ set attribute authentication=0 || exit $OCF_ERR_GENERIC
>    [...]

Yes, another comment in that file suggests that CHAP support was not
available at that time (2009) in lio and/or lio-t:

                # TODO: Remove incoming_username and incoming_password
                # from this check when LIO 3.0 gets CHAP authentication
                unsupported_params="tid incoming_username incoming_password"

If you get it working with the current version of targetcli-fb, you can
create a pull request in the ClusterLabs repo :)


More information about the Users mailing list