docker – 找不到openshift v3 pod文件

前端之家收集整理的这篇文章主要介绍了docker – 找不到openshift v3 pod文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在测试Openshift Origin v3.我按照说明将它安装为docker容器.我还在角色/ openshift_examples / files / examples / image-streams / image-streams-centos7.json中部署了所有流.

我现在通过从Github部署虚拟PHP应用程序来测试安装.我能够创建项目和应用程序.但是,构建处于“待定”状态.在事件选项卡中,我看到很多类似这样的消息:

"Unable to mount volumes for pod "hello-world-1-build_PHP1": 
IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/9377d3b4-9887-
11e5-81fe-00215abe5482/volumes/kubernetes.io~secret/builder-dockercfg-x2ijq-
push"): file does not exist (5 times in the last 40 seconds)"

我也尝试使用java应用程序和tomcat docker镜像,但得到了相同的错误消息.看起来像Kubernetes配置问题.

有任何想法吗?

谢谢你的帮助

UPDATE1:
来自原始容器的日志显示有关错误的更多信息:

Unable to mount volumes for pod "deployment-example-2-deploy_test1": IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/70f69f8c-98d3-11e5-8d98-00215abe5482/volumes/kubernetes.io~secret/deployer-token-8cfv8"): file does not exist; skipping pod
E1202 09:12:24.269145    4396 pod_workers.go:113] Error syncing pod 70f69f8c-98d3-11e5-8d98-00215abe5482,skipping: IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/70f69f8c-98d3-11e5-8d98-00215abe5482/volumes/kubernetes.io~secret/deployer-token-8cfv8"): file does not exist
W1202 09:12:34.229374    4396 kubelet.go:1690] Orphaned volume "ac11a2b5-9880-11e5-81fe-00215abe5482/builder-dockercfg-va0cl-push" found,tearing down volume
E1202 09:12:34.287847    4396 kubelet.go:1696] Could not tear down volume "ac11a2b5-9880-11e5-81fe-00215abe5482/builder-dockercfg-va0cl-push": IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/ac11a2b5-9880-11e5-81fe-00215abe5482/volumes/kubernetes.io~secret/builder-dockercfg-va0cl-push"): file does not exist

原始容器开头的日志条目:

