在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$
我尝试了类似问题here中的建议,但没有一个对我有用,这可能是由于错误消息略有不同。 我不明白为什么它在等待这台机器上的文件时会超时。
感谢任何帮助,谢谢!
答案 0 :(得分:0)
我想这个问题应该是因为您将ICP节点IP指定为&#39; 127.0.0.1&#39;在ICP主机文件中。通常情况下,我们不能使用&#39; 127.0.0.1&#39;作为ICP节点IP,谢谢。