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

Add "resume" as an alias for "unpause" #11431

Merged
merged 3 commits into from
May 19, 2021
Merged

Conversation

briandealwis
Copy link
Contributor

This PR adds an alias for the "unpause" command for "resume". I always make a mistaken running minikube resume and then realize that it's unpause.

An alternative would be to use a SuggestFor: ["resume"].

And yes, I should be using auto-pause.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 17, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @briandealwis. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 17, 2021
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@afbjorklund
Copy link
Collaborator

afbjorklund commented May 17, 2021

We sorta left suspend/resume for the VM, but then again it was never implemented either.

And I think it is called "pause" and "resume" in VBoxManage, so there's confusion anyway.

https://www.virtualbox.org/manual/ch08.html#vboxmanage-controlvm

VBoxManage controlvm pause: Temporarily puts a virtual machine on hold, without permanently changing its state. The VM window is gray, to indicate that the VM is currently paused. This is equivalent to selecting the Pause item in the Machine menu of the GUI.

VBoxManage controlvm resume: Undoes a previous pause command. This is equivalent to selecting the Resume item in the Machine menu of the GUI.

VBoxManage controlvm savestate: Saves the current state of the VM to disk and then stops the VM. This is equivalent to selecting the Close item in the Machine menu of the GUI or clicking the VM window's close button, and then selecting Save the Machine State in the displayed dialog.

Not sure if the Docker VM has a similar feature ? How to best separate processes/machines.

Doesn't seem that way, been requested for HyperKit like 5 years. So I guess it does stop/start.

@briandealwis
Copy link
Contributor Author

Then maybe the SuggestFor is better so as to keep resume available.

@afbjorklund
Copy link
Collaborator

Then maybe the SuggestFor is better so as to keep resume available.

Nah, pause/resume is fine. We can do something else, if we do VM sleep

Copy link
Collaborator

@afbjorklund afbjorklund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to run make generate-docs, then it should be good to go ?

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2021
@medyagh medyagh self-requested a review May 17, 2021 18:49
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for this PR @briandealwis would u please make generate-docs

@k8s-ci-robot k8s-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2021
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 18, 2021
@briandealwis
Copy link
Contributor Author

I was just running generate-docs and saw that you'd beaten me to the punch @medyagh :-)

@medyagh
Copy link
Member

medyagh commented May 18, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 18, 2021
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 11431) |
+----------------+----------+---------------------+
| minikube start | 47.0s    | 47.1s               |
| enable ingress | 38.1s    | 37.1s               |
+----------------+----------+---------------------+

Times for minikube start: 49.2s 45.7s 48.7s 46.1s 45.4s
Times for minikube (PR 11431) start: 47.0s 45.3s 50.0s 46.0s 47.1s

Times for minikube ingress: 42.7s 35.7s 34.7s 42.2s 35.3s
Times for minikube (PR 11431) ingress: 41.2s 36.2s 36.2s 36.7s 35.2s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 11431) |
+----------------+----------+---------------------+
| minikube start | 21.5s    | 21.8s               |
| enable ingress | 34.8s    | 35.6s               |
+----------------+----------+---------------------+

Times for minikube ingress: 32.5s 37.5s 34.6s 34.5s 35.0s
Times for minikube (PR 11431) ingress: 35.0s 37.0s 34.5s 35.0s 36.5s

Times for minikube start: 22.7s 21.1s 21.6s 20.9s 21.0s
Times for minikube (PR 11431) start: 21.8s 21.6s 22.0s 21.7s 22.1s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 11431) |
+----------------+----------+---------------------+
| minikube start | 41.7s    | 44.7s               |
| enable ingress |          |                     |
+----------------+----------+---------------------+

Times for minikube start: 31.1s 43.0s 43.2s 43.8s 47.5s
Times for minikube (PR 11431) start: 47.5s 43.0s 46.6s 42.9s 43.4s

@briandealwis
Copy link
Contributor Author

/retest

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @briandealwis

@medyagh medyagh merged commit 72e8341 into kubernetes:master May 19, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: briandealwis, medyagh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants