Skip to content

podman-desktop sees a single machine #2150

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

Closed
chevdor opened this issue Apr 19, 2023 · 17 comments
Closed

podman-desktop sees a single machine #2150

chevdor opened this issue Apr 19, 2023 · 17 comments
Assignees

Comments

@chevdor
Copy link
Contributor

chevdor commented Apr 19, 2023

Bug description

I started with a podman machine setup close to the default one with 2GB memory.
I then created a second, this time with 3GB in order to see the issue.

After the creation of the second, the new machine is seen with the specs of the 1st. Starting ONE machine will appear to start both.

I attach a screenshare that shows the issue in action.

IssuePodmanDesktop mov

What is not show in the screenshare is that after start, I switched tabs again and then BOTH machines were shown with 3GB of memory.

Operating system

macOS ventura 13.3.1

Version

0.14.1

Steps to reproduce

I guess the issue does not show up by default and I provided a screenshare. I am not sure how to get a new system in this state.

Relevant log output

No response

Additional context

No response

@chevdor chevdor added the kind/bug 🐞 Something isn't working label Apr 19, 2023
@chevdor
Copy link
Contributor Author

chevdor commented Apr 19, 2023

Here we see that podman itself does see the machines correctly:

image

@chevdor
Copy link
Contributor Author

chevdor commented Apr 19, 2023

I uninstalled and reinstalled podman-desktop without success.
I see the issue also when the machines are created via podman machine instead of podman-desktop.

I just created 3 machines:

$ podman machine ls
NAME                     VM TYPE     CREATED             LAST UP             CPUS        MEMORY      DISK SIZE
tmp                      qemu        About a minute ago  About a minute ago  1           2.147GB     107.4GB
no-tmp                   qemu        2 minutes ago       2 minutes ago       1           2.147GB     107.4GB
podman-machine-default*  qemu        3 minutes ago       3 minutes ago       4           33.55GB     107.4GB

They wrongly show up as:
image

So it looks like it shows only the cpu/memory (and probably uses the ID) of the LATEST created machine instead of the proper one.

@chevdor
Copy link
Contributor Author

chevdor commented Apr 19, 2023

Starting a machine from the UI does work and it starts the right machine but the UI ends up looking wrong again:
image

NOTE: I did not re-create the machines. Notice however that now the number of CPUs and the Memory changed!

@chevdor
Copy link
Contributor Author

chevdor commented Apr 19, 2023

Also, only one machine, obviously, is running:

podman machine list
NAME                     VM TYPE     CREATED         LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default*  qemu        12 minutes ago  Currently running  4           33.55GB     107.4GB
tmp                      qemu        9 minutes ago   9 minutes ago      1           2.147GB     107.4GB
no-tmp                   qemu        10 minutes ago  10 minutes ago     1           2.147GB     107.4GB

despite what the UI is showing.

@slemeur
Copy link
Contributor

slemeur commented Apr 19, 2023

probably linked to #2096

@chevdor
Copy link
Contributor Author

chevdor commented Apr 19, 2023

That seems close but unrelated to me. I have tested podman system connection list a few times and the podman cli seems to remain in sync properly. A small delay in the Desktop app is understandable and I can see the App picking up updates but the data it gets or how they are used to refresh the UI is wrong.

@odockal
Copy link
Contributor

odockal commented Apr 20, 2023

I have reproduced the issue. When I have one podman machine running and I create a new one and start it, the former "takes over" the values (cpu, memory) from second one and now they appear almost the same, except the name in the UI. The cli confirms that this is podman desktop issue.

@jeffmaury
Copy link
Contributor

Can't reproduce on Windows/WSL ? @cdrage can you give it a try on MacOS ?

@cdrage
Copy link
Contributor

cdrage commented Apr 21, 2023

Can't reproduce on Windows/WSL ? @cdrage can you give it a try on MacOS ?

I'm unable to reproduce it either on M1.

Could you take a video @odockal ?

@EgorPopelyaev
Copy link

I could also reproduce it. Running on MacOs Ventura 13.3.1. Exactly the same behaviour, after the second machine has started, the first one took over it's settings.
Screenshot 2023-04-24 at 18 11 02

@odockal
Copy link
Contributor

odockal commented Apr 25, 2023

@cdrage yep: It is an intel chip.
macos-ventura-two-podman-machines

@odockal
Copy link
Contributor

odockal commented Apr 25, 2023

Other symptoms with probably the same root cause can be seen in #2178.

@nichjones1 nichjones1 removed this from the 0.15.0 milestone May 3, 2023
@cdrage
Copy link
Contributor

cdrage commented May 8, 2023

@odockal are you still experiencing this issue?

I've tried:

  • Mac M1 (unable to reproduce)
  • Linux VM Fedora 36 (unable)
  • Windows 10 Enterprise (unable)

However, I ran into a really odd different issue where PD was able to stop, but podman machine list still shows it running.

When running podman machine stop as well with the Podman CLI, it still showed it was running, pointing to an upstream issue:

▶ podman machine stop
Machine "podman-machine-default" stopped successfully

~
▶ podman machine list
NAME                      VM TYPE     CREATED        LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default*   qemu        4 days ago     Currently running  1           2.147GB     107.4GB
podman-machine-default-2  qemu        2 minutes ago  2 minutes ago      1           2.147GB     107.4GB

@odockal from the screenshot it shows you are running 0.14.1, can you try again with podman 4.5 and our newest podman desktop?

@cdrage cdrage moved this from 📅 Planned to 🚧 In Progress in Podman Desktop Planning OLD May 8, 2023
@cdrage cdrage moved this from 🚧 In Progress to 📅 Planned in Podman Desktop Planning OLD May 9, 2023
@odockal
Copy link
Contributor

odockal commented May 9, 2023

@cdrage On it.

@odockal
Copy link
Contributor

odockal commented May 9, 2023

@cdrage Still can be seen on Mac OS 13 intel using 0.15.0. Do not forget this is Mac only issue - maybe even Mac OS Intel specific.

@nichjones1 nichjones1 assigned benoitf and unassigned jeffmaury and cdrage May 11, 2023
@benoitf
Copy link
Collaborator

benoitf commented May 11, 2023

should be fxed by #2441

@benoitf benoitf closed this as completed May 11, 2023
@benoitf benoitf moved this from 📅 Planned to ✅ Done in Podman Desktop Planning OLD May 11, 2023
@chevdor
Copy link
Contributor Author

chevdor commented May 11, 2023

I did test with #2441 and that looks good now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants