close
The Wayback Machine - https://web.archive.org/web/20201110182738/https://github.com/kubernetes/minikube/issues/9486
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

stopping a profile which doesn't exists creates profile folder instead of just throwing error #9486

Closed
vinu2003 opened this issue Oct 18, 2020 · 2 comments

Comments

@vinu2003
Copy link
Contributor

@vinu2003 vinu2003 commented Oct 18, 2020

##minikube stop##
vinodhinis-mbp:minikube vinodhinibalusamy$ ./out/minikube stop -p test2
🤷 There is no local cluster named "test2"
👉 To fix this, run: "minikube start -p test2"

this causes unwanted error message thrown in profile list.

vinodhinis-mbp:minikube vinodhinibalusamy$ ./out/minikube profile list
|----------|-----------|---------|--------------|------|---------|---------|

Profile VM Driver Runtime IP Port Version Status
minikube docker docker 192.168.49.2 8443 v1.19.2 Running
test1 docker docker 192.168.59.2 8443 v1.19.2 Running
---------- ----------- --------- -------------- ------ --------- ---------
Found 2 invalid profile(s) !
 test2
 ttt

💡 You can delete them using the following command(s):
$ minikube delete -p test2
$ minikube delete -p ttt
vinodhinis-mbp:minikube vinodhinibalusamy$

And i did notice /Users/vinodhinibalusamy/.minikube/profiles has test2 folder created which shouldn't be.

@tstromberg
Copy link
Contributor

@tstromberg tstromberg commented Oct 21, 2020

Good catch! Help wanted to fix this -- there is no reason why minikube stop should cause a profile to be created.

@vinu2003
Copy link
Contributor Author

@vinu2003 vinu2003 commented Oct 21, 2020

thank you.
/assign @vinu2003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.