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

fix: do not rely on socket path for unicity #2441

Merged
merged 1 commit into from May 11, 2023

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented May 10, 2023

What does this PR do?

before podman 4.5, socket path were different for all machines with podman 4.5, socket path is the same for all the machines

so some functions were using the path as a key
then it leads to lot of errors with invalid data, failure to get the right machine, duplicated things, config from other machines, etc.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fixes #2338

How to test this PR?

Create like 5 podman machines with different cpu/memory/disk/etc.

before PR:
Use multiple machines and go to the settings page.
cpu, memory being displayed are the same for machines even if they have different values
All machines might be RUNNING or all Stopped
Tray menu only display one machine

etc.

After

  • check cpu/memory/state is correct for all the machines
  • check tray menu is ok
  • check you're to correctly pull an image

Change-Id: I76e23b1cc2656e6fd61d60a265d0b93698f7196d

@benoitf benoitf requested a review from a team as a code owner May 10, 2023 20:33
@benoitf benoitf requested review from jeffmaury and cdrage and removed request for a team May 10, 2023 20:33
before podman 4.5, socket path were different for all machines
with podman 4.5, socket path is the same for all the machines

so some functions were using the path as a key
then it leads to lot of errors with invalid data, failure to get the
right machine, duplicated things, config from other machines, etc.

fixes containers#2338

Change-Id: I76e23b1cc2656e6fd61d60a265d0b93698f7196d
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Copy link
Contributor

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

@benoitf benoitf merged commit 1aba2c1 into containers:main May 11, 2023
7 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 0.16.0 milestone May 11, 2023
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.

Upgrading to Podman 4.5 broke... lots
3 participants