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

Error during delete of xhyve VM #2102

Closed
coderanger opened this issue Oct 21, 2017 · 5 comments
Closed

Error during delete of xhyve VM #2102

coderanger opened this issue Oct 21, 2017 · 5 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@coderanger
Copy link
Member

Environment:

Minikube version: 0.22.3

  • OS: macOS 10.13
  • VM Driver: xhyve
  • ISO version: N/A
  • Install tools: Homebrew
  • Others:

What happened:

Was trying to delete my VM and restart with a new kubernetes version. The delete failed with this error:

$ minikube delete
Deleting local Kubernetes cluster...
Errors occurred deleting machine:  unexpected EOF
remove /Users/coderanger/.minikube/machines/minikube/root-volume.sparsebundle/bands/909: permission denied

Trying to delete again just gives open /Users/coderanger/.minikube/machines/minikube/config.json: no such file or directory.

Trying to continue on resulted in this:

$ minikube start --kubernetes-version=v1.8.0
Starting local Kubernetes v1.8.0 cluster...
Starting VM...
E1020 17:20:41.429333   24489 start.go:146] Error starting host: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: Error loading host from store: open /Users/coderanger/.minikube/machines/minikube/config.json: no such file or directory.

 Retrying.
E1020 17:20:41.431126   24489 start.go:152] Error starting host:  Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: Error loading host from store: open /Users/coderanger/.minikube/machines/minikube/config.json: no such file or directory

What you expected to happen:

Delete should only remove the config.json after all other steps succeed.

How to reproduce it (as minimally and precisely as possible):

Not sure.

Anything else do we need to know:

I'm guessing the workaround is just to delete ~/.minikube or maybe ~/.minikube/machines or similar?

@coderanger
Copy link
Member Author

This might be because xhyve is running setuid so the disk files end up owned by root, minikube would need to use sudo or route the delete via something in the xhyve driver to do the cleanup.

@HammerMeetNail
Copy link

I encountered the same issue. Looks to be a permission issue with docker-machine-driver-xhyve. Not sure if it was caused by update to macOS 10.13 or minikube v0.23.0. This related issue provides a viable workaround:

#708 (comment)

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 21, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 23, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants