Trident无法及时配置卷、因此Pod仍在等待
适用场景
适用于Kubernetes和OpenShift的Astra Trident
问题描述
如果使用Trident PV将具有Pod的应用程序添加到Kubernetes或OpenShift集群、则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\