Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用Spray安装集群里报token超时错误 #97

Open
hawkonyao opened this issue Oct 11, 2023 · 0 comments
Open

用Spray安装集群里报token超时错误 #97

hawkonyao opened this issue Oct 11, 2023 · 0 comments

Comments

@hawkonyao
Copy link

`TASK [kubernetes/control-plane : kubeadm | regenerate apiserver cert 2/2] ******
changed: [master]
Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.846) 0:20:36.450 *****
Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.048) 0:20:36.499 *****
Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.047) 0:20:36.547 *****
Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.039) 0:20:36.586 *****
Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.062) 0:20:36.648 *****
Wednesday 11 October 2023 14:39:48 +0800 (0:00:00.065) 0:20:36.714 *****
FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (5 retries left).
FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (4 retries left).
FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (3 retries left).
FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (2 retries left).
FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (1 retries left).

TASK [kubernetes/control-plane : Create kubeadm token for joining nodes with 24h expiration (default)] ***
fatal: [master]: FAILED! => {
"attempts": 5,
"changed": false,
"cmd": [
"/usr/local/bin/kubeadm",
"--kubeconfig",
"/etc/kubernetes/admin.conf",
"token",
"create"
],
"delta": "0:01:15.144539",
"end": "2023-10-11 12:09:40.191122",
"msg": "non-zero return code",
"rc": 1,
"start": "2023-10-11 12:08:25.046583",
"stderr": "timed out waiting for the condition\nTo see the stack trace of this error execute with --v=5 or higher",
"stderr_lines": [
"timed out waiting for the condition",
"To see the stack trace of this error execute with --v=5 or higher"
],
"stdout": "",
"stdout_lines": []
}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
master : ok=844 changed=148 unreachable=0 failed=1 skipped=819 rescued=0 ignored=1
node1 : ok=568 changed=97 unreachable=0 failed=0 skipped=562 rescued=0 ignored=0
node2 : ok=568 changed=97 unreachable=0 failed=0 skipped=562 rescued=0 ignored=0

Playbook run took 0 days, 0 hours, 27 minutes, 59 seconds
Wednesday 11 October 2023 14:47:10 +0800 (0:07:22.466) 0:27:59.181 *****
kubernetes/control-plane : Create kubeadm token for joining nodes with 24h expiration (default) - 442.47s
download : download_container | Load image into the local container registry -- 90.48s
download : download_container | Upload image to node if it is cached --- 44.06s
download : download_container | Load image into the local container registry -- 30.08s
download : download_container | Load image into the local container registry -- 29.55s
download : download_file | Copy file from cache to nodes, if it is available -- 23.37s
download : download_container | Load image into the local container registry -- 23.03s
download : download_container | Upload image to node if it is cached --- 21.28s
download : download_container | Upload image to node if it is cached --- 19.96s
download : download_file | Copy file from cache to nodes, if it is available -- 17.43s
download : download_container | Upload image to node if it is cached --- 14.96s
download : download_container | Upload image to node if it is cached --- 14.87s
download : download_container | Upload image to node if it is cached --- 14.03s
download : download_container | Upload image to node if it is cached --- 12.82s
download : download_container | Upload image to node if it is cached --- 12.38s
container-engine/containerd : download_file | Copy file from cache to nodes, if it is available -- 12.11s
download : download_file | Copy file from cache to nodes, if it is available -- 11.63s
bootstrap-os : Assign inventory name to unconfigured hostnames (hostname) -- 11.44s
download : download_container | Load image into the local container registry -- 11.07s
download : download_container | Upload image to node if it is cached ---- 9.92s

KUBOARD SPRAY *****************************************************************

[Failed to install Kubernetes Cluster. Please review the logs and fix the problem.]
[集群安装失败,请回顾日志,找到错误信息,并解决问题后,再次尝试。]
`

==========================================
错误信息如上。
我的环境全是在vm里搭的。一个centos7.9跑Kuboard-Spray,另外启动了三台linux虚拟机,一台做控制节点,同时承担工作节点和etcd,另外两台做工作节点。
配置好后,使用Spray的图形界面安装/设置服务,大概路了14分钟多,就报了上面的错,哪位大神知道这种情况该怎么处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant