Bug 1847544

Summary: Socket-activated Varlink (io.podman.socket) fails after first call
Product: Red Hat Enterprise Linux 8 Reporter: Matthew Heon <mheon>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: bbaude, dwalsh, jligon, jnovy, lsm5, mheon, tsweeney, ypu
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-2.0.0-0.7.rc6.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:05:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Heon 2020-06-16 15:23:50 UTC
Description of problem:

After the first call to the `io.podman` Varlink socket, subsequent calls will fail as the socket has been removed.

Version-Release number of selected component (if applicable):

podman-2.0.0-0.6.rc6.module+el8.3.0+7024+2421c176

How reproducible:

100%

Steps to Reproduce:
1. systemctl start io.podman.socket
2. varlink call unix:/run/podman/io.podman/org.varlink.service.GetInfo
3. varlink call unix:/run/podman/io.podman/org.varlink.service.GetInfo

Actual results:

Second (and all subsequent) `varlink call` statement fails as `/run/podman/io.podman` is missing/removed after first `varlink call`

Expected results:

All calls to `varlink call` are successful

Additional info:

Fix is already in flight upstream as https://github.com/containers/libpod/pull/6619

Comment 2 Jindrich Novy 2020-06-17 04:55:49 UTC
*** Bug 1847559 has been marked as a duplicate of this bug. ***

Comment 5 Joy Pu 2020-07-20 06:39:12 UTC
Test with podman-2.0.0-0.9.rc7.module+el8.3.0+7084+c16098dd.x86_64. And now the socket will not be removed. So set this to verified. Details:
# varlink call unix:/run/podman/io.podman/org.varlink.service.GetInfo
{
  "interfaces": [
    "org.varlink.service",
    "io.podman"
  ],
  "product": "podman",
  "url": "https://github.com/containers/libpod",
  "vendor": "Atomic",
  "version": "2.0.0-rc7"
}
# varlink call unix:/run/podman/io.podman/org.varlink.service.GetInfo
{
  "interfaces": [
    "org.varlink.service",
    "io.podman"
  ],
  "product": "podman",
  "url": "https://github.com/containers/libpod",
  "vendor": "Atomic",
  "version": "2.0.0-rc7"
}

Comment 8 errata-xmlrpc 2020-11-04 03:05:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4694