[英]openshift origin on ppc64le
I am trying to run openshift on ubuntu 16.04 ppc64le (IBM POWER8). 我试图在ubuntu 16.04 ppc64le(IBM POWER8)上运行openshift。
I succeeded in building the binaries from source (openshift origin), and in starting openshift. 我成功地从源代码构建了二进制文件(openshift起源),并开始了openshift。
However, when I did "oc cluster up", I see it pulls openshift/origin:v3.6.1 image from internet and it eventually fails. 但是,当我执行“ oc cluster up”时,我看到它从互联网上提取了openshift / origin:v3.6.1映像,但最终失败了。
I think Redhat pushed openshift/origin:v3.6.1 for x86 architecture only, not for ppc64le. 我认为Redhat仅针对x86体系结构而不是ppc64le推送了openshift / origin:v3.6.1。
How can I configure it to use openshift/origin-ppc64le:v3.6.1, provided I build the image on my own ? 如果我自己构建映像,如何配置它以使用openshift / origin-ppc64le:v3.6.1?
Below is the error I get with "oc cluster up". 以下是“ oc cluster up”出现的错误。
u0017649@sys-90043:~/origin/_output/local/bin/linux/ppc64le$ sudo ./oc cluster up
Starting OpenShift using openshift/origin:v3.6.1 ...
Pulling image openshift/origin:v3.6.1
Pulled 1/4 layers, 26% complete
Pulled 1/4 layers, 51% complete
Pulled 2/4 layers, 73% complete
Pulled 2/4 layers, 82% complete
Pulled 2/4 layers, 89% complete
Pulled 3/4 layers, 97% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v3.6.1 image ...
Pulling image openshift/origin:v3.6.1
Pulled 1/4 layers, 26% complete
Pulled 1/4 layers, 51% complete
Pulled 2/4 layers, 73% complete
Pulled 2/4 layers, 82% complete
Pulled 2/4 layers, 89% complete
Pulled 3/4 layers, 97% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... FAIL
Error: Cannot get TCP port information from Kubernetes host
Caused By:
Error: Docker run error rc=1
Details:
Image: openshift/origin:v3.6.1
Entrypoint: [/bin/bash]
Command: [-c cat /proc/net/tcp && ( [ -e /proc/net/tcp6 ] && cat /proc/net/tcp6 || true)]
Error Output:
standard_init_linux.go:187: exec user process caused "exec format error"
If you built the binaries then you should be able to use the hack/build-local-images.py
script to shove those binaries into local images. 如果构建了二进制文件,则应该能够使用hack/build-local-images.py
脚本将这些二进制文件推送到本地映像中。 When you run oc
specify the version and it should start with your images you just created: oc cluster up --version latest
. 运行oc
指定版本,该版本应以刚创建的映像开头: oc cluster up --version latest
。
This works for me on x86, YMMV 这对我在x86,YMMV上有效
Rather than label your built image openshift/origin-ppc64le:v3.6.1
you could label your built image openshift/origin:v3.6.1
tricking the sudo ./oc cluster up
to your ppc64le image. 除了标记构建的映像openshift/origin-ppc64le:v3.6.1
您还可以标记构建的映像openshift/origin:v3.6.1
欺骗sudo ./oc cluster up
ppc64le映像。
Attempts seem to have been made previously to get a multiarch image going https://github.com/openshift/origin/issues/17468 以前似乎已经尝试过获得多体系结构映像, 网址为https://github.com/openshift/origin/issues/17468
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.