datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

DataDog is unable to get it's own container.ID

Open unacceptable opened this issue 6 years ago • 13 comments

Output of the info page (if this is a bug)

2020-05-08 21:19:34 UTC | PROCESS | WARN | (pkg/tagger/collectors/kubelet_extract.go:212 in parsePods) | Unable to parse container pName: datadog-fzf6k / cName: agent / cId:  / err: can't extract an entity ID from container ID  
2020-05-08 21:19:34 UTC | PROCESS | WARN | (pkg/tagger/collectors/kubelet_extract.go:212 in parsePods) | Unable to parse container pName: datadog-fzf6k / cName: process-agent / cId:  / err: can't extract an entity ID from container ID  
2020-05-08 21:19:34 UTC | PROCESS | WARN | (pkg/tagger/collectors/kubelet_extract.go:212 in parsePods) | Unable to parse container pName: datadog-fzf6k / cName: trace-agent / cId:  / err: can't extract an entity ID from container ID

Describe what happened: A warning was showing in the logs.

Describe what you expected: I expected the pod to get it's own container id.

Steps to reproduce the issue: Install datadog via helm.

Additional environment details (Operating System, Cloud provider, etc): Container: datadog/agent:7.19.1 EKS Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.9-eks-502bfb", GitCommit:"502bfb383169b124d87848f89e17a04b9fc1f6f0", GitTreeState:"clean", BuildDate:"2020-02-07T01:31:02Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

Code Locations https://github.com/DataDog/datadog-agent/blob/7.19.1/pkg/tagger/collectors/kubelet_extract.go#L212 https://github.com/DataDog/datadog-agent/blob/7.19.1/pkg/util/kubernetes/kubelet/kubelet_common.go#L79

unacceptable avatar May 08 '20 21:05 unacceptable

Hi @unacceptable ,

Thanks for reaching out! Could you please open a support ticket by emailing: [email protected] to troubleshoot this further with our support team.

We will need additional details to understand what's going on here.

Thanks,

Simon

Simwar avatar Jun 08 '20 15:06 Simwar

recently I was playing with ndots dnsConfig option I also added a feature to datadog helm chart to change ndots dnsConfig https://github.com/helm/charts/pull/22727 (added on June 15th 2020 in helm chart version 2.3.10)

the configuration I added is disabled by default, but once I enable ndots: 1 I get the same error as mentioned here: 2020-06-15 21:39:45 UTC | PROCESS | WARN | (pkg/tagger/collectors/kubelet_extract.go:212 in parsePods) | Unable to parse container pName: mantis-system-datadog-9w8p8 / cName: process-agent / cId: / err: can't extract an entity ID from container ID

orong-pp avatar Jun 15 '20 22:06 orong-pp

I'm also getting the 3x WARN as the OP reported.

Using the latest versions of of helm chart + DD with -jmx tag on K8 1.16.8

mswezey23 avatar Jul 29 '20 17:07 mswezey23

We've observed the same issue for other containers on DD agent 6.21 version.

kaarolch avatar Aug 12 '20 08:08 kaarolch

Also observing it with

  • datadog/cluster-agent:1.5.2
  • datadog/agent:7

christoph-kluge avatar Nov 12 '20 13:11 christoph-kluge

Same issue here: Helm chart: datadog/datadog v2.5.3 DD agent: 7.23.1 Cluster agent: 1.9.1

geidivan avatar Dec 02 '20 09:12 geidivan

Anything on this I am observing similar issue sudden for my service err: can't extract an entity ID from container ID with DD agent - 7.25.0

sandip750 avatar Feb 01 '21 16:02 sandip750

I think it could happen when there is a network issue On the client side I m getting WARN: DIAGNOSTICS Unable to reach agent Post \"http://10.34.145.44:8126/v0.4/traces\": dial tcp 10.34.145.44:8126: connect: connection refused\n"} Whereas in the agent logs I saw err: can't extract an entity ID from container ID In my case this happens when container starts before envoy is ready.

emirot avatar Apr 15 '21 05:04 emirot

can we have an update on the issue please ?

tonymayflower avatar Apr 22 '21 08:04 tonymayflower

I've seen this happening on 7.30.1 when a pod is in "ImagePullBackOff" for example. Not sure if others have pods in some failed state but getting rid of those can make the warning go away. A bit frustrating that we got the container/pod name only on loglevel DEBUG; think it might be useful at the WARN level too.

andrei693 avatar Sep 01 '21 16:09 andrei693

I am getting below error while deploying datadog in aks via helm Unable to extract containerID from cgroup name: containerd.service, err: 2023-06-27 04:37:07 UTC | CORE | WARN | (pkg/collector/corechecks/ebpf/tcp_queue_length.go:109 in Run) | Unable to extract containerID from cgroup name: node-problem-detector.service, err: 2023-06-27 04:37:07 UTC | CORE | WARN | (pkg/collector/corechecks/ebpf/tcp_queue_length.go:109 in Run) | Unable to extract containerID from cgroup name: walinuxagent.service, err:

sundeepbhatia1989 avatar Jun 27 '23 06:06 sundeepbhatia1989

This issue has been automatically marked as stale because it has not had activity in the past 15 days.

It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window.

Thank you for your contributions!

dd-octo-sts avatar Oct 22 '25 10:10 dd-octo-sts

Hi @unacceptable 👋 — thanks again for taking the time to report this issue.

We're closing this due to inactivity: it's been over 6 months since the last update, and the stale bot's check-in didn't receive a response. This isn't a reflection of the value of the contribution — it's purely a hygiene pass to keep the backlog actionable.

If this is still relevant to you:

  • Feel free to reopen this issue or open a new one with updated reproduction steps
  • If the underlying issue is still present, a fresh report against the current version will get faster attention

Thanks for your patience and for contributing to the Datadog Agent! 🙏

jacjtito avatar May 12 '26 11:05 jacjtito