-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.12.z
-
Important
-
No
-
ODC Sprint 236
-
1
-
Rejected
-
False
-
Description of problem:
Allow WASM based images in OpenShift
Version-Release number of selected component (if applicable):
4.12.9
How reproducible:
Always
Steps to Reproduce:
1. Try create new app via such OC CLI: oc new-app --image=docker.io/wasmedge/example-wasi:latest --name=wasi-sample 2. It should output similar to such: $ oc new-app --image=docker.io/wasmedge/example-wasi:latest --name=wasi-sample --> Found container image 332aed9 (7 months old) from docker.io for "docker.io/wasmedge/example-wasi:latest" * An image stream tag will be created as "wasi-sample:latest" that will track this image--> Creating resources ... imagestream.image.openshift.io "wasi-sample" created deployment.apps "wasi-sample" created --> Success Run 'oc status' to view your app. 3. Then try to query related pod name and see it in Crash Loop: oc get pods | grep wasi-sample wasi-sample-7b455f9b95-nfgsx 0/1 CrashLoopBackOff 5 (2m29s ago) 5m27s 4. Try to get logs out of that pod and observe "exec format error": oc logs pod/wasi-sample-7b455f9b95-nfgsx exec /wasi_example_main.wasm: exec format error
Actual results:
Error - exec format error
Expected results:
Log output should be similar to such: Random number: 402625620
Additional info: