简体   繁体   English

Kubernetes Azure磁盘动态持久卷声明:挂载失败,超时已过期。 Pod永远处于“ContainerCreating”状态

[英]Kubernetes Azure disk dynamic Persistent Volume Claim: Mount failed with timeout expired. Pod is in “ContainerCreating” status for ever

Problem statement: 问题陈述:

Azure disk dynamic Persistent Volume Claim: Mount failed with timeout expired. Azure磁盘动态持久卷声明:挂载失败且超时已到期。 Pod is in “ContainerCreating” status for ever. Pod永远处于“ContainerCreating”状态。

kubectl describe pod myPod gives following information: kubectl describe pod myPod提供以下信息:

Warning  FailedMount  1m (x5 over 12m)   kubelet, k8-node-2  Unable to mount volumes for pod "mongodb-76bd56459f-hxjdc_kubeapps(8189f2e4-0017-11e8-82ac-000d3aa33484)": timeout expired waiting for volumes to attach/mount for pod "kubeapps"/"mongodb-76bd56459f-hxjdc". list of unattached/unmounted volumes=[data]
Warning  FailedMount  21s (x8 over 12m)  kubelet, k8-node-2  (combined from similar events): MountVolume.SetUp failed for volume "pvc-516aeece-ff9d-11e7-82ac-000d3aa33484" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/8189f2e4-0017-11e8-82ac-000d3aa33484/volumes/kubernetes.io~azure-disk/pvc-516aeece-ff9d-11e7-82ac-000d3aa33484 --scope -- mount -t ext4 -o bind /var/lib/kubelet/plugins/kubernetes.io/azure-disk/mounts/m3083936425 /var/lib/kubelet/pods/8189f2e4-0017-11e8-82ac-000d3aa33484/volumes/kubernetes.io~azure-disk/pvc-516aeece-ff9d-11e7-82ac-000d3aa33484<br> Output: Running scope as unit run-rf9126bab6fba44d9a499370260ed5fe8.scope. mount: special device /var/lib/kubelet/plugins/kubernetes.io/azure-disk/mounts/m3083936425 does not exist

Kubernetes Cluster info: Kubernetes群集信息:

It is a bare-metal installation with One Master and Two minions. 这是一个裸机安装,有一个主人和两个小兵。 All three Ubuntu 16.04 LTS VMs are on Azure. 所有三个Ubuntu 16.04 LTS VM都在Azure上。 Cluster is created with “kubeadm”. 使用“kubeadm”创建群集。

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.1", GitCommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", GitTreeState:"clean", BuildDate:"2018-01-04T11:52:23Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T09:42:01Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

Further useful information from my own investigation: 我自己调查的其他有用信息:

1. PVC and PV are created and bound. 1.创建并绑定PVC和PV。 See below: 见下文:

~$ kubectl -n kubeapps get pvc 
NAME|STATUS|VOLUME|CAPACITY|ACCESS|MODES|STORAGECLASS|AGE
mongodb-data|Bound|pvc-516aeece-ff9d-11e7-82ac-000d3aa33484|8Gi||RWO|k8storage   |14h

~$ kubectl -n kubeapps get pv
NAME|CAPACITY|ACCESS|MODES|RECLAIM POLICY|STATUS|CLAIM|STORAGECLASS|REASON|AGE
pvc-516aeece-ff9d-11e7-82ac-000d3aa33484|8Gi|RWO|Retain|Bound|kubeapps/mongodb-data|k8storage| |14h

2. Azure managed disks are automatically created and attached to the appropriate node. 2. Azure托管磁盘自动创建并附加到相应的节点。 See screenshots from Azure portal: 查看Azure门户网站的屏幕截图: 在此输入图像描述

Thanks in advance!!! 提前致谢!!!

根据那里的信息,你可以进入问题的kubelet观点(“kubectl events”,“journalctl -u kubelet”)以及可能的操作系统问题,包括与Azure“journalctl -p 3”的交互 - “-p 3”仅针对主要问题进行过滤(-p可以从0到7)。

You have to allow this Account provisioning storage. 您必须允许此帐户配置存储。

You can do this here: Resource Provider status 您可以在此处执行此操作: 资源提供者状态

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们如何创建基于天蓝色磁盘的持久卷声明并从 Kubernetes 中的 POD 使用它们? - How can we create azure-disk based persistent volume claim and use them from a POD in Kubernetes? GCE Kubernetes:永久磁盘和永久卷声明 - GCE Kubernetes: Persistent disk and Persistent Volume claim WSL Kubernetes Pod 卡在 ContainerCreating state 由于卷挂载 - WSL Kubernetes Pod stuck in ContainerCreating state due to volume mount Azure Kubernetes 服务 - 持久卷/持久卷声明更改权限 - Azure Kubernetes Service - Persistent Volume / Persistent Volume Claim change permissions Kubernetes - Pod 仍处于 ContainerCreating 状态 - Kubernetes - Pod Remains in ContainerCreating Status Kubernetes pod 仍处于“ContainerCreating”状态 - Kubernetes pod still in "ContainerCreating" status F 将 azure 磁盘安装到 azure Kubernetes 用于 Z399BD1EE587245ECAC6F39BEAA9pod988 - mount azure disk to azure Kubernetes for PostgreSQL pod Azure ACS AzureFile动态持久卷声明 - Azure ACS AzureFile Dynamic Persistent Volume Claim 持久卷声明 - 挂载路径 - Persistent volume claim - mount path Kubernetes pod 无法挂载 iSCSI 卷:无法获取 iSCSI 磁盘的任何路径 - Kubernetes pod cannot mount iSCSI volume: failed to get any path for iscsi disk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM