Open Pennyzct opened 6 years ago
Since you mention there are multi-arch images, what would be needed to accomplish your goal?
OpenWhisk makes use of external images (like for kafka and couchdb) and ideally we wouldn't build those on our own.
For the images we build ourselves though, it'd be pretty cool to have those be multi-arch ARM ready.
Hi all, I've been working on multi-architecture for some of the other platforms. I did need to generate my own Kafka image and my own apigateway image for it to work. See work I've done at https://github.com/jonpspri/s390x-docker-builds and PR #3133 for direction. Essentially, you'll need to generate arm-specific equivalent images for kafka and apigateway. I lack access to an ARM server at the moment, so I can't quite get that rolling yet, but it's on the multi-architecture plan list.
Environment details:
Steps to reproduce the issue:
I was trying to install OpenWhisk on Arm server based on the introduction here.when Deploying Using CouchDB, it encountered some break down.
Provide the actual results and outputs:
root@ubuntu:~/gobin/src/github.com/apache/openwhisk/ansible# ansible-playbook apigateway.yml
….. ….. TASK [redis : pull the redis:3.2 image] **** Tuesday 09 January 2018 11:27:12 +0800 (0:00:01.307) 0:00:01.348 * changed: [172.17.0.1] …… ……
TASK [apigateway : pull the openwhisk/apigateway:0.8.2 image] ** Tuesday 09 January 2018 11:27:48 +0800 (0:00:00.844) 0:00:37.047 * changed: [172.17.0.1]
TASK [apigateway : (re)start apigateway] ***** Tuesday 09 January 2018 11:28:48 +0800 (0:01:00.623) 0:01:37.670 * changed: [172.17.0.1]
TASK [apigateway : wait until the API Gateway in this host is up and running] ** Tuesday 09 January 2018 11:28:52 +0800 (0:00:04.181) 0:01:41.852 * fatal: [172.17.0.1]: FAILED! => {"attempts": 12, "changed": false, "content": "", "failed": true, "msg": "Status code was not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://172.17.0.1:9000/v1/apis"} PLAY RECAP *** 172.17.0.1 : ok=7 changed=5 unreachable=0 failed=1
root@ubuntu:~/gobin/src/github.com/apache/openwhisk/ansible# ansible-playbook openwhisk.yml
PLAY [zookeepers] **
TASK [Gathering Facts] *** Tuesday 09 January 2018 13:48:44 +0800 (0:00:00.040) 0:00:00.040 * ok: [kafka0]
TASK [zookeeper : pull the zookeeper:3.4 image] ….. ….. PLAY [kafkas] **
TASK [Gathering Facts] *** Tuesday 09 January 2018 13:50:00 +0800 (0:00:00.055) 0:01:16.936 * ok: [kafka0]
TASK [kafka : pull the wurstmeister/kafka:0.11.0.1 ]
Tuesday 09 January 2018 13:50:01 +0800 (0:00:00.835) 0:01:17.771 * …. ….. TASK [kafka : wait until the kafka server started up] ** Tuesday 09 January 2018 13:50:44 +0800 (0:00:02.641) 0:02:00.489 * …. …… fatal: [kafka0]: FAILED! => {"attempts": 10, "changed": true, "cmd": "docker logs kafka0", "delta": "0:00:00.034615", "end": "2018-01-09 13:51:39.839736", "failed": true, "rc": 0, "start": "2018-01-09 13:51:39.805121", "stderr": "standard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"\nstandard_init_linux.go:195: exec user process caused \"exec format error\"", "stderr_lines": ["standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\"", "standard_init_linux.go:195: exec user process caused \"exec format error\""], "stdout": "", "stdout_lines": []} [FAILED]
PLAY RECAP ***** kafka0 : ok=7 changed=5 unreachable=0 failed=1
Additional information you deem important:
I know the error is related to running binaries of x86 on ARM, image wurstmeister/kafka:0.11.0.1 and openwhisk/apigateway:0.8.2 all for amd64 and similar issue has been put in repository #2829 .Quoting from the comments below the issue,” Got no quick fix for that. Apparently, there are alpine base images for ARM specifically.” and right now, the basic official alpine image have all been Multi-arch image, supporting arm64v8. Is there any plan to develop relevant image for arm?