在 IBM Cloud Private 2.0.1.2 安装(单节点 ubuntu 16.04)期间,我遇到以下错误:
TASK [network : Waiting for configuring calico service] ************************
task path: /installer/playbook/roles/network/tasks/calico.yaml:13
Using module file /usr/lib/python2.7/site-packages/ansible/modules/utilities/logic/wait_for.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/bash -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/bash -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242 `" && echo ansible-tmp-1528987006.29-271366323320242="` echo /root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpMpYzjY TO /root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242/wait_for.py
<127.0.0.1> EXEC /bin/bash -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242/ /root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242/wait_for.py && sleep 0'
<127.0.0.1> EXEC /bin/bash -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242/wait_for.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1528987006.29-271366323320242/" > /dev/null 2>&1 && sleep 0'
failed: [127.0.0.1 -> 127.0.0.1] (item=127.0.0.1) => {
"elapsed": 120,
"failed": true,
"invocation": {
"module_args": {
"active_connection_states": [
"ESTABLISHED",
"SYN_SENT",
"SYN_RECV",
"FIN_WAIT1",
"FIN_WAIT2",
"TIME_WAIT"
],
"connect_timeout": 5,
"delay": 10,
"exclude_hosts": null,
"host": "127.0.0.1",
"path": "/etc/cni/net.d/10-calico.conflist",
"port": null,
"search_regex": null,
"sleep": 1,
"state": "present",
"timeout": 120
}
},
"item": "127.0.0.1",
"msg": "Timeout when waiting for file /etc/cni/net.d/10-calico.conflist"
}
PLAY RECAP *********************************************************************
127.0.0.1 : ok=205 changed=68 unreachable=0 failed=1
Playbook run took 0 days, 0 hours, 12 minutes, 37 seconds
user@user:/opt/ibm-cloud-private-ce-2.1.0.2/cluster$
我在这里尝试了类似问题的建议,但没有一个对我有用,这可能是由于错误消息略有不同。我不明白为什么在等待这台机器上的文件时会超时。
任何帮助表示赞赏,谢谢!