podman machine rm
for QEMU provider removed connections before confirmation
#18330
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
After calling
podman machine rm
and pressingn
to abort, the machine is not functional as connections are erased. Confirmed for QEMU on Windows and macOS.The code part causing this is https://github.com/containers/podman/blob/main/pkg/machine/qemu/machine.go#L960 which is immediate, but should go inside callback https://github.com/containers/podman/blob/main/pkg/machine/qemu/machine.go#L992 (like in WSL implementation). WSL implementation is not affected.
Steps to reproduce the issue
Steps to reproduce the issue
podman machine init
podman machine rm
n
podman system connection list
(no connections)podman machine list
(machine still exists)Describe the results you received
Connections are erased.
Describe the results you expected
Connections persisted like in WSL case on Widnows
podman info output
Intentionally skipped as machine was already ruined.
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
On Windows was tested with built from latest main + QEMU machine supporting changes on top.
Additional information
No response
The text was updated successfully, but these errors were encountered: