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

Run poweroff before delete, only call uninstall if driver is None #3665

Merged
merged 4 commits into from
Feb 14, 2019

Conversation

tstromberg
Copy link
Contributor

@tstromberg tstromberg commented Feb 13, 2019

This helps hypervisors like HyperV which have issues turning machines off via ACPI by powering the guest off first. This also skips the new "kubeadm reset" uninstall during deletion if the driver isn't none, since the VM is about to be destroyed anyways.

🛑 Powering off "runtimes-crio" via SSH ...
🔥 Deleting "runtimes-crio" from virtualbox ...
💔 The "runtimes-crio" cluster is now deleted. I hope you are happy.

Resolves #2914

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 13, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tstromberg

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 Feb 13, 2019
@tstromberg tstromberg changed the title Issue a poweroff request before deleting a VM. Avoids HyperV hang Avoid HyperV hang by issuing a poweroff request before deletion Feb 13, 2019
@tstromberg
Copy link
Contributor Author

@minikube-bot OK to test

@tstromberg tstromberg changed the title Avoid HyperV hang by issuing a poweroff request before deletion Avoid HyperV hang by issuing a poweroff request, only call uninstall if driver is None Feb 13, 2019
@tstromberg tstromberg changed the title Avoid HyperV hang by issuing a poweroff request, only call uninstall if driver is None Issue poweroff before delete, only call uninstall if driver is None Feb 13, 2019
@tstromberg tstromberg changed the title Issue poweroff before delete, only call uninstall if driver is None Run poweroff before delete, only call uninstall if driver is None Feb 13, 2019
@tstromberg
Copy link
Contributor Author

@minikube-bot OK to test

@tstromberg tstromberg merged commit 10d8487 into kubernetes:master Feb 14, 2019
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants