Uploaded image for project: 'Distributed Tracing'
  1. Distributed Tracing
  2. TRACING-5822

[RHOSDT 3.8] invalid connector.routing.table.condition statement crashes the otc

XMLWordPrintable

    • Tracing Sprint # 286

      The Operator doesn't catch invalid configuration on connectors.routing which causes the pod to stay in CrashLoopStage
      The error shown on the pod logs is

      2025-11-24T15:43:33.856Z error service@v0.140.0/service.go:150 error found during service initialization {"resource": {"service.instance.id": "8d9bef00-de07-4205-a314-76d8b144f35d", "service.name": "otelcol", "service.version": "0.140.1"}, "error": "failed to build pipelines: statement has invalid syntax: 1:22: unexpected token \"<EOF>\" (expected <opcomparison> Value)"}
      go.opentelemetry.io/collector/service.New.func1
      go.opentelemetry.io/collector/service@v0.140.0/service.go:150
      go.opentelemetry.io/collector/service.New
      go.opentelemetry.io/collector/service@v0.140.0/service.go:202
      go.opentelemetry.io/collector/otelcol.(*Collector).setupConfigurationComponents
      go.opentelemetry.io/collector/otelcol@v0.140.0/collector.go:199
      go.opentelemetry.io/collector/otelcol.(*Collector).Run
      go.opentelemetry.io/collector/otelcol@v0.140.0/collector.go:317
      go.opentelemetry.io/collector/otelcol.NewCommand.func1
      go.opentelemetry.io/collector/otelcol@v0.140.0/command.go:39
      github.com/spf13/cobra.(*Command).execute
      github.com/spf13/cobra@v1.10.1/command.go:1015
      github.com/spf13/cobra.(*Command).ExecuteC
      github.com/spf13/cobra@v1.10.1/command.go:1148
      github.com/spf13/cobra.(*Command).Execute
      github.com/spf13/cobra@v1.10.1/command.go:1071
      main.runInteractive
      github.com/os-observability/redhat-opentelemetry-collector/main.go:58
      main.run 

      the reproducer configuration for this to happen is

      spec:
        config:
          connectors:
            routing:
              table:
                - context: log
                  condition: route()  # <<< causes the EOF 
                  pipelines:
                    - logs/debug 

              bbongart@redhat.com Benedikt Bongartz
              rhn-support-milang Michaela Lang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: