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

k3d e2e integration-all-k3d-local test fails on local dev instances #9091

Open
mrjones-plip opened this issue May 3, 2024 · 1 comment
Open
Assignees
Labels
Type: Technical issue Improve something that users won't notice

Comments

@mrjones-plip
Copy link
Contributor

Describe the issue
In #8909 we added a new k3d e2e test. When I run this locally it doesn't work, such that every time it gets past the should respond to changes even after services are restarted test, it stops running. The terminal shows an endless stream of:

Error with request: GET https://localhost/api/info 404
API check failed, trying again in 1 second
404 - "404 page not found\n"

Ubuntu 20.04 5.15.0-102-generic #112~20.04.1-Ubuntu SMP
k3d version v5.6.3
k3s version v1.28.8-k3s1 (default)
Docker version 26.1.1, build 4cf5afa

Steps to reproduce:

  1. in terminal A, start the tests: npm run integration-all-k3d-local
  2. wait a minute or so, then in terminal B, set the context to the local cluster: kubectl config use-context k3d-cht-e2e
  3. in terminal B, run this watch command: watch "docker exec k3d-cht-e2e-server-0 crictl images|egrep 'TAG|medicm';echo;kubectl --namespace cht-e2e get all" Note at the top there's a list of images - there should be 6
  4. when you tests in terminal A start to get stuck on Checking API - API check failed, trying again in 1 second - check the list of images and pod health in terminal B.

You should see less than 6 images and ImagePullBackOff errors in the pods in terminal B. This shows that the images are being removed from k3d (not longer imported)

As the images are being removed from k3d, it's assumed that imagePullPolicy: Never might fix it, but per my templates directory in the mrjones-imagePullPolicy branch, this didn't seem to fix it.

Describe the improvement you'd like
e2e should work locally as well as in CI

Describe alternatives you've considered
@dianabarsan suggested:

If this proves to be a generalized problem, there's an option to switch to using a registry locally - and pushing new built images into the registry and instructing k3d to use it. I think it's bit more work to set up that just importing.

@mrjones-plip mrjones-plip added the Type: Technical issue Improve something that users won't notice label May 3, 2024
@mrjones-plip mrjones-plip changed the title k3d e2e integration-all-k3d-local test fails k3d e2e integration-all-k3d-local test fails on local dev instances May 3, 2024
@dianabarsan dianabarsan self-assigned this May 6, 2024
@mrjones-plip
Copy link
Contributor Author

Per Infra call today @Hareet mentioned he'd take a look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Technical issue Improve something that users won't notice
Projects
None yet
Development

No branches or pull requests

2 participants