-
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
hyperv: bad retry behavior: config.json: The system cannot find the file specified #5941
Comments
Here's some background on the Hyper-V error you are seeing: We'll need to take a closer look at the retry issue. The intent was to automatically help users with corrupt VM state, but I can agree that it requires more thought. I'm mostly confused about the config.json issue mentioned here. |
Yeah, get it. Error 32788 is related to any HyperV changed state that requires the user to do something with his computer in order to fix the problem that prevents the HyperV VM to start. It is not a Retriable Failure since it explicitly require the user to do something. Possible solutions are:
As for the config.json that disappears. It seems to be the consequence of minikube VM being restarted 5 times in a row. So I really believe Solution 2 is the best. Please, let's get rid of that mechanism that retries 5 times and often end up in the config.json being deleted. |
@brainfull - Thank you very much for reporting this! (And the detailed explanation of your findings on one of the issues you posted regarding major user-gap issues) Fully agreed that this should be fixed and the cluster should not be deleted. Let me see if I can find a list of error codes for Hyper-V and do some more experimenting. We can look at removing that code as well but would have to discuss with others. The |
@blueelvis If you need help with Minikube on Windows I would be glad to help. Our company official dev environment is now based on Minikube and we are automating all our processes around it. Our goal is to ensure that once we tested in Minikube on Windows it goes well on the staging and prod environment, which are kubernetes clusters on cloud providers. thx |
The exact command to reproduce the issue:
minikube start --vm-driver hyperv --memory 8192
minikube stop
minikube start --vm-driver hyperv --memory 8192
%userprofile%\machines\minikube\config.json
cannot be found anymore, the only solution to that other bug is to delete manually%userprofile%/.minikube
directory in order to reset minikube completely, anyway you already lost your VM with test data so why not starting from scratch?The full output of the command that failed:
The operation failed with error code '32788'.
At line:1 char:1
E1118 09:54:09.160314 23544 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : 'minikube' failed to change state.
The operation failed with error code '32788'.
At line:1 char:1
X Unable to start VM: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open C:\Users\luc.minikube\machines\minikube\config.json: The system cannot find the file specified.
*
The code responsible for that poor error handling mechanism:
I don't think the code below make any sense. 'minikube start' should never delete the VM. We should explicitly use 'minikube delete' if we ever think the solution is to delete the minikube VM.
https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/start.go
you can see the culprit line :
cluster.DeleteHost(api)
The operating system version:
that would happen on any OS but I'm using Windows 10 Pro
Also see issue #5072, #5884
The text was updated successfully, but these errors were encountered: