Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiarch support seems to be incomplete #874

Closed
devops-42 opened this issue May 16, 2022 · 4 comments · Fixed by #882
Closed

Multiarch support seems to be incomplete #874

devops-42 opened this issue May 16, 2022 · 4 comments · Fixed by #882

Comments

@devops-42
Copy link

Hi,

I tried to install the opentelemetry-operator via helm chart on a microk8s running on Apple M1:

helm install \
  opentelemetry-operator open-telemetry/opentelemetry-operator -n  opentelemetry-operator-system \
  --set manager.image.tag=v0.50.0

According to github the image used should be multiarch:
https://github.com/open-telemetry/opentelemetry-operator/pkgs/container/opentelemetry-operator%2Fopentelemetry-operator/21667125?tag=v0.50.0

Immediately after starting the pod crashes with standard_init_linux.go:228: exec user process caused: exec format error.

Do you plan to support the M1 architecture?

Thanks for your help!
Cheers

@pavolloffay
Copy link
Member

I am not familiar how docker/k8s multiarch works.

Did you try to use directly the image SHA for arm64 $ docker pull ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:latest@sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad from https://github.com/open-telemetry/opentelemetry-operator/pkgs/container/opentelemetry-operator%2Fopentelemetry-operator/21667125?tag=v0.50.0

@devops-42
Copy link
Author

Hi @pavolloffay,

yes, I tried to run a container from that image directly:

docker run --rm -ti ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:latest@sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad 
{"msg":"exec container process `/manager`: Exec format error","level":"error","time":"2022-05-09T16:56:47.000984445Z"}

The error will be shown immediately, the container crashes.

@pavolloffay
Copy link
Member

on my linux box I get a different message

docker run --rm -ti ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:latest@sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad               ploffay@fedora

Unable to find image 'ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:latest@sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad' locally
ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator@sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad: Pulling from open-telemetry/opentelemetry-operator/opentelemetry-operator
b0b160e41cf3: Pull complete 
8670c134f7a6: Pull complete 
Digest: sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad
Status: Downloaded newer image for ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator@sha256:32ecc752193cbbf049749f826a37a2dd8a08519e03619e869a8aa6e2abf1cfad
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
{"level":"info","ts":1652957308.439552,"msg":"Starting the OpenTelemetry Operator","opentelemetry-operator":"0.50.0","opentelemetry-collector":"ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector:0.50.0","opentelemetry-targetallocator":"ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:0.1.0","auto-instrumentation-java":"ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java:1.11.1","auto-instrumentation-nodejs":"ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-nodejs:0.27.0","auto-instrumentation-python":"ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-python:0.28b1","build-date":"2022-05-09T14:32:35Z","go-version":"go1.18.1","go-arch":"amd64","go-os":"linux","labels-filter":[]}
{"level":"error","ts":1652957308.4396772,"logger":"controller-runtime.client.config","msg":"unable to get kubeconfig","error":"invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable","errorCauses":[{"error":"no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}],"stacktrace":"sigs.k8s.io/controller-runtime/pkg/client/config.GetConfigOrDie\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/client/config/config.go:153\nmain.main\n\t/workspace/main.go:116\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"}
---------------------------------------------------------------------------------------------------------

@pavolloffay
Copy link
Member

@devops-42 this PR might solve the issue #882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants