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

Feat: Gracefully shutdown VM on deletion. #872

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Feat: Gracefully shutdown VM on deletion. #872

merged 2 commits into from
Dec 6, 2023

Conversation

t3hpr1m3
Copy link
Contributor

@t3hpr1m3 t3hpr1m3 commented Dec 4, 2023

This PR alters resourceVmQemuDelete to attempt a graceful VM shutdown prior deletion (as opposed to the current method which performs a hard stop). With the current behavior, DHCP reservations are left hanging until a timeout (which can take quite some time), leading to potentially lots of unavailable IP addresses.

@mleone87 mleone87 merged commit 94f2ba5 into Telmate:master Dec 6, 2023
1 check passed
spettinichi pushed a commit to spettinichi/terraform-provider-proxmox that referenced this pull request Jan 26, 2024
* Gracefully shutdown VM on deletion.

This allows things like DHCP reservations to be cleaned up.

* Attempt graceful shutdown only if guest agent is enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants