Repository navigation
fix(cni): pin the OTLP endpoint to the collector's ClusterIP so the host-resolver plugin can export (#950) - #969
Merged
Merged
Conversation
Owner
Author
|
Kind run 2026-09-26 22:06–22:16Z on |
bpalermo
marked this pull request as ready for review
September 26, 2026 22:17
…#950) The CNI plugin binary is exec'd by the container runtime on the HOST, under the host's resolver, which cannot resolve cluster Service names on Talos (or kind). Every flush failed with "name resolver error: produced zero addresses" and no aether_cni_* series ever existed in Prometheus -- including the capture_divert error counter (#947), the only non-log signal of a pod that started uncaptured. cni-install runs in the agent pod (dnsPolicy ClusterFirstWithHostNet), so it resolves the endpoint's host through cluster DNS and writes "<ClusterIP>:port" into the netconf (--otlp-pin-endpoint, default true). Addresses, empty endpoints and names that fail to resolve are written unchanged (the pre-#950 behaviour). Multiple answers pin deterministically (lowest, IPv4 first). The transport is unchanged: plaintext OTLP gRPC, so no TLS server name to keep. Chart 0.95.1: cniInstall.pinOTLPEndpoint (default true) and cniInstall.otlpEndpoint (overrides otel.endpoint for the CNI alone). Flush failures are logged at WARN instead of DEBUG. Gates: install_test (pin + netconf render), cmd_test (flag default), aether_cni_otlp_{pin,override}_test (chart argv), and e2e/uds.sh assertion f: an OTLP collector at otel-collector.o11y.svc.cluster.local must receive aether.cni.operations after a pod ADD on kind, whose node resolver cannot resolve cluster names either. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…(pipefail SIGPIPE false negative) The first kind run of assertion f stayed red for 60s while the collector's debug log already carried aether.cni.operations: under set -o pipefail, grep -q's early exit SIGPIPEs kubectl logs and the pipeline reports failure (rc 141) even though the metric matched. Grep a captured string instead. Seen: rc=141 on the exact pipeline against the live cluster; green after. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
fix/cni-otlp-host-resolver
branch
from
September 26, 2026 23:37
7cf4891 to
ced0c23
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #950. Draft until the new
e2e/uds.shassertion has run on kind.The CNI plugin runs under the HOST resolver, so
otel-collector.o11y.svc.cluster.local:4317never resolved on Talos ("name resolver error: produced zero addresses") and noaether_cni_*series ever existed — includingaether_cni_operations_total{operation="capture_divert",result="error"}, the only signal that a pod started uncaptured (#947).What
cni-install(which runs in the agent pod,ClusterFirstWithHostNet, so it CAN resolve Services) resolves the endpoint's host once (5 s timeout) and writes<ClusterIP>:4317into the netconf; the plugin then dials an IP that kube-proxy makes reachable from the host. Unchanged when the endpoint is empty, already an IP, portless, or unresolvable (old behaviour). Several answers → lowest address, IPv4 first, deterministic bytes; a headless Service gets a warning. Plaintext OTLP gRPC as before, so no TLS name to preserve. Flag--otlp-pin-endpoint(default true).cniInstall.otlpEndpoint(CNI-only override ofotel.endpoint) andcniInstall.pinOTLPEndpoint.cni/internal/telemetry: flush failures log at WARN, not DEBUG.Gates
TestPinOTLPEndpoint(9 cases) +TestCreateCNIConfigFilePinsTheOTLPEndpointexpected "10.96.12.34:4317", actual "otel-collector.o11y.svc.cluster.local:4317")TestOTLPPinDefaultsOnaether_cni_otlp_pin_test,aether_cni_otlp_override_test(helm_template_test)e2e/uds.shassertion f (verify_cni_telemetry): conflistotlp_endpoint==<ClusterIP>:4317on the kind node, collector debug log showsaether.cni.operationswithin 60 s of a pause-pod ADD/DEL, plugin log has noproduced zero addressescluster.local, the same situation as Talos;upnow deploys a collector ino11yand points only the CNI at itNot run: the kind e2e (queued now), anything on talos,
--config=race.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr