Skip to content

Support tracefs for the process agent (SLES 16.1) #400

Done

Description

@craffit

The process-agent's eBPF network tracer fails on hosts that do not mount debugfs at boot, such as SLES 16.1 and SL Micro 6.2. The process-agent then crash-loops with eBPF based network tracer unsupported: tracefs or debugfs is not available.

The tracer only needs tracefs, which these hosts still mount at /sys/kernel/tracing, but:

  • offset guessing reads the hardcoded /sys/kernel/debug/tracing/events/net/net_dev_queue/format (pkg/network/tracer/offsetguess/tracepoint_offsets.go in datadog-agent-upstream-for-process-agent);
  • the agent chart only mounts the host's /sys/kernel/debug into the process-agent.

Solution

  • datadog-agent-upstream-for-process-agent: read the format file through ebpf-manager's tracefs package, so it uses the detected tracing root. Bump it here.
  • helm-charts-internal: mount the host's /sys/kernel/tracing into the process-agent (read-write), keeping the /sys/kernel/debug mount for older hosts.

Upstream made the equivalent chart change for Talos (DataDog/helm-charts PR 3005).

Validation (QA hand-off)

Run on the fixed agent and chart, with default values:

  1. Render the agent chart and diff it against the previous release: the node-agent DaemonSet only gains the /sys/kernel/tracing volume and its process-agent mount.
  2. Beest rancher-sles16 with apply_workaround=false (no debugfs on the host): all specs pass, including reboot recovery.
  3. Beest rancher-sles16 with apply_workaround=true (debugfs mounted): all specs pass.
  4. A host that does not mount /sys/kernel/tracing but does mount debugfs (e.g. a node with an older systemd such as Amazon Linux 2): the eBPF tracer starts via the debugfs fallback and connections are reported.
  5. An existing Beest scenario on another OS stays green.

Docs: https://github.com/StackVista/stackstate/issues/823. With this fix, customers no longer need to mount debugfs; the prerequisite becomes tracefs, which the OS mounts by default.
Validation: https://github.com/StackVista/stackstate/issues/824

Activity

  1. added
    kind/bug
    on Nov 23, 2026
  2. self-assigned this
    on Nov 23, 2026
  3. craffit commented on Nov 23, 2026

    @craffit
    Author

    Implementation PRs:

    Merge order: #856, then re-point and merge #401, then #458. The QA validations above run on the resulting agent release.

  4. assigned and unassigned on Nov 23, 2026
  5. added this to the v2.13.1 milestone on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugsquad/marvin

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions