Trident 未能及时配置卷,导致 pod 处于等待状态
适用于
用于 Kubernetes 和 Openshift 的 Astra Trident
问题描述
将带有 pod 的应用程序添加到 Kubernetes 或 Openshift 集群时,使用 Trident PV,PV、PVC 和 POD 在启动之前会延迟很长时间。
看到的消息是:
Unable to attach or mount volumes: unmounted volumes=[PV_NAME], unattached volumes=[PV_NAME_2 PV_NAME PV_NAME_3 ...]: timed out waiting for the condition
AttachVolume.Attach failed for volume "pvc-UUID" : rpc error: code = DeadlineExceeded desc = context deadline exceeded
来自 Trident 的其他错误提供了更多背景信息:
- Trident 日志显示卷创建和删除错误:
backend cannot satisfy create request for volume trident_<PREFIX>_pvc_<UUID>: (ONTAP-NAS pool <AGGR>/<AGGR>; error creating volume trident_<PREFIX>_pvc_<UUID>: API status: failed,Reason: Failed to create the volume on node \"<STORAGE_NODE>\".Reason: Failed to store NVE key with key ID\"00000000000000000200000000000HEX-UUID0000000000000000\" on external key server \"<HOST_FQDN>:50100\