Repository navigation
Description
Description:
After upgrading our development clusters to v1.3.1 of Envoy Gateway, we noticed that none of our HTTPRoutes in the cluster were not registering to the proxy listeners, making all services unavailable. This was validated with egctl config envoy-proxy listener and ... routes, showing that none of the configured routes were registered.
❯ curl https://<url> -vvv
* Host <url>:443 was resolved.
* IPv6: (none)
* IPv4: ...
* Trying ...
* Connected to ... port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ...:443
* Closing connection
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ...:443
❯ openssl s_client -connect ...:443
Connecting to ...
CONNECTED(00000005)
4088A9F501000000:error:0A000126:SSL routines::unexpected eof while reading:ssl/record/rec_layer_s3.c:693:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 343 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Protocol: TLSv1.3
This TLS version forbids renegotiation.
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
In the envoy logs, these log lines were visible:
2025-03-12T11:13:00.577Z ERROR xds-translator runner/runner.go:85 failed to translate xds ir {"runner": "xds-translator", "error": "otel.Text is nil\notel.Text is nil"}
2025-03-12T11:13:00.577Z INFO provider.demo-keyauth.demo-keyauth kubernetes/status_updater.go:109 status unchanged, bypassing update {"runner": "provider"}
2025-03-12T11:13:00.577Z INFO provider kubernetes/status_updater.go:145 received a status update {"runner": "provider", "namespace": "<namespace>", "name": "<name>"}
2025-03-12T11:13:00.577Z ERROR watchable message/watchutil.go:80 observed an error {"runner": "xds-translator", "error": "otel.Text is nil\notel.Text is nil"}
After disabling the openTelemetry sink from the proxy access log config, the routes were configured and services became accessible.
The lines generating the logs seems to originate here:
gateway/internal/xds/translator/accesslog.go
Lines 339 to 341 in df2bb96
| if otel.Text == nil { | |
| return nil, errors.New("otel.Text is nil") | |
| } |
When downgrading back to v1.3.0, the existing telemetry sink configuration works again.
Repro steps:
Envoy proxy configmap includes following telemetry config:
...
telemetry:
accessLog:
settings:
- format:
json:
...
type: JSON
sinks:
- openTelemetry:
host: telemetry-opentelemetry-collector.telemetry.svc.cluster.local
port: 4317
resources:
k8s.cluster.name: <cluster-name>
type: OpenTelemetry
- file:
path: /dev/stdout
type: File
Environment:
envoy-gateway v1.3.1, templated and installed via latest Helm Chart.
Logs:
Included in description.
Activity
zirain commentedon Mar 12, 2025
cc @guydc