使用 Trident SAN 或 NAS RWO PV 的 POD 在移至其他节点时会脱机
适用于
- Openshift/Kubernetes
- SAN/iSCSI PVs
- NAS RWO PVs
- Trident
问题描述
使用 PV 的原始 Pod 出现故障或在其节点上被删除,并且 Kuberenetes 尝试在其他节点之一上启动它,而 Pod 正在使用基于 RWO 的 PVC,例如使用 iSCSI
ontap-san 后端的 PVC,但也使用 NFS RWO 类型 PV 时,在替换 Pod 中发生以下错误:Multi-Attach error for volume "pvc-<UUID>" Volume is already exclusively attached to one node and can't be attached to another
但是,过了一会儿,剩下的唯一错误是:
Warning FailedMount <time_delay> kubelet MountVolume.MountDevice failed for volume "pvc-<UUID>" : rpc error: code = DeadlineExceeded desc = context deadline exceeded