FAILED - RETRYING: Configure | Wait for etcd cluster to be healthy (1 retries left).Result was: {
"attempts": 4,
"changed": false,
"cmd": "set -o pipefail && /usr/local/bin/etcdctl endpoint --cluster status && /usr/local/bin/etcdctl endpoint --cluster health 2>&1 | grep -v 'Error: unhealthy cluster' >/dev/null",
"delta": "0:00:05.026869",
"end": "2022-10-09 21:50:57.554803",
"invocation": {
"module_args": {
"_raw_params": "set -o pipefail && /usr/local/bin/etcdctl endpoint --cluster status && /usr/local/bin/etcdctl endpoint --cluster health 2>&1 | grep -v 'Error: unhealthy cluster' >/dev/null",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"retries": 5,
"start": "2022-10-09 21:50:52.527934",
"stderr": "{\"level\":\"warn\",\"ts\":\"2022-10-09T21:50:57.551+0800\",\"caller\":\"clientv3/retry_interceptor.go:62\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-9f2a79e4-9cca-4605-a813-9baf74bf74ed/192.168.106.145:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: authentication handshake failed: EOF\\\"\"}\nError: failed to fetch endpoints from etcd cluster member list: context deadline exceeded",
"stderr_lines": [
"{\"level\":\"warn\",\"ts\":\"2022-10-09T21:50:57.551+0800\",\"caller\":\"clientv3/retry_interceptor.go:62\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-9f2a79e4-9cca-4605-a813-9baf74bf74ed/192.168.106.145:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: authentication handshake failed: EOF\\\"\"}",
"Error: failed to fetch endpoints from etcd cluster member list: context deadline exceeded"
],
"stdout": "",
"stdout_lines": []
}
老师可以教教我吗,这个问题困扰我很久了,本地是没有问题的,但是到了测试环境中就出问题了,测试环境可以连外网,不知道是不是我之前根据网上的帖子安装过k8s的原因。