-
Notifications
You must be signed in to change notification settings - Fork 560
e2e-local "image update" in catalog_e2e_test.go fails #2420
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
Comments
Hi @akihikokuroda, this is a known issue with this test, specifically on kind clusters. The test does pass on minikube however (provided skopeo is installed locally). Currently on our upstream CI this test is skipped, due to the known issue with kind, and downstream it runs differently. It's not clear how much value there is in getting this test to run in kind and whether it will actually work due to the dependency on an image registry being locally accessible. A solution could be to skip the test if running in kind. |
@exdx Thanks for explanations. It seems that some issues or restrictions in kind cluster. I believe that making skip this test in kind cluster is better than fail always. |
@exdx How can I run the e2e-local with minikube? I don't see any instructions here: https://github.com/operator-framework/operator-lifecycle-manager/blob/master/test/e2e/README.md. Do I have to just set the minikube context as the default context by the kubectl config use-context? |
Yes, I think that should work. We supported minikube in the past but recently switched entirely to kind. I setup a minikube instance manually and run
|
I'm not sure why it works with minikube (with the docker driver) and does not with kind. They are both running containerized versions of the cluster so should behave similarly. |
With kind, the test creates a new kind cluster and it doesn't change the default context so the 'kubectl port-forwad` don't work for the test cluster. I also workaounded the port-forward issue but the creation of the registry pod could not pull the image from the image registry pod. I guess that that's a kind cluster. Would you put the way to run the test with minikube in the /test/e2e/README.md? Thanks! |
Bug Report
make e2e-local TEST='image update
fails with the following message.What did you do?
Executed
make e2e-local TEST='image update
What did you expect to see?
It completes successfully without error.
What did you see instead? Under which circumstances?
Error:
Environment
operator-lifecycle-manager version:
Local system is MAC.
Running agains latest master. commit id : 4c3c8f1
Kubernetes version information:
Kubernetes cluster kind: kind version 0.11.1
Possible Solution
I tried to make it work but so far I couldn't.
Additional context
The port-forwarding here probably doesn't work because the context for the kubectl port-forward is not the context of the e2e text execution..
The text was updated successfully, but these errors were encountered: