rancher / hosted-providers-e2e

Apache License 2.0
0 stars 4 forks source link

Flake: Fix rancher-webhook missing for test cases #183

Open valaparthvi opened 1 month ago

valaparthvi commented 1 month ago
[FAILED] in [BeforeEach] - /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/eks/p0/p0_provisioning_test.go:59 @ 10/11/24 04:15:11.592
  << Timeline

  [FAILED] Expected
      <*clientbase.APIError | 0xc0004f4000>: 
      Bad response statusCode [500]. Status [500 Internal Server Error]. Body: [baseType=error, code=InternalError, message=Internal error occurred: failed calling webhook "rancher.cattle.io.clusters.management.cattle.io": failed to call webhook: Post "[https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation/clusters.management.cattle.io?timeout=10s](https://rancher-webhook.cattle-system.svc/v1/webhook/mutation/clusters.management.cattle.io?timeout=10s)": no endpoints available for service "rancher-webhook"] from [https://1.2.3.4.sslip.io/v3/clusters]
      ***
          StatusCode: 500,
          URL: "https://1.2.3.4.sslip.io/v3/clusters",
          Msg: "Bad response statusCode [500]. Status [500 Internal Server Error]. Body: [baseType=error, code=InternalError, message=Internal error occurred: failed calling webhook \"rancher.cattle.io.clusters.management.cattle.io\": failed to call webhook: Post \"[https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation/clusters.management.cattle.io?timeout=10s\](https://rancher-webhook.cattle-system.svc/v1/webhook/mutation/clusters.management.cattle.io?timeout=10s\)": no endpoints available for service \"rancher-webhook\"] from [https://1.2.3.4.sslip.io/v3/clusters]",
          Status: "500 Internal Server Error",
          Body: "baseType=error, code=InternalError, message=Internal error occurred: failed calling webhook \"rancher.cattle.io.clusters.management.cattle.io\": failed to call webhook: Post \"[https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation/clusters.management.cattle.io?timeout=10s\](https://rancher-webhook.cattle-system.svc/v1/webhook/mutation/clusters.management.cattle.io?timeout=10s\)": no endpoints available for service \"rancher-webhook\"",
      ***
  to be nil
  In [BeforeEach] at: /home/gh-runner/actions-runner/_work/hosted-providers-e2e/hosted-providers-e2e/hosted/eks/p0/p0_provisioning_test.go:59 @ 10/11/24 04:15:11.592
------------------------------

Ref: https://github.com/rancher/hosted-providers-e2e/actions/runs/11286157954/job/31390097732

Possible Solutions:

  1. Add the wait in Makefile
  2. Add the wait in BeforeSuites