kubespray部署失败

来源:4-6 基于kubespray的集群运维

无谓1024

2022-07-18

<172.30.202.45> rc=1, stdout and stderr censored due to no log
<172.30.202.45> Failed to connect to the host via ssh:
<172.30.202.45> ESTABLISH SSH CONNECTION FOR USER: None
<172.30.202.45> SSH: EXEC ssh -vvv -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ‘ControlPath="/root/.ansible/cp/7516c43238"’ 172.30.202.45 ‘/bin/sh -c ‘"’"‘rm -f -r /root/.ansible/tmp/ansible-tmp-1658105556.8061664-88244-208580588310574/ > /dev/null 2>&1 && sleep 0’"’"’’
<172.30.202.45> rc=0, stdout and stderr censored due to no log

TASK [container-engine/runc : download_file | Validate mirrors] ****************************************
task path: /root/kubernetes/kubespray-2.19.0/roles/download/tasks/download_file.yml:52
failed: [master2] (item=None) => {
“attempts”: 4,
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false
}
fatal: [master2 -> {{ download_delegate if download_force_cache else inventory_hostname }}]: FAILED! => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false
}
…ignoring
<172.22.206.46> rc=1, stdout and stderr censored due to no log
<172.22.206.46> Failed to connect to the host via ssh:
<172.22.206.46> ESTABLISH SSH CONNECTION FOR USER: None
<172.22.206.46> SSH: EXEC ssh -vvv -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ‘ControlPath="/root/.ansible/cp/70252d274e"’ 172.22.206.46 ‘/bin/sh -c ‘"’"‘rm -f -r /root/.ansible/tmp/ansible-tmp-1658105556.8586302-88243-44080282550467/ > /dev/null 2>&1 && sleep 0’"’"’’
<172.22.206.46> rc=0, stdout and stderr censored due to no log
failed: [master1] (item=None) => {
“attempts”: 4,
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false
}
fatal: [master1 -> {{ download_delegate if download_force_cache else inventory_hostname }}]: FAILED! => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false
}
…ignoring
Monday 18 July 2022 08:52:37 +0800 (0:00:23.711) 0:01:41.569 ***********

TASK [container-engine/runc : download_file | Get the list of working mirrors] *************************
task path: /root/kubernetes/kubespray-2.19.0/roles/download/tasks/download_file.yml:74
ok: [master1] => {
“ansible_facts”: {
“valid_mirror_urls”: []
},
“changed”: false
}
ok: [master2] => {
“ansible_facts”: {
“valid_mirror_urls”: []
},
“changed”: false
}
Monday 18 July 2022 08:52:37 +0800 (0:00:00.111) 0:01:41.681 ***********

TASK [container-engine/runc : download_file | Download item] *******************************************
task path: /root/kubernetes/kubespray-2.19.0/roles/download/tasks/download_file.yml:81
fatal: [master1 -> {{ download_delegate if download_force_cache else inventory_hostname }}]: FAILED! => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false
}
fatal: [master2 -> {{ download_delegate if download_force_cache else inventory_hostname }}]: FAILED! => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false
}

写回答

1回答

刘果国

2022-07-18

看日志意思是网络不通:Failed to connect to the host via ssh:

0
0

Kubernetes生产落地全程实践

一个互联网公司落地Kubernetes全过程点点滴滴

2293 学习 · 2216 问题

查看课程