You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Service to service and route creation tests are flaky in k8s 1.22.0 in github-actions #12064
github-actions e2e tests should pass in k8s 1.22.0 as in previous versions
Actual Behavior
by opening a PR most of the time the e2e test in ./test/e2e/service_to_service_test.go:140 fails with the following message
Failed to start endpoint of httpproxy: response: status: 502, body: dial tcp: lookup svc-to-svc-via-activator-a-disabled-aeyepfai.serving-tests.svc.c1286518828.local on 10.96.0.10:53: no such host
headers: map[Content-Length:[132] Content-Type:[text/plain; charset=utf-8] Date:[Thu, 30 Sep 2021 23:15:48 GMT] Server:[istio-envoy] X-Content-Type-Options:[nosniff] X-Envoy-Upstream-Service-Time:[123] Zipkin_trace_id:[37b1e096bae4e775490c6dfd375f1b80]] did not pass checks: status = 502 502 Bad Gateway, want one of: [200]
and in a few cases the e2e test in ./test/conformance/api/v1/route_test.go:52 fails with the following message
didn't serve the expected text "Re-energize yourself with a slice of pepperoni!": response: status: 200, body: What a spaceport!, headers: map[Content-Length:[17] Content-Type:[text/plain; charset=utf-8] Date:[Wed, 29 Sep 2021 11:17:48 GMT] Server:[istio-envoy] X-Envoy-Upstream-Service-Time:[12] Zipkin_trace_id:[d7cc0d7fc2c01517fb16f2d26a49b975]] did not pass checks: body = What a spaceport!, want: Re-energize yourself with a slice of pepperoni!
Steps to Reproduce the Problem
Attempts to reproduce it locally have not succeeded consistently but the problem can be seen in many of the currently open pull requests, it's possible that the issue is specific to the github-actions runtime or configuration.
TODO:
The ingress assigned to run on k8s version 1.22.0 is Istio but it would be useful to confirm if this happens with other ingresses
When the route test fails it seems to be caused by a race condition, when the route reports ready it doesn't immediately changes the service response to the new revision's but checking the response after the test failed the response is the one expected.
It could be fixed at the test level by changing the CheckEndpointState call to WaitForEndpointState but I assume the idea is for route ready to mean that the route has finished updating and now serves the new revision
I found some interesting information on the matter, apparently the latest version of Istio used in our kind tests is 1.10.3 according to the images for the pods in the istio-system namespace: docker.io/istio/proxyv2:1.10.3 and docker.io/istio/pilot:1.10.3. But according to Istio's documentation the only version supporting k8s 1.22.0 is Istio 1.11
Seems like in order to use the supported version of Istio in these tests we need to point the Istio version to the latest version instead of stable as per the changes here knative-extensions/net-istio/pull/722
I've been tracking runs of the e2e tests against different ingresses with a custom workflow in this PR with this document here
According to that data although some tests fail in other versions sometimes I think it's pretty safe to say that the problem is most common with Istio and k8s 1.22.0
cc. @dprotaso@nak3
Thank you @shinigambit I agree that we should test the Istio latest for now. For long term, I think we should drop stable (or rename latest to stable) in net-istio - I opened knative-extensions/net-istio#782
@nak3 oh I forgot to mention that the Istio version being used in that PR is actually latest so it doesn't actually fix this issue, the problem seems to be something else related to Istio and k8s 1.22.0
Activity
leetcope commentedon Sep 30, 2021
When the route test fails it seems to be caused by a race condition, when the route reports ready it doesn't immediately changes the service response to the new revision's but checking the response after the test failed the response is the one expected.
It could be fixed at the test level by changing the
CheckEndpointStatecall toWaitForEndpointStatebut I assume the idea is for route ready to mean that the route has finished updating and now serves the new revisionleetcope commentedon Sep 30, 2021
I found some interesting information on the matter, apparently the latest version of Istio used in our kind tests is 1.10.3 according to the images for the pods in the
istio-systemnamespace:docker.io/istio/proxyv2:1.10.3anddocker.io/istio/pilot:1.10.3. But according to Istio's documentation the only version supporting k8s 1.22.0 is Istio 1.11leetcope commentedon Sep 30, 2021
Seems like in order to use the supported version of Istio in these tests we need to point the Istio version to the latest version instead of stable as per the changes here knative-extensions/net-istio/pull/722
leetcope commentedon Sep 30, 2021
/area networking
leetcope commentedon Oct 8, 2021
I've been tracking runs of the e2e tests against different ingresses with a custom workflow in this PR with this document here
According to that data although some tests fail in other versions sometimes I think it's pretty safe to say that the problem is most common with Istio and k8s 1.22.0
cc. @dprotaso @nak3
nak3 commentedon Oct 9, 2021
Thank you @shinigambit I agree that we should test the Istio
latestfor now. For long term, I think we should dropstable(or rename latest to stable) in net-istio - I opened knative-extensions/net-istio#782leetcope commentedon Oct 9, 2021
@nak3 oh I forgot to mention that the Istio version being used in that PR is actually latest so it doesn't actually fix this issue, the problem seems to be something else related to Istio and k8s 1.22.0
nak3 commentedon Oct 9, 2021
I see 😅 Thank you.
dprotaso commentedon Nov 17, 2021
Looks like this was fixed due to retries here:
knative/pkg#2351