安装版本: v2.1.1
系统版本 centos7.7
安装方式: 离线部署
部署环境:阿里ECS
部署架构 : 高可用安装 3master+1node(后期增加node)
以下为部署报错
TASK [kubernetes/preinstall : Install packages requirements] *******************************************************************************************************************************************************
Friday 04 September 2020 14:52:39 +0800 (0:00:00.152) 0:00:39.784 ******
FAILED - RETRYING: Install packages requirements (4 retries left).
ok: [node1]
FAILED - RETRYING: Install packages requirements (3 retries left).
FAILED - RETRYING: Install packages requirements (2 retries left).
FAILED - RETRYING: Install packages requirements (1 retries left).
fatal: [node2]: FAILED! => {
"attempts": 4,
"changed": false,
"rc": 1,
"results": []
}
MSG:
http://192.168.0.78:5080/yum_repo/iso/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
One of the configured repositories failed (centos7),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=bash ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable bash
or
subscription-manager repos --disable=bash
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=bash.skip_if_unavailable=true
failure: repodata/repomd.xml from bash: [Errno 256] No more mirrors to try.
http://192.168.0.78:5080/yum_repo/iso/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
NO MORE HOSTS LEFT *************************************************************************************************************************************************************************************************
PLAY RECAP *********************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0
master1 : ok=29 changed=2 unreachable=0 failed=0
master2 : ok=25 changed=2 unreachable=0 failed=0
master3 : ok=25 changed=2 unreachable=0 failed=0
node1 : ok=62 changed=0 unreachable=0 failed=0
node2 : ok=47 changed=3 unreachable=0 failed=1
Friday 04 September 2020 14:53:02 +0800 (0:00:23.004) 0:01:02.788 ******
===============================================================================
kubernetes/preinstall : Install packages requirements ------------------------------------------------------------------------------------------------------------------------------------------------------ 23.00s
kubernetes/preinstall : Create kubernetes directories ------------------------------------------------------------------------------------------------------------------------------------------------------- 1.15s
download : download | Sync files / images from ansible host to nodes ---------------------------------------------------------------------------------------------------------------------------------------- 1.15s
download : download | Download files / images --------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.12s
download : download | Sync files / images from ansible host to nodes ---------------------------------------------------------------------------------------------------------------------------------------- 1.01s
download : download | Sync files / images from ansible host to nodes ---------------------------------------------------------------------------------------------------------------------------------------- 0.91s
download : download | Download files / images --------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.85s
download : download | Download files / images --------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.84s
bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS, Suse and ClearLinux) ------------------------------------------------------------------------------------------------------------ 0.78s
etcd : Configure | reload systemd --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.75s
kubernetes/preinstall : Create cni directories -------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.72s
etcd : Check certs | check if a cert already exists on node ------------------------------------------------------------------------------------------------------------------------------------------------- 0.71s
bootstrap-os : Gather host facts to get ansible_os_family --------------------------------------------------------------------------------------------------------------------------------------------------- 0.67s
bootstrap-os : Install libselinux python package ------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.66s
etcd : Gen_certs | Gather etcd master certs ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.65s
kubernetes/preinstall : Remove swapfile from /etc/fstab ----------------------------------------------------------------------------------------------------------------------------------------------------- 0.56s
adduser : User | Create User -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.55s
etcd : Gen_certs | Write etcd master certs ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.53s
adduser : User | Create User -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.47s
etcd : Gen_certs | add CA to trusted CA dir ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.46s
failed!


检查yumrepo确实不存在,后手动挂载centos7.8.iso.
