-
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 StartStopTest/group/containerd flake … #7969
Conversation
This test was failing regularly with the following error showing up on all pods: ``` FailedCreatePodSandbox ``` after doing some digging, it seems that this error is always CNI related. I found these docs on the k8s website about running containerd in minikube: https://kubernetes.io/docs/setup/learning-environment/minikube/ which says the flags `--network-plugin=cni` and `--enable-default-cni` should be set with running containerd. I tried passing those flags in, and ran this test locally 3x. It passed everytime, so I'm hoping this fixes the flake.
Also, the dashboard addon wasn't being enabled because of this flow: ``` minikube stop minikube addons enable dashboard minikube start ``` but on start, dashboard was skipped because it seemed like it had already been enabled.
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: priyawadhwa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
@@ Coverage Diff @@
## master #7969 +/- ##
==========================================
- Coverage 36.06% 35.94% -0.13%
==========================================
Files 144 144
Lines 9191 9204 +13
==========================================
- Hits 3315 3308 -7
- Misses 5475 5497 +22
+ Partials 401 399 -2
|
kvm2 Driver Times for Minikube (PR 7969): [63.594053806 66.225509132 68.282022962] Averages Time Per Log
docker Driver Times for Minikube (PR 7969): [26.27470847 27.049298984 28.288583654999996] Averages Time Per Log
|
This test was failing regularly with the following error showing up on all pods:
after doing some digging, it seems that this error is always CNI related. I found these docs on the k8s website about running containerd in minikube:
https://kubernetes.io/docs/setup/learning-environment/minikube/
which says the flags
--network-plugin=cni
and--enable-default-cni
should be set with running containerd. I tried passing those flags in, and a flag for pod subnet.This test was then failing because the kubernetes dashboard addon would never come up.
The dashboard addon wasn't being enabled because of this flow:
but on start, dashboard was skipped because it seemed like it had already been enabled.
I refactored addons code to always enable addons on
minikube start
, and to only check if they've already been enabled onminikube addons enable/disable xxx
Should fix #7704