Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
valaparthvi opened this issue Oct 11, 2024 · 0 comments
Open

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

valaparthvi opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@valaparthvi
Copy link
Collaborator

valaparthvi commented Oct 11, 2024

[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants