-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
WIP: Fix default cni config #5526
WIP: Fix default cni config #5526
Conversation
Hi @woodcockjosh. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: woodcockjosh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
/assign @tstromberg |
Codecov Report
@@ Coverage Diff @@
## master #5526 +/- ##
=======================================
Coverage 36.57% 36.57%
=======================================
Files 102 102
Lines 7320 7320
=======================================
Hits 2677 2677
Misses 4292 4292
Partials 351 351 |
@minikube-bot OK to test PR looks good, but I am unfortunately CNI ignorant and also don't know how to review this: our integration tests for CNI don't yet do very much, and that error message is worrisome but perhaps unrelated. PR does need a better title for release notes. |
could we have an integration test with CNI options you have in the PR description and then this PR should Fix the test ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about an integration tests that starts minikube with the options you specified (the integration test could be only for the driver that supports it) and then you can search the output of minikbue statrt output and expect not the error you mentioned in the PR descrption or any error at all )
Since that error occurs without the changes, I believe it is unrelated. I am investigating further.
I think an appropriate test for this issue would be that I install a pod with hostPort and I can connect from the host. In terms of validating other things, I think the capabilities should be validated rather than the configuration of those capabilities. We could unknowingly think that the config is valid because the config is indeed valid but unintentionally break a capability through our own ignorance of how cni actually works. It would however, at least save us from a completely invalid config which I think has happened here and could be a good high level test. I don't know how we would check for error messages though. Anything that says "Error" ? :-) |
I think it worth writing an integration test for it, and it will prevent us from breaking it in the future. would this be helpful ? (we have helpers in the integration tests that returns stdout,stderr and exit code ...
here is an example of starting minikube in integration tests and checking the stdout stderr for a specific output: minikube/test/integration/functional_test.go Line 104 in 8f259e7
|
Before I write a test that fails I'm going to try to get 1.4.0 running with the options in the description and reproduce the problem described in the issue. |
awesome, that sounds like a good plan ! |
@minikube-bot OK to test |
Is this still a work in progress? |
I'm not able to test it because I cannot get minikube running with the commands supplied in the issue. |
Closing until we have a way to understand and validate this change. |
fixes #3056
Not sure how to test. Probably I don't know what I'm doing but I get this output when trying to run on Ubuntu 18.04.03
https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/
https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/README.md
I think our current configuration is completely invalid.