-
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
Fix none driver bugs with "pause" #6452
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tstromberg 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 #6452 +/- ##
=======================================
Coverage 37.84% 37.84%
=======================================
Files 128 128
Lines 8748 8748
=======================================
Hits 3311 3311
Misses 5011 5011
Partials 426 426 |
1cabf0c
to
dd4ad10
Compare
/ok-to-test |
Error: running mkcmp: exit status 1 |
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.
lgtm!
All Times minikube: [ 96.154790 95.615379 94.942786] Average minikube: 95.570985 Averages Time Per Log
|
All Times minikube: [ 94.460397 94.253071 97.194256] Average minikube: 95.302575 Averages Time Per Log
|
All Times minikube: [ 95.086994 97.051017 97.635279] Average minikube: 96.591097 Averages Time Per Log
|
All Times minikube: [ 93.884505 93.614791 95.225650] Average minikube: 94.241649 Averages Time Per Log
|
All Times minikube: [ 93.845361 92.516557 95.441738] Average minikube: 93.934552 Averages Time Per Log
|
All Times minikube: [ 92.558355 92.338159 89.822738] Average minikube: 91.573084 Averages Time Per Log
|
Wooh, that was fun. It turns out that libmachine will repeatedly call driver.Stop() until state == stopped, so the none driver better return stopped when it is supposed to. |
Still have some quirks to sort out so that the none driver returns the same status as other drivers when paused or stopped. |
/retest this please |
All Times minikube: [ 100.319053 99.080102 96.714365] Average Minikube (PR 6452): 98.727918 Averages Time Per Log
|
Fixes two bugs with the none driver:
"status" fails when the "none" driver is paused. This is because the driver status was based on the kubelet process status, which we kill when pausing.
"delete" fails when the "none" driver is paused. This is because kubeadm tries to reach the apiserver and hangs.
apiserver status checks fail when there is more than one apiserver pid running.
Behavioral changes
Closes #6451