跳转到主内容

通过在ContainerWaiting中保留POD来配置ANF NFS PV

Views:
Visibility:
Public
Votes:
0
Category:
trident-kubernetes<a>2009538563</a>
Specialty:
snapx
Last Updated:

适用场景

  • 具有标准网络功能的Azure NetApp Files (ANF)
  • 适用于OpenShift/Kubbernetes的Asta Dent版本19.07及更高版本

问题描述

使用在{\f429 Trident}中新设置的{\f429 ANF}后端时、配置不会成功并超时:

~$ oc get events
LAST SEEN   TYPE      REASON               OBJECT            MESSAGE
89s         Warning   FailedMount          pod/nginx-pod-1   Unable to attach or mount volumes: unmounted volumes=[volume],
unattached volumes=[volume kube-api-access-7fthh]: timed out waiting for the condition

51s         Warning   FailedAttachVolume   pod/nginx-pod-1   AttachVolume.Attach failed for volume "pvc-27468699-089f-4a47-8d9e-4a7c59e12e5c" : timed out waiting for external-attacher of csi.trident.netapp.io CSI driver to attach volume pvc-27468699-089f-4a47-8d9e-4a7c59e12e5c


查看单个声明UUID时、的事件中会显示以下内容 trident-controller-sidecar-csi-provisioner

(a)最初的请求花了十秒才得到答复:I0410 18:30:23.854476       1 connection.go:184] GRPC request: {"accessibility_requirements":{"preferred":[{"segments":{"topology.kubernetes.io/region":"westus3","topology.kubernetes.io/zone":"westus3-1"}},{"segments":{"topology.kubernetes.io/region":"westus3","topology.kubernetes.io/zone":"westus3-2"}},{"segments":{"topology.kubernetes.io/region":"westus3","topology.kubernetes.io/zone":"westus3-3"}}],"requisite":[{"segments":{"topology.kubernetes.io/region":"westus3","topology.kubernetes.io/zone":"westus3-1"}},{"segments":{"topology.kubernetes.io/region":"westus3","topology.kubernetes.io/zone":"westus3-2"}},{"segments":{"topology.kubernetes.io/region":"westus3","topology.kubernetes.io/zone":"westus3-3"}}]},"capacity_range":{"required_bytes":21474836480},"name":"pvc-23b8d581-52f3-467f-9801-febc99bfc13e","parameters":{"fsType":"nfs","selector":"performance=bronze"},"volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"nfs"}},"access_mode":{"mode":5}}]}

I0410 18:30:33.965371       1 connection.go:187] GRPC error: rpc error: code = DeadlineExceeded desc = volume state is Creating, not Succeeded

W0410 18:30:33.965464       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 0
E0410 18:30:33.965490       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is Creating, not Succeeded

(B)第一次重试将在9秒后进行:

W0410 18:30:42.209074       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 1
E0410 18:30:42.209101       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded

 

(C)再重试16秒后的第二次:

W0410 18:30:58.463242       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 2
E0410 18:30:58.463271       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded

(D)、其余每30秒:
W0410 18:31:28.776946       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 3
E0410 18:31:28.776974       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded
W0410 18:31:59.046562       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 4
E0410 18:31:59.046597       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded
W0410 18:32:29.272501       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 5
E0410 18:32:29.272528       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded
W0410 18:32:59.492813       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 6
E0410 18:32:59.492842       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded
W0410 18:33:29.753260       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 7
E0410 18:33:29.753286       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded
W0410 18:34:00.004575       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 8
E0410 18:34:00.004604       1 controller.go:957] error syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e": failed to provision volume with StorageClass "azure-netapp-files-bronze": rpc error: code = DeadlineExceeded desc = volume state is still Creating, not Succeeded
W0410 18:34:30.252470       1 controller.go:934] Retrying syncing claim "23b8d581-52f3-467f-9801-febc99bfc13e", failure 9

在上次失败后(首次创建请求后4分7秒)、不再发出请求。

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.