一键部署问题

来源:4-3 用kubespray一键部署生产级k8s集群

小小酥麻

2021-12-05

图片描述The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File “/tmp/ansible_yum_payload_3grzkw/ansible_yum_payload.zip/ansible/modules/packaging/os/yum.py”, line 1601, in run
fatal: [node-1]: FAILED! => {
“attempts”: 4,
“changed”: false,
“invocation”: {
“module_args”: {
“allow_downgrade”: false,
“autoremove”: false,
“bugfix”: false,
“conf_file”: null,
“disable_excludes”: null,
“disable_gpg_check”: false,
“disable_plugin”: [],
“disablerepo”: [],
“download_dir”: null,
“download_only”: false,
“enable_plugin”: [],
“enablerepo”: [],
“exclude”: [],
“install_repoquery”: true,
“install_weak_deps”: true,
“installroot”: “/”,
“list”: null,
“lock_timeout”: 30,
“name”: [
“libselinux-python”,
“device-mapper-libs”,
“nss”,
“conntrack”,
“openssl”,
“curl”,
“rsync”,
“socat”,
“unzip”,
“e2fsprogs”,
“xfsprogs”,
“ebtables”,
“ipvsadm”,
“ipset”
],
“releasever”: null,
“security”: false,
“skip_broken”: false,
“state”: “latest”,
“update_cache”: false,
“update_only”: false,
“use_backend”: “auto”,
“validate_certs”: true
}
},
“msg”: “There are no enabled repos.\n Run “yum repolist all” to see the repos you have.\n To enable Red Hat Subscription Management repositories:\n subscription-manager repos --enable \n To enable custom repositories:\n yum-config-manager --enable \n”,
“rc”: 1,
“results”: []
}

写回答

1回答

刘果国

2021-12-05

可能是主机yum源配置问题,按照错误提示执行命令再试一下:Run “yum repolist all” to see the repos you have.\n To enable Red Hat Subscription Management repositories:\n subscription-manager repos --enable \n To enable custom repositories:\n yum-config-manager --enable 

0
1
小小酥麻
老师啥时候可以帮忙解决一下啊,一键部署4天了,都没完成!
2021-12-07
共1条回复

Kubernetes生产落地全程实践

一个互联网公司落地Kubernetes全过程点点滴滴

2293 学习 · 2216 问题

查看课程