podman icon indicating copy to clipboard operation
podman copied to clipboard

Rootful podman machine gets stuck using rootless connection if previously there was a rootless podman machine set as default

Open cbr7 opened this issue 9 months ago • 1 comments

Issue Description

If the user has two podman machines running at the same time on WSL, one fo them rootful and the other rootless, with the rootless one being set as default, if the user deletes the rootless machine the rootful podman machine will become default, however it's rootless connection will be used, not the rootful one.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Have two podman machines running on WSL one rootful and the other rootless, rootless machine should be default.
  2. Stop the rootless machine and then delete it.
  3. Run command podman system connection list and notice that the rootless connection of the remaining rootful podman machine is now default.

Describe the results you received

Rootful podman machine will only using the rootless connection going forward, stopping and starting the machine does not help.

Describe the results you expected

the rootful connection of the rootful podman machine should become default.

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

Privileged

Upstream Latest Release

Yes

Additional environment details

Issue is only reproducible on Windows operating system.

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

cbr7 avatar May 02 '24 11:05 cbr7

Additional note, I was also able to reproduce this on macOS.

cbr7 avatar May 03 '24 08:05 cbr7

I can reproduce this on linux as well. Taking a look

jakecorrenti avatar May 13 '24 13:05 jakecorrenti

/assign

jakecorrenti avatar May 13 '24 13:05 jakecorrenti

I think this is already being fixed in #22587

Luap99 avatar May 13 '24 16:05 Luap99

I think this is already being fixed in #22587

Sorry nevermind, wrong issue

Luap99 avatar May 13 '24 16:05 Luap99