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

[BUG] otel-agent binary not present in Docker image #28523

Open
nickvecelliooo opened this issue Aug 16, 2024 · 4 comments
Open

[BUG] otel-agent binary not present in Docker image #28523

nickvecelliooo opened this issue Aug 16, 2024 · 4 comments

Comments

@nickvecelliooo
Copy link

Agent Environment
Initially found on 7.55.2, also tested on 7.55.3, latest, and 7-beta (the most recent push to dockerhub)

Describe what happened:
When otelCollector.enabled is set to true in the Helm chart, a container is added to the pod called otel-agent, with a command of

  command: ["otel-agent", "-foreground", "-config={{ template "datadog.otelconfPath" . }}/datadog.yaml"]

When the container tries to start, the following occurs:

    message: 'failed to create containerd task: failed to create shim task: OCI
      runtime create failed: runc create failed: unable to start container
      process: exec: "otel-agent": executable file not found in $PATH: unknown'

Describe what you expected:
The otel-agent binary to be present and the container to start

Steps to reproduce the issue:
Install the Datadog Helm chart with the below

datadog:
  apiKey: <yoink>
  clusterName: demo
  otelCollector:
    enabled: true

and the pod will not start.

This can also be tested in the images on dockerhub

$ docker run -it datadog/agent:7-beta bash
root@a5bfaa78b3f9:/# find / -name 'otel*'
/opt/entrypoints/otel-agent
root@a5bfaa78b3f9:/# cat /opt/entrypoints/otel-agent 
#!/usr/bin/env bash
set -euo pipefail

exec /opt/datadog-agent/embedded/bin/otel-agent --config /etc/datadog-agent/otel-config.yaml
root@a5bfaa78b3f9:/# /opt/datadog-agent/embedded/bin/otel-agent
bash: /opt/datadog-agent/embedded/bin/otel-agent: No such file or directory
@adaosantos
Copy link

Same problem here =/

@Gaelik-git
Copy link

I think this is because the feature is in beta:

You can find from this example in the helm repo : https://github.com/DataDog/helm-charts/blob/main/examples/datadog/agent_otel_collector.yaml that the image used is a not the latest one

agents:
  image:
    repository: datadog/agent-dev
    tag: nightly-ot-beta-main
    doNotCheckTag: true

When testing this image it seems to work

@sanglt
Copy link

sanglt commented Nov 26, 2024

Hi team,

Do you have any update on this work? We are want to use the otel collector feature and waiting this issue.

@truthbk
Copy link
Member

truthbk commented Jan 29, 2025

Hey @sanglt sorry for the slow response. As mentioned above, the feature is indeed still in beta. There are several beta images available (you can identify them with the ot-beta suffix in the image tags). If you are interested in an extensive use of the feature, I would recommend you reach out to us to join the beta testing program.

Thank you!

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

No branches or pull requests

5 participants