适用于 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 停留在 " 容器创建 " 状态。
在将 open-iscsi 启动程序升级到 2.1.1 或更高版本或将 OpenShift 升级到 4.4.13 或更高版本后, iSCSI 会话登录出现问题。Linux 主机和 OpenShift 工作节点无法建立 iSCSI 会话。
使用以下签名时会发现 iSCSI 会话问题:
[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.
在调查期间 /etc/iscsi/iscsid.conf
,在工作节点中的文件中,观察到以下行:
node.session.auth.chap_algs = SHA3-256,SHA256,SHA1,MD5