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

memory size reset if --memory command-line arg is not always supplied to start #6771

Closed
alewis001 opened this issue Feb 24, 2020 · 8 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@alewis001
Copy link

The exact command to reproduce the issue:

  1. minikube start -p bug --memory 5000
  2. Check contents of $HOME/.minikube/profiles/bug/config.json: memory is set to 5000.
  3. minikube start -p bug stop
  4. Check contents of $HOME/.minikube/profiles/bug/config.json: memory is still set to 5000.
  5. minikube start -p bug
    • Error message (see below)
  6. minikube start -p bug
    • Cluster starts with 2GB memory according to config.json for the profile.

Output of first start:


😄 [bug] minikube v1.7.3 on Darwin 10.15.3
✨ Automatically selected the hyperkit driver
🔥 Creating hyperkit VM (CPUs=2, Memory=5000MB, Disk=20000MB) ...
🐳 Preparing Kubernetes v1.17.3 on Docker 19.03.6 ...
🚀 Launching Kubernetes ...
🌟 Enabling addons: default-storageclass, storage-provisioner
⌛ Waiting for cluster to come online ...
🏄 Done! kubectl is now configured to use "bug"

Output of second start (error):


😄 [bug] minikube v1.7.3 on Darwin 10.15.3
✨ Using the hyperkit driver based on existing profile
⌛ Reconfiguring existing host ...
🔄 Starting existing hyperkit VM for "bug" ...

💣 Unable to start VM. Please investigate and run 'minikube delete' if possible: post-start: command runner: ssh client: Error dialing tcp via ssh client: dial tcp 192.168.64.11:22: connect: no route to host

😿 minikube is exiting due to an error. If the above message is not useful, open an issue:
👉 https://github.com/kubernetes/minikube/issues/new/choose

Output of third start:


😄 [bug] minikube v1.7.3 on Darwin 10.15.3
✨ Using the hyperkit driver based on existing profile
⌛ Reconfiguring existing host ...
🏃 Using the running hyperkit "bug" VM ...
🐳 Preparing Kubernetes v1.17.3 on Docker 19.03.6 ...
🚀 Launching Kubernetes ...
🌟 Enabling addons: default-storageclass, storage-provisioner
🏄 Done! kubectl is now configured to use "bug"

@priyawadhwa priyawadhwa added the kind/support Categorizes issue or PR as a support question. label Feb 25, 2020
@priyawadhwa
Copy link

Hey @alewis001 you can set the memory in the global config via:

minikube config set memory 5000

and it will be automatically applied.

You can find a list of all configurable settings here.

Does this resolve your issue?

@priyawadhwa priyawadhwa added the triage/needs-information Indicates an issue needs more information in order to work on it. label Feb 26, 2020
@alewis001
Copy link
Author

Thanks, it does. I'd used that as the workaround before posting this bug. Apologies, I should have mentioned that in the bug report.

What should the expected behaviour of that flag be? As it is provided to the start command I could see it working different ways:

  • A temporary override for that run over whatever is written to the config; the config is not modified. As such, that would make this bug invalid.
  • Using it on a start will update the config so it is not required on future runs.

I assume it should update the configuration as the config command appears to ignore the -p <profile> flag?

@sharifelgamal
Copy link
Collaborator

Yeah, this was a regression in soft restarts of minikube, it should be fixed at HEAD now that #7449 is merged.

@tstromberg tstromberg removed the triage/needs-information Indicates an issue needs more information in order to work on it. label Apr 21, 2020
@tstromberg
Copy link
Contributor

This will be fixed in v1.10.

@tstromberg tstromberg changed the title Profile Memory is reset if --memory command-line arg is not always supplied to start memory size reset if --memory command-line arg is not always supplied to start Apr 21, 2020
@alewis001
Copy link
Author

Great, thanks for the update.

@medyagh
Copy link
Member

medyagh commented May 13, 2020

@alewis001 do you mind checking our newest version v1.10.1 and verify we can close this issue?

@alewis001
Copy link
Author

I can confirm that with 1.10.1 the issue is fixed. Both the failed start and the resetting of the config.

Thank you!

@medyagh
Copy link
Member

medyagh commented Jun 10, 2020

glad to see this is fixed

@medyagh medyagh closed this as completed Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

5 participants