202 09:12:13.992293    4396 start_master.go:278] assetConfig.loggingPublicURL: invalid value '',Details: required to view aggregated container logs in the console
W1202 09:12:13.992442    4396 start_master.go:278] assetConfig.metricsPublicURL: invalid value '',Details: required to view cluster metrics in the console
I1202 09:12:14.784026    4396 plugins.go:71] No cloud provider specified.
I1202 09:12:14.981775    4396 start_master.go:388] Starting master on 0.0.0.0:8443 (v1.1-270-ge592c18)
I1202 09:12:14.981825    4396 start_master.go:389] Public master address is https://192.168.178.55:8443
I1202 09:12:14.981855    4396 start_master.go:393] Using images from "openshift/origin-cpuFrequency:2667000 MemoryCapacity:1010421760 MachineID: SystemUUID:26A5835E-1781-DD11-BBDA-5ABE54820021 BootID:6cbd9dcc-5d4d-414d-96e7-c8a41de013f7 Filesystems:[{Device:/dev/mapper/intweb3--vg-root Capacity:156112113664} {Device:/dev/sda1 Capacity:246755328}] DiskMap:map[252:0:{Name:dm-0 Major:252 Minor:0 Size:158737629184 Scheduler:none} 252:1:{Name:dm-1 Major:252 Minor:1 Size:1044381696 Scheduler:none} 8:0:{Name:sda Major:8 Minor:0 Size:160041885696 Scheduler:deadline}] NetworkDevices:[{Name:eth0 MacAddress:00:21:5a:be:54:82 Speed:1000 Mtu:1500}] Topology:[{Id:0 Memory:1010421760 Cores:[{Id:0 Threads:[0] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1}]} {Id:1 Threads:[1] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1}]}] Caches:[]}] CloudProvider:Unknown InstanceType:Unknown}
I1202 09:12:23.010686    4396 manager.go:169] Version: {KernelVersion:3.19.0-25-generic ContainerOsVersion:CentOS Linux 7 (Core) DockerVersion:1.9.1 CadvisorVersion: CadvisorRevision:}
I1202 09:12:23.011734    4396 server.go:820] Watching apiserver
I1202 09:12:23.253556    4396 manager.go:191] Setting dockerRoot to /var/lib/docker
I1202 09:12:23.270558    4396 plugins.go:56] Registering credential provider: .dockercfg
I1202 09:12:23.363525    4396 server.go:779] Started kubelet
E1202 09:12:23.363724    4396 kubelet.go:812] Image garbage collection Failed: unable to find data for container /
I1202 09:12:23.370771    4396 kubelet.go:833] Running in container "/kubelet"
I1202 09:12:23.370860    4396 server.go:104] Starting to listen on 0.0.0.0:10250
I1202 09:12:23.734095    4396 trace.go:57] Trace "decodeNodeList *[]api.ImageStream" (started 2015-12-02 09:12:23.154869743 +0000 UTC):
[579.19167ms] [579.19167ms] Decoded 1 nodes
[579.193136ms] [1.466µs] END
I1202 09:12:23.734149    4396 trace.go:57] Trace "decodeNodeList *[]api.ImageStream" (started 2015-12-02 09:12:23.154865413 +0000 UTC):
[3.352µs] [3.352µs] Decoding dir /openshift.io/imagestreams/test1 START
[579.252571ms] [579.249219ms] Decoding dir /openshift.io/imagestreams/test1 END
[579.255504ms] [2.933µs] Decoded 1 nodes
[579.257181ms] [1.677µs] END
I1202 09:12:23.734204    4396 trace.go:57] Trace "List *api.ImageStreamList" (started 2015-12-02 09:12:23.001854335 +0000 UTC):
[1.676µs] [1.676µs] About to list directory
[732.327694ms] [732.326018ms] List extracted
[732.330138ms] [2.444µs] END
I1202 09:12:23.773150    4396 factory.go:236] Registering Docker factory
I1202 09:12:23.779446    4396 factory.go:93] Registering Raw factory
I1202 09:12:24.069082    4396 manager.go:1006] Started watching for new ooms in manager
I1202 09:12:24.074624    4396 oomparser.go:183] oomparser using systemd
I1202 09:12:24.111389    4396 kubelet.go:944] Node intweb3 was prevIoUsly registered
I1202 09:12:24.112362    4396 manager.go:250] Starting recovery of all containers
I1202 09:12:24.166309    4396 trace.go:57] Trace "decodeNodeList *[]api.ImageStream" (started 2015-12-02 09:12:23.155013407 +0000 UTC):
[1.011259672s] [1.011259672s] Decoded 1 nodes
[1.011261767s] [2.095µs] END
I1202 09:12:24.166422    4396 trace.go:57] Trace "decodeNodeList *[]api.ImageStream" (started 2015-12-02 09:12:23.155011032 +0000 UTC):
[1.327µs] [1.327µs] Decoding dir /openshift.io/imagestreams/test1 START
[1.01138385s] [1.011382523s] Decoding dir /openshift.io/imagestreams/test1 END
[1.011386853s] [3.003µs] Decoded 1 nodes
[1.01138839s] [1.537µs] END
I1202 09:12:24.166561    4396 trace.go:57] Trace "List *api.ImageStreamList" (started 2015-12-02 09:12:23.002949866 +0000 UTC):
[3.142µs] [3.142µs] About to list etcd node
[152.060049ms] [152.056907ms] Etcd node listed
[1.163577016s] [1.011516967s] Node list decoded
[1.163587911s] [10.895µs] END
I1202 09:12:24.166656    4396 trace.go:57] Trace "List *api.ImageStreamList" (started 2015-12-02 09:12:23.002947281 +0000 UTC):
[1.188µs] [1.188µs] About to list directory
[1.16368555s] [1.163684362s] List extracted
[1.163687576s] [2.026µs] END
I1202 09:12:24.196265    4396 manager.go:255] Recovery completed
I1202 09:12:24.215711    4396 manager.go:118] Starting to sync pod status with apiserver
I1202 09:12:24.215792    4396 kubelet.go:2056] Starting kubelet main sync loop.

UPDATE2

$sudo docker -v
Docker version 1.9.1,build a34a1d5

$cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
NAME="Ubuntu"
VERSION="14.04.3 LTS,Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

@Clayton:你能分享一下有关应该在1.10修复的挂载错误链接吗?谢谢!

最佳答案
您使用的操作系统和Docker版本是什么?旧版本的Docker上存在卷安装的已知问题 – OpenShift / Kube将卷安装到容器中,但是当Docker运行OpenShift时,库存Docker版本隐藏了对根安装的访问.红帽操作系统带有一个补丁,使其工作,据说Docker 1.10将进行正确的修复.替代方案是直接下载二进制文件,然后使用sudo openshift start启动它.
原文链接:https://www.f2er.com/docker/436025.html

猜你在找的Docker相关文章