When I run
iscsiadm --mode node --targetname iqn.2018-12.dz.esi:iso --portal 10.11.0.2 --login
I get this error:
Logging in to [iface: default, target: iqn.2018-12.dz.esi:iso, portal: 10.11.0.2,3260] (multiple)
iscsiadm: Could not login to [iface: default, target:
iqn.2018-12.dz.esi:iso, portal: 10.11.0.2,3260].
iscsiadm: initiator reported error (24 - iSCSI login failed due to
authorization failure) iscsiadm: Could not log into all portals
My /etc/iscsi/initiatorname.iscsi file:
InitiatorName = iqn.2018-12.dz.esi:kvm1
Auth config in my target:
/iscsi/iqn.20....esi:iso/tpg1> set auth userid=vcl
Parameter userid is now 'vcl'.
/iscsi/iqn.20....esi:iso/tpg1> set auth password=password
Parameter password is now 'password'.
My /etc/iscsi/iscsid.conf file:
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
node.session.auth.authmethod = CHAP
# To configure which CHAP algorithms to enable set
# node.session.auth.chap_algs to a comma seperated list.
# The algorithms should be listen with most prefered first.
# Valid values are MD5, SHA1, SHA256
# The default is MD5.
# node.session.auth.chap_algs = SHA256,SHA1,MD5
# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
node.session.auth.username = vcl
node.session.auth.password = password
Thanks for your help,