TASK [etcd : Configure | Check if etcd cluster is healthy] *******************************************************************************************************************************************************************************************************************
Tuesday 26 May 2020 20:00:00 +0800 (0:00:00.136) 0:03:18.464 ***********
FAILED - RETRYING: Configure | Check if etcd cluster is healthy (4 retries left).
FAILED - RETRYING: Configure | Check if etcd cluster is healthy (3 retries left).
FAILED - RETRYING: Configure | Check if etcd cluster is healthy (2 retries left).
FAILED - RETRYING: Configure | Check if etcd cluster is healthy (1 retries left).
fatal: [ks-allinone -> ks-allinone]: FAILED! => {
"attempts": 4,
"changed": false,
"cmd": "/usr/local/bin/etcdctl --no-sync --endpoints=https://192.168.1.118:2379 cluster-health | grep -q 'cluster is healthy'",
"delta": "0:00:02.013232",
"end": "2020-05-26 20:00:35.563973",
"rc": 1,
"start": "2020-05-26 20:00:33.550741"
}
STDERR:
Error: client: etcd cluster is unavailable or misconfigured; error #0: client: endpoint https://192.168.1.118:2379 exceeded header timeout
error #0: client: endpoint https://192.168.1.118:2379 exceeded header timeout
MSG:
non-zero return code
NO MORE HOSTS LEFT ***********************************************************************************************************************************************************************************************************************************************************
PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************
ks-allinone : ok=391 changed=3 unreachable=0 failed=1
localhost : ok=1 changed=0 unreachable=0 failed=0
Tuesday 26 May 2020 20:00:35 +0800 (0:00:34.972) 0:03:53.437 ***********
===============================================================================
etcd : Configure | Check if etcd cluster is healthy ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 34.97s
kubernetes/preinstall : Install packages requirements ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 22.54s
download : download | Download files / images ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.92s
etcd : Configure | Check if etcd cluster is healthy ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.44s
bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS, Suse and ClearLinux) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.27s
download : download | Sync files / images from ansible host to nodes -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.19s
download : download | Sync files / images from ansible host to nodes -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.08s
download : download_file | Download item ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.83s
download : download | Download files / images ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.75s
download : download | Download files / images ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.72s
download : download | Download files / images ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.67s
chrony : start chrony server ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.64s
download : download | Sync files / images from ansible host to nodes -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.57s
download : download | Sync files / images from ansible host to nodes -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.49s
bootstrap-os : Install libselinux python package ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.47s
adduser : User | Create User Group ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.23s
bootstrap-os : Gather host facts to get ansible_os_family ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.21s
kubernetes/preinstall : Create kubernetes directories ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.21s
kubernetes/preinstall : Set selinux policy ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.19s
download : Register docker images info -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.93s
failed!
**********************************
please refer to https://kubesphere.io/docs/v2.1/zh-CN/faq/faq-install/
**********************************
[root@ks-allinone scripts]#