Changing app-protocol from HTTP2 to other protocols will cause glbc to hit nil pointer #675
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
Symptom: Create an ingress with HTTP2 app protocol. For instance: https://github.com/kubernetes/kubernetes/tree/master/test/e2e/testing-manifests/ingress/http2
Manually change the app protocol on the spec of service from HTTP2 to something like HTTPS,HTTP. This will cause glbc to hit nil pointer and crash with following stacktrace in ingress-gce 1.2:
Root Cause:
GCE GetHealthCheck V1 API used to return the health check type to "HTTP" while the healthcheck object is create beta API using "HTTP2".
Now HTTP2 is promoted to GA on GCE. GCE GetHealthCheck V1 API returns health check type to "HTTP2".
The GCE go client used by ingress-gce does not have the new HTTP2 fields in the V1 Healthcheck API.
In case 1, this path is hit https://github.com/kubernetes/ingress-gce/blob/release-1.2/pkg/healthchecks/healthchecks.go#L328
With 2, this path is hit https://github.com/kubernetes/ingress-gce/blob/release-1.2/pkg/healthchecks/healthchecks.go#L332
hc.Http2HealthCheck
is nil because the V1 healthcheck object does not containHTTP2HealthCheck
fields due to 3Impacted Versions: 1.2, 1.3, 1.4, 1.5, HEAD
The text was updated successfully, but these errors were encountered: