已关闭
[Installation]: 集群调度组件Pod处于ContainerCreating状态 #343
董peng创建于  5月17日关闭于  5月20日
董peng
董peng成员
5月17日 创建

在提交新问题之前,请确保您已经在社区中搜索过相关问题,并使用了社区中提供的资源/工具后,仍未找到满意的解决方式。

环境信息

不涉及

您是如何安装操作的

集群调度组件Pod处于ContainerCreating状态

安装时出现的故障


问题描述

部署集群调度组件后,通过命令kubectl get pods --all-namespaces -o wide查看各组件状态,发现Pod处于ContainerCreating状态。以Ascend Device Plugin为例说明。

root@ubuntu:/home# kubectl get pods --all-namespaces -o wide
NAMESPACE        NAME                                       READY   STATUS              RESTARTS   AGE     IP              NODE           NOMINATED NODE   READINESS GATES
kube-system      ascend-device-plugin-daemonset-910-fpjw2           0/1        ContainerCreating   0          10m     <none>          ubuntu     <none>           <none>
...

执行如下命令查看Pod详情。

kubectl describe pod -n namespace podname

如:

kubectl describe pod -n kube-system ascend-device-plugin-daemonset-910-fpjw2

显示如下内容:

...
QoS Class:       Guaranteed
Node-Selectors:  masterselector=dls-master-node
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason       Age               From                 Message
  ----     ------       ----              ----                 -------
  Normal   Scheduled    16s               default-scheduler    Successfully assigned kube-system/ascend-device-plugin-daemonset-910-fpjw2 to ubuntu
  Warning  FailedMount  8s (x5 over 15s)  kubelet, ubuntu      MountVolume.SetUp failed for volume "device-ascenddeviceplugin" : hostPath type check failed: /var/log/mindx-dl/ascend-device-plugin is not a directory

原因分析

对应组件的日志目录不存在。

解决措施

  1. 创建对应的日志目录,并设置目录对应的权限和属主。

    具体操作请参见创建日志目录章节。

  2. 手动卸载组件后重新部署。

欢迎加入社区,感谢您对社区的贡献 🎉!

likedislike
董peng董peng成员
5月17日 添加了label:installation
董peng
董peng成员
5月17日 评论:

/label add triaged
/label add resolved

likedislike
ascend-robotascend-robot成员
5月17日 添加了label:triagedresolved
Atlas_zxp
Atlas_zxp成员
5月17日 评论:

/label add triaged

likedislike
Atlas_zxpAtlas_zxp成员
5月20日 关闭了 issue
Xxiangjie10成员
9月9日 issue状态由 TODO 改变为 DONE