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

Don't treat stopping stopped hosts as error #1606

Merged
merged 1 commit into from
Jun 19, 2017

Conversation

XrXr
Copy link
Contributor

@XrXr XrXr commented Jun 19, 2017

Running minikube stop while nothing is running results in a crash. This patch makes cluster.StopHost() swallow the stop-while-stopped error libmachine returns.

There are couple of other ways to do this, namely catching the error in cmd and changing libmachine itself. I figured this is the best place to make the change. Please let me know if the other options are better,

Running `minikube stop` while nothing is running results in a crash.
This patch makes `cluster.StopHost()` swallow the stop-while-stopped
error libmachine returns.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 19, 2017
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@codecov-io
Copy link

Codecov Report

Merging #1606 into master will decrease coverage by 0.08%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1606      +/-   ##
==========================================
- Coverage   38.74%   38.66%   -0.09%     
==========================================
  Files          51       51              
  Lines        2604     2607       +3     
==========================================
- Hits         1009     1008       -1     
- Misses       1417     1421       +4     
  Partials      178      178
Impacted Files Coverage Δ
pkg/minikube/cluster/cluster.go 44.04% <0%> (-0.4%) ⬇️
pkg/minikube/kubeconfig/config.go 51.42% <0%> (-0.96%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40cb79f...5d39878. Read the comment docs.

@aaron-prindle
Copy link
Contributor

@minikube-bot ok to test

@aaron-prindle
Copy link
Contributor

LGTM. Thanks for the PR!

@aaron-prindle aaron-prindle merged commit e05c378 into kubernetes:master Jun 19, 2017
@XrXr XrXr deleted the stop-crash branch June 19, 2017 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants