easzlab / kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
https://github.com/easzlab/kubeasz
10.53k stars 3.53k forks source link

docker exec -it kubeasz ezctl start-aio 报错 #1388

Closed cloud-arrow closed 2 months ago

cloud-arrow commented 4 months ago

What happened? 发生了什么问题?

执行报错

PLAY [kube_master,kube_node,etcd] *****

TASK [prepare : 删除centos/redhat默认安装] **** fatal: [10.206.17.55]: FAILED! => {"changed": false, "msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the dnf Ansible module instead.. The Python 2 yum module is needed for this module. If you require Python 3 support use the dnf Ansible module instead."} ...ignoring

TASK [prepare : 安装基础软件包] *** fatal: [10.206.17.55]: FAILED! => {"changed": false, "msg": "The Python 2 bindings for rpm are needed for this module. If you require Python 3 support use the dnf Ansible module instead.. The Python 2 yum module is needed for this module. If you require Python 3 support use the dnf Ansible module instead."}

What did you expect to happen? 期望的结果是什么?

安装成功

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

export release=3.6.3
wget https://github.com/easzlab/kubeasz/releases/download/${release}/ezdown
chmod +x ezdown
./ezdown -D
./ezdown -S
docker exec -it kubeasz ezctl start-aio

Anything else we need to know? 其他需要说明的情况

一直报错,安装不成功,大佬帮忙看你看

Kubernetes version k8s 版本

1.29的版本

Kubeasz version

3.6.3的版本

OS version 操作系统版本

# On Linux:
$ cat /etc/os-release
export release=3.6.3
wget https://github.com/easzlab/kubeasz/releases/download/${release}/ezdown
chmod +x ezdown
./ezdown -D
./ezdown -S
docker exec -it kubeasz ezctl start-aio
$ uname -a
Linux iZj6cb2t64g89by08v35xrZ 5.10.134-16.3.al8.x86_64 #1 SMP Tue Mar 26 18:54:05 CST 2024 x86_64 x86_64 x86_64 GNU/Linux

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

jaffe-fly commented 3 months ago

大佬 安装怎么成功没,我的一直报错Failed to download metadata for repo 'nvidia-container-toolkit': Cannot download repomd.xml:

解决办法 /etc/yum.repos.d/下面有一个·nvidia-container-toolkit.repo,然后 vim nvidia-container-toolkit.repo 修改 enabled=0 就可以了

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.