【发布时间】:2015-05-02 09:17:14
【问题描述】:
我在 centos 6.6 上运行 https://github.com/openshift/origin/tree/v0.3.3。当我跑步时:
sudo /opt/bin/openshift start
我看到一个错误:
I0301 22:02:04.738381 18093 pod_cache.go:194] error getting pod deploy-docker-registry-16mttp status: Get http://localhost:10250/api/v1beta1/podInfo?podID=deploy-docker-registry-16mttp&podNamespace=default: dial tcp 127.0.0.1:10250: connection refused, retry later
E0301 22:02:04.738422 18093 pod_cache.go:260] Error getting info for pod default/deploy-docker-registry-16mttp: Get http://localhost:10250/api/v1beta1/podInfo?podID=deploy-docker-registry-16mttp&podNamespace=default: dial tcp 127.0.0.1:10250: connection refused
如果我这样做:
docker ps -a | grep origin-deployer
然后我明白了:
b207ce593385 openshift/origin-deployer:v0.3.3 "/usr/bin/openshift- 31 hours ago Exited (255) 31 hours ago k8s_deployment.6c8f5c13_deploy-docker-registry-16mttp.default.api_11ae6e53-bf85-11e4-b8b2-080027bb06ce_8c701fc0
所以我跑了:
docker logs b207ce593385
然后得到:
228 20:06:37.955877 1 deployer.go:64] Get https://10.0.2.15:8443/api/v1beta1/replicationControllers/docker-registry-1?namespace=default: dial tcp 10.0.2.15:8443: no route to host
如果我这样做:
ping 10.0.2.15
它有效。如果我尝试:
https://10.0.2.15:8443
它返回:
404 Page Not Found
所以服务器是响应式的。如果我在https://10.0.2.15:8444/ 打开 OpenShift Web 控制台并浏览默认项目,它会显示一个状态为失败的 deploy-docker-registry-16mttp pod。 “节点上的 IP”是 172.17.0.3,它确实响应 ping。如果我运行:
osc describe service docker-registry
它返回:
Name: docker-registry
Labels: docker-registry=default
Selector: docker-registry=default
Port: 5000
Endpoints: <empty>
No events.
它应该返回:
Endpoints: 172.17.0.60:5000
按照说明。当我尝试时:
ping 172.17.0.60
它返回:
PING 172.17.0.60 (172.17.0.60) 56(84) bytes of data.
From 172.17.42.1 icmp_seq=2 Destination Host Unreachable
From 172.17.42.1 icmp_seq=3 Destination Host Unreachable
...
很多活动部件,我是新手,所以任何建议都将不胜感激。我可能错过了其中一个配置步骤。
【问题讨论】:
-
如果我运行一个 centos:centos7 容器,那么我可以从运行在其中的 bourne shell ping 10.0.2.15
-
根据 IRC 的说法,大多数开发人员现在都在使用 Fedora 20+ 或 Centos 7,所以我会再试一次。我最初尝试在 Mac 上的 VirtualBox 上安装 Centos 7 失败,因为它在安装过程中放弃了蓝牙支持。
标签: docker centos6 openshift-origin