适用于 OpenShift 等环境的较新版本的 Linux open-iSCSI 启动器可能无法正常工作
适用于
- 支持的 Linux open-iSCSI 发起程序版本
- Element 软件
- RedHat OpenShift
问题
较新版本的 Linux open-iSCSI 启动器版本 2.1.1 或更高版本可能无法在不应用解决办法的情况下与 Element 软件建立 iSCSI 会话。
RedHat OpenShift 特定问题:
将 OpenShift 从版本 4.4.12 升级到 4.4.13 再升级到 4.5 后,无法使用 NetApp Trident PVC 预配 Pod。由于 k8s/OpenShift 工作节点无法与 Element 建立 iSCSI 会话,Pod 卡在 'containerCreating' 状态。
在将 open-iSCSI 启动器升级到 2.1.1 或更高版本,或者将 OpenShift 升级到 4.4.13 或更高版本后,观察到 iSCSI 会话登录出现问题。Linux 主机和 OpenShift 工作节点无法建立 iSCSI 会话。
观察到具有以下特征的 iSCSI 会话问题:
在拥有切片的节点的 sf-slice.info 中:
slice123[13361]: [ISCSI] 27742 TSSocket-122 iscsitarget/ISCSISession.cpp:
391:~ISCSISession|srcid=1355 reqid=0 LOGIN Failed: Unexpected CHAP_A Type, Expect 5 Got 8,7,6,5 { sessionID=123abc cid=0 sessionMSec=4500 loginMSec=0 initiatorName=iqn.1994-05.com.redhat:abcdef12345 initiatorPortal=1.2.3.4:44376 isid=0123456789 sessionType=Normal targetName=iqn.2010-01.com.solidfire:xxxx.uuid-xxxxxxxxx-xxxx-xx targetPortal=4.3.2.1:3260 initiatorAccess=NotAllowed receivedCommands=0 shutdownReason=IscsiLoginFailed shutdownInfo=LOGIN Failed: Unexpected CHAP_A Type, Expect 5 Got 8,7,6,5 isShutdown=true redirect=false virtualNetworkID=0 loginStage=0 volumeID=133 socketError=xSocketClosed }
在尝试发起连接的客户端中:
[root@node-1 ~]# iscsiadm -m session
iscsiadm: No active sessions.
In /var/log/messages on the worker node:
Jul 30 04:12:36 node-1 iscsid[1372]: iscsid: Login authentication failed with target iqn.2010-01.com.solidfire:3x71.pvc-7489898e-087b-4db0-b211-e5b254074d56.1
Jul 30 04:12:36 node-1 iscsid[1372]: iscsid: Kernel reported iSCSI connection 207:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (1)
Jul 30 04:12:41 node-1 iscsid[1372]: iscsid: Login failed to authenticate with target iqn.2010-01.com.solidfire:3x71.pvc-7489898e-087b-4db0-b211-e5b254074d56.1
Jul 30 04:12:41 node-1 iscsid[1372]: iscsid: session 207 login rejected: Initiator failed authentication with target
Jul 30 04:12:41 node-1 iscsid[1372]: iscsid: Connection207:0 to [target: iqn.2010-01.com.solidfire:3x71.pvc-7489898e-087b-4db0-b211-e5b254074d56.1, portal: 192.168.1.50,3260] through [iface: default] is shutdown.
在调查过程中,在 worker 节点中的 /etc/iscsi/iscsid.conf 文件中,观察到以下行:
node.session.auth.chap_algs = SHA3-256,SHA256,SHA1,MD5