Skip to content

Remove running VM #37

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

Merged
merged 1 commit into from
Apr 17, 2025
Merged

Remove running VM #37

merged 1 commit into from
Apr 17, 2025

Conversation

justinc1
Copy link
Collaborator

PR fixes removal of running VM. Problem is we try to delete also disks while the VM is running, and this delete disk fails.

The hypercore_vm_power_state and hypercore_vm_power_state have 1:1 relationship. So we can use hypercore_vm_power_state.Delete to shutdown VM, before it disks and VM are deleted.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 self-assigned this Apr 17, 2025
Copy link
Collaborator

@domendobnikar domendobnikar left a comment

Choose a reason for hiding this comment

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

Looks good 👍 , thank you @justinc1
I would comment that the current Delete logic for VMPowerState is only handling cases where we go from RUNNING to SHUTOFF other situations are currently not covered

@justinc1 justinc1 merged commit 847886e into main Apr 17, 2025
4 checks passed
@justinc1 justinc1 deleted the delete-running-vm branch April 17, 2025 12:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants