在安装 IBM RedHat OpenShift Container Platform时碰到如下错误:Failure summary:
1. Hosts: master171.ocp.ibm.com
Play: Deploy the central bootstrap configuration
Task: Wait for the sync daemonset to become ready and available
Message: Failed without returning a message.
查看各节点日志
systemctl status docker -l
会有No such image: registry.ocp.ibm.com:5000/openshift3/ose-pod:v3.11.16以及Error getting v2 registry: Get
https://registry.ocp.ibm.com:5000/v2: dial tcp :5000: getsockopt: no router to host
第一响应是各节点到镜像服务的主机通讯问题了。
于是,在镜像服务的本机测试之,没有问题
ssh registry.ocp.ibm.com 5000
docker login
https://registry.ocp.ibm.com:5000
wget
https://registry.ocp.ibm.com:5000/v2
curl
https://registry.ocp.ibm.com:5000/v2
那么,在各个节点上面进行验证:同样的问题。
于是可以确认是各节点到服务器的网络问题了。
ip route
检查路由之,没有问题
docker network ls
检查docker网络,没有问题
sestatus
检查设置没有问题
iptables -L
检查iptables规则,一团乱啊!!!
于是停止服务
systemctl stop docker
开始刷新iptables规则
iptables --flush
iptables -tnat --flush
然后再启动服务
systemctl start docker
再docker login
https://registry.ocp.ibm.com:5000验证之,顺利通过!问题解决!
接着继续安装,顺利安装成功!
问题的解决方法很简单,但是需要一步步验证哪里出了问题并找到办法进行解决!