版本为 2.0.2版本,使用集群模式安装,安装失败,日志如下:
TASK [download : Check the local digest sha256 corresponds to the given image tag] *************************************************************************************
Wednesday 06 November 2019 20:11:09 +0800 (0:00:00.258) 0:02:01.187 ****
TASK [download : container_download | Download containers if pull is required or told to always pull (delegate)] *******************************************************
Wednesday 06 November 2019 20:11:09 +0800 (0:00:00.172) 0:02:01.360 ****
TASK [download : container_download | Download containers if pull is required or told to always pull (all nodes)] ******************************************************
Wednesday 06 November 2019 20:11:09 +0800 (0:00:00.058) 0:02:01.419 ****
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (4 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (4 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (3 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (3 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (2 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (2 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (1 retries left).
FAILED - RETRYING: container_download | Download containers if pull is required or told to always pull (all nodes) (1 retries left).
fatal: [app218]: FAILED! => {"attempts": 4, "changed": true, "cmd": ["/usr/bin/docker", "pull", "2.2.2.226:5000/google_containers/cluster-proportional-autoscaler-amd64:1.3.0"], "delta": "0:00:00.066396", "end": "2019-11-06 20:11:39.031312", "msg": "non-zero return code", "rc": 1, "start": "2019-11-06 20:11:38.964916", "stderr": "Error response from daemon: Get http://2.2.2.226:5000/v2/: dial tcp 2.2.2.226:5000: connect: no route to host", "stderr_lines": ["Error response from daemon: Get http://2.2.2.226:5000/v2/: dial tcp 2.2.2.226:5000: connect: no route to host"], "stdout": "", "stdout_lines": []}
fatal: [db100]: FAILED! => {"attempts": 4, "changed": true, "cmd": ["/usr/bin/docker", "pull", "2.2.2.226:5000/google_containers/cluster-proportional-autoscaler-amd64:1.3.0"], "delta": "0:00:00.072228", "end": "2019-11-06 20:11:43.234023", "msg": "non-zero return code", "rc": 1, "start": "2019-11-06 20:11:43.161795", "stderr": "Error response from daemon: Get http://2.2.2.226:5000/v2/: dial tcp 2.2.2.226:5000: connect: no route to host", "stderr_lines": ["Error response from daemon: Get http://2.2.2.226:5000/v2/: dial tcp 2.2.2.226:5000: connect: no route to host"], "stdout": "", "stdout_lines": []}
NO MORE HOSTS LEFT *****************************************************************************************************************************************************
PLAY RECAP *************************************************************************************************************************************************************
app218 : ok=111 changed=6 unreachable=0 failed=1
db100 : ok=111 changed=6 unreachable=0 failed=1
localhost : ok=1 changed=0 unreachable=0 failed=0
master : ok=130 changed=21 unreachable=0 failed=0
Wednesday 06 November 2019 20:11:43 +0800 (0:00:33.396) 0:02:34.816 ****
===============================================================================
download : container_download | Download containers if pull is required or told to always pull (all nodes) ----------------------------------------------------- 33.40s
container-engine/docker : Docker | reload docker --------------------------------------------------------------------------------------------------------------- 17.04s
container-engine/docker : Docker | pause while Docker restarts ------------------------------------------------------------------------------------------------- 10.12s
kubernetes/preinstall : Install packages requirements(YUM) ------------------------------------------------------------------------------------------------------ 8.70s
kubernetes/preinstall : Update package management cache (YUM) --------------------------------------------------------------------------------------------------- 7.76s
bootstrap-os : Install libselinux-python and yum-utils for bootstrap -------------------------------------------------------------------------------------------- 4.08s
container-engine/docker : Ensure old versions of Docker are not installed. | RedHat ----------------------------------------------------------------------------- 3.95s
download : Register docker images info -------------------------------------------------------------------------------------------------------------------------- 3.94s
gather facts from all instances --------------------------------------------------------------------------------------------------------------------------------- 2.74s
download : Download items --------------------------------------------------------------------------------------------------------------------------------------- 2.20s
kubernetes/preinstall : Enable ip forwarding -------------------------------------------------------------------------------------------------------------------- 1.54s
bootstrap-os : Check python-pip package ------------------------------------------------------------------------------------------------------------------------- 1.15s
kubernetes/preinstall : Create kubernetes directories ----------------------------------------------------------------------------------------------------------- 1.10s
Gathering Facts ------------------------------------------------------------------------------------------------------------------------------------------------- 1.01s
bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS and Tumbleweed) ---------------------------------------------------------------------- 0.96s
download : Sync container --------------------------------------------------------------------------------------------------------------------------------------- 0.92s
download : Download items --------------------------------------------------------------------------------------------------------------------------------------- 0.91s
bootstrap-os : check if atomic host ----------------------------------------------------------------------------------------------------------------------------- 0.89s
container-engine/docker : restart docker ------------------------------------------------------------------------------------------------------------------------ 0.89s
kubernetes/preinstall : Hosts | populate inventory into hosts file ---------------------------------------------------------------------------------------------- 0.86s
failed!