OpenEBS ndm pod stuck in on Minikube: MountVolume.SetUp failed for volume "udev" : hostPath type check failed: /run/udev is not a directory

huangapple go评论59阅读模式
英文:

OpenEBS ndm pod stuck in on Minikube: MountVolume.SetUp failed for volume "udev" : hostPath type check failed: /run/udev is not a directory

问题

我正在尝试在Minikube v1.29.0上使用--driver=docker和--kubernetes-version=v1.23.12运行OpenEBS。我已经使用以下命令安装了OpenEBS:

kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml

然而,openebs-ndm pod 在ContainerCreating状态中卡住了。

当我运行kubectl describe pod openebs-ndm-bbj6s -n openebs时,我得到以下错误消息:

Events:
  Type     Reason       Age                From               Message
  ----     ------       ----               ----               -------
  Normal   Scheduled    51s                default-scheduler  Successfully assigned openebs/openebs-ndm-bbj6s to minikube
  Warning  FailedMount  19s (x7 over 51s)  kubelet            MountVolume.SetUp failed for volume "udev" : hostPath type check failed: /run/udev is not a directory

我已尝试根据这里的建议在我的主机上安装udev,但没有成功。有关如何解决此问题的任何想法吗?

英文:

I am trying to run OpenEBS on Minikube v1.29.0 with --driver=docker and --kubernetes-version=v1.23.12. I have installed OpenEBS using the following command:

kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml

However, the openebs-ndm pod is stuck in ContainerCreating status.

When I run kubectl describe pod openebs-ndm-bbj6s -n openebs, I get the following error message:

Events:
  Type     Reason       Age                From               Message
  ----     ------       ----               ----               -------
  Normal   Scheduled    51s                default-scheduler  Successfully assigned openebs/openebs-ndm-bbj6s to minikube
  Warning  FailedMount  19s (x7 over 51s)  kubelet            MountVolume.SetUp failed for volume "udev" : hostPath type check failed: /run/udev is not a directory

I have tried installing udev as suggested here on my host but it didn't work. Any ideas on how to solve this issue?

答案1

得分: 1

If /run/udev is available on a local machine and not present in the Minikube cluster, then try to mount that folder into the Minikube cluster using the minikube mount command. This is necessary for proper operation of OpenEBS, as it requires access to /run/udev.

Syntax of the minikube mount command:

$ minikube start --mount-string="source_path:destination_path" --mount

In your case, you can try something like this:

$ minikube start --mount-string="/run/udev:/run/udev" --mount

This command will mount the /run/udev directory into the Minikube cluster. Afterward, redeploy the pods and monitor the volume mount of the pod.

You can also refer to a similar error discussion in the GitHub issues.

英文:

If /run/udev is available in a local machine and not present in minkube cluster, then try to mount that folder into minkube cluster by using the minkube mount command, because to run the OpenEBS properly it required access to /run/udev.

#Syntax of minkube mount
$ minikube start --mount-string="source_path:destination_path" --mount

#In your case try something like this
$ minikube start --mount-string="/run/udev:/run/udev" --mount

This will mount the /run/udev to the minkube cluster. Now redeploy the pods and monitor the volume mount of the pod.

Have a glance at a similar error reference in github issues.

huangapple
  • 本文由 发表于 2023年3月1日 08:43:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/75598640.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定