跳转到主内容

由于 FailedMount , POD 创建停留在 ContainerCreating 处

Views:
31
Visibility:
Public
Votes:
2
Category:
astra
Specialty:
snapx
Last Updated:

适用场景

Astra 数据存储

问题描述

POD 创建操作处于停滞状态,并显示 FailedMount事件 kubectl describe pod <pod> -n <namespace>.

示例:

# kubectl get pod -n testapp
NAME                 READY   STATUS        RESTARTS   AGE
testapp-mongodb-596f595859-6b75l   0/1    ContainerCreating   0      85s


# kubectl describe pod testapp-mongodb-596f595859-6b75l -n testapp
..
Events:
  Type    Reason          Age           From            Message
  ----    ------          ----          ----            -------
  Warning  FailedScheduling     19m (x3 over 19m)    default-scheduler     0/5 nodes are available: 5 pod has unbound immediate PersistentVolumeClaims.
  Normal   Scheduled         18m           default-scheduler     Successfully assigned testapp/testapp-mongodb-596f595859-6b75l to hk-k8s4-w2
  Normal   SuccessfulAttachVolume  18m           attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-14da216a-d480-4a43-8101-bdd841345a41"
  Warning  FailedMount        3m23s (x3 over 12m)   kubelet          Unable to attach or mount volumes: unmounted volumes=[datadir], unattached volumes=[kube-api-access-6kxc6 datadir]: timed out waiting for the condition
  Warning  FailedMount       2m28s (x16 over 18m)  kubelet          MountVolume.SetUp failed for volume "pvc-14da216a-d480-4a43-8101-bdd841345a41" : rpc error: code = Internal desc = error mounting NFS volume 10.216.43.186:/pvc-14da216a-d480-4a43-8101-bdd841345a41 on mountpoint /var/lib/kubelet/pods/7f944c15-b8b0-4c52-860a-e79f0380981d/volumes/kubernetes.io~csi/pvc-14da216a-d480-4a43-8101-bdd841345a41/mount: exit status 32
  Warning  FailedMount        66s (x5 over 16m)    kubelet          Unable to attach or mount volumes: unmounted volumes=[datadir], unattached volumes=[datadir kube-api-access-6kxc6]: timed out waiting for the condition

 

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.