Repository navigation
Description
Summary
The kafka_input_otel system tests fail in the daily jobs when running against stack 9.6.0-SNAPSHOT. The OTel collector bundled in the agent no longer accepts two kafkareceiver config keys that the package renders by default, so the collector fails to start and no data is ingested.
The keys were removed upstream in OpenTelemetry Collector Contrib v0.160.0, which is also bundled in elastic-agent 9.4.8+, 9.5.5+ and 8.19.23+ (see Affected versions).
Failing tests
All system test cases for the v4_2 variant:
kafka_input_otel/defaultkafka_input_otel/json-encodingkafka_input_otel/only-logskafka_input_otel/only-metricskafka_input_otel/only-traces
Each fails with no data streams matching ... appeared within 10m0s.
Error
The agent logs show the collector exiting on config load:
collector exited with error (will try to recover in 5.935836846s): ... failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s):
'receivers' error reading configuration for "kafka/otelcol-kafkareceiver-...-otelcol-kafka_input_otel-kafkareceiver-...": decoding failed due to the following error(s):
'' decoding failed due to the following error(s):
'kafkareceiver.Config' has invalid keys: group_rebalance_strategy, resolve_canonical_bootstrap_servers_only
Cause
agent/input/input.yml.hbs renders two keys that the collector no longer supports:
| Key | Template | Manifest var | Upstream |
|---|---|---|---|
resolve_canonical_bootstrap_servers_only |
line 10 (unconditional) | manifest.yml:70 |
No-op since the franz-go migration. Sarama was removed in opentelemetry-collector-contrib#48260. |
group_rebalance_strategy |
lines 30-31 (rendered when set, default cooperative-sticky) |
manifest.yml:111 |
Replaced by group_rebalance_strategies, an ordered list (#48662). |
Both keys were removed from the receiver config in opentelemetry-collector-contrib#50381 ("Remove deprecated config options", merged 2026-08-26). The first contrib release that includes it is v0.160.0 (v0.159.0 does not).
Both keys are rendered with the default test configuration (see _dev/test/policy/test-default.expected), so every system test case hits the error.
This is not a Fleet/Kibana issue: the generated collector config is rejected by the collector's strict decoder.
Affected versions
elastic-agent pins the contrib kafkareceiver in internal/edot/go.mod. Releases that bundle contrib >= v0.160.0 reject the keys:
| Line | Last release accepting the keys | First release rejecting them |
|---|---|---|
| 9.4 | 9.4.7 (contrib v0.159.0) | 9.4.8 (v0.161.0) |
| 9.5 | 9.5.4 (v0.159.0) | 9.5.5 (v0.161.0) |
| 8.19 | 8.19.22 (v0.159.0) | 8.19.23 (v0.161.0) |
| 9.6 | n/a | no release tag yet; main and the 9.6 branch bundle v0.163.0, so 9.6.0-SNAPSHOT is affected |
The 9.4, 9.5 and 8.19 branches currently pin v0.163.0, so snapshots and future patch releases of those lines are affected as well.
The package declares kibana.version: ^9.4.0, so it is broken on 9.4.8+ and 9.5.5+ too, not only on 9.6.
Relates
Owners
cc @elastic/obs-ds-intake-services (owner of kafka_input_otel package)
Activity