Skip to content

none driver on openEuler #8420

Closed
Closed
@gaozhekang

Description

<!-- 请在报告问题时使用此模板,并提供尽可能详细的信息。否则可能导致响应延迟。谢谢!-->
我在arm64的vm中执行minikube start --vm-driver=none出现报错,可以确认的是docker-ce已经安装并且可以运行容器。

执行 docker run hello-world 可以看到打印:
Hello from Docker!
This message shows that your installation appears to be working correctly.

$ rpm -qa | grep docker
docker-ce-cli-19.03.11-3.el7.aarch64
docker-ce-19.03.11-3.el7.aarch64

$ rpm -qa | grep kubectl
kubectl-1.18.3-0.aarch64
kubeadm-1.18.3-0.aarch64
kubelet-1.18.3-0.aarch64

**重现问题所需的命令**:minikube start --vm-driver=none

**失败的命令的完整输出**:<details>
* minikube v1.11.0 on Openeuler 20.03 (arm64)
  - KUBECONFIG=/etc/kubernetes/admin.conf:config-demo:config-demo-2
* Using the none driver based on existing profile
* Starting control plane none minikube in cluster minikube
* Restarting existing none bare metal machine for "minikube" ...
* OS release is openEuler 20.03 (LTS)
* Preparing Kubernetes v1.18.3 on Docker 19.03.11 ...
! Unable to restart cluster, will reset it: getting k8s client: client config:  client config: context "minikube" does not exist
! initialization failed, will try again: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.3:$PATH kubeadm in it --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable-etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.3
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
......
[kubelet-check] Initial timeout of 40s passed.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused.
......
</details>


**`minikube logs`命令的输出**: <details>


</details>

这个看起来像是因为kubelet运行异常导致,通过systemctl status kubelet可以看到kubelet服务为activating (auto-restart)状态,并且退出码为203

$ journalctl -xeu kubelet
Jun 09 15:26:07 localhost.localdomain systemd[1]: kubelet.service: Main process exited, code=exited, status=203/EXEC
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit kubelet.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 203.

**使用的操作系统版本**:openEuler 20.03 (LTS)

Metadata

Assignees

Labels

co/none-driverkind/supportCategorizes issue or PR as a support question.l/zh-CNIssues in or relating to Chinesetriage/needs-informationIndicates an issue needs more information in order to work on it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions