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

hyperv: cleanup stale vm before raising exception #3696

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Conversation

pupacha
Copy link
Collaborator

@pupacha pupacha commented Mar 6, 2025

If start_vm() fails due to unassigned IP address, an exception is thrown but it results in a stale VM on the HyperV host. This is inefficient as it continues to consume cpu, memory and storage resource of the host. Hence, cleanup the VM before raising the exception.

If start_vm() fails due to unassigned IP address, an exception
is thrown but it results in a stale VM on the HyperV host. This is
inefficient as it continues to consume cpu, memory and storage resource
of the host. Hence, cleanup the VM before raising the exception.
@pupacha pupacha requested a review from SRIKKANTH March 6, 2025 12:59
@squirrelsc
Copy link
Member

@LiliDeng LGTM

@LiliDeng LiliDeng merged commit 83263d1 into main Mar 7, 2025
49 checks passed
@LiliDeng LiliDeng deleted the pavan/fixes_3 branch March 7, 2025 05:15
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

4 participants