Skip to content

Service to service and route creation tests are flaky in k8s 1.22.0 in github-actions #12064

Closed

Description

@leetcope

What version of Knative?

0.25.x

Expected Behavior

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

Activity

  1. added
    kind/bug
    on Sep 29, 2021
  2. leetcope commented on Sep 30, 2021

    @leetcope
    ContributorAuthor

    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

  3. leetcope commented on Sep 30, 2021

    @leetcope
    ContributorAuthor

    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

  4. leetcope commented on Sep 30, 2021

    @leetcope
    ContributorAuthor

    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

  5. leetcope commented on Sep 30, 2021

    @leetcope
    ContributorAuthor

    /area networking

  6. leetcope commented on Oct 8, 2021

    @leetcope
    ContributorAuthor

    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

  7. nak3 commented on Oct 9, 2021

    @nak3
    Contributor

    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

  8. leetcope commented on Oct 9, 2021

    @leetcope
    ContributorAuthor

    @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

  9. nak3 commented on Oct 9, 2021

    @nak3
    Contributor

    I see 😅 Thank you.

  10. added this to the v1.1.0 milestone on Nov 3, 2021
  11. dprotaso commented on Nov 17, 2021

    @dprotaso
    Member

    Looks like this was fixed due to retries here:
    knative/pkg#2351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/networkingkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions