Bug 1925928

Summary: BrokenPipeError("Disconnected") when instaniate Client
Product: Red Hat Enterprise Linux 8 Reporter: Edward Shen <weshen>
Component: python-podman-apiAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: Edward Shen <weshen>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.3CC: ddarrah, dornelas, dwalsh, jhonce, jnovy, jwboyer, lfriedma, lsm5, tsweeney
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: container-tools-rhel8-8030120210208205200.c127ee91, podman-2.2.1-7.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-16 14:22:52 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 Edward Shen 2021-02-07 12:51:20 UTC
Description of problem:
As summary

Version-Release number of selected component (if applicable):
Included in rhel8.3.1 container-tools:rhel8 module: container-tools-rhel8-8030120210204092849.c127ee91
python-podman-api-1.2.0-0.2.gitd0a45fe.module+el8.3.1+9803+64eb0fd6.noarch

How reproducible:
always

Steps to Reproduce:
1. systemctl enable --now io.podman.socket
2. download requirements.txt from https://github.com/containers/python-podman/blob/master/requirements.txt
3. pip3 install -r requirements.txt
4. # python3
Python 3.6.8 (default, Aug 18 2020, 08:33:21)
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import podman
>>> c = podman.Client()

Actual results:
>>> >>> c = podman.Client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/podman/client.py", line 178, in __init__
    if not System(self._client).ping():
  File "/usr/lib/python3.6/site-packages/podman/libs/system.py", line 39, in ping
    response = podman.GetVersion()
  File "/usr/local/lib/python3.6/site-packages/varlink/client.py", line 89, in _wrapped
    return self._call(method.name, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/varlink/client.py", line 146, in _call
    (message, more) = self._next_varlink_message()
  File "/usr/local/lib/python3.6/site-packages/varlink/client.py", line 107, in _next_varlink_message
    message = next(self._next_message())
  File "/usr/local/lib/python3.6/site-packages/varlink/client.py", line 268, in _next_message
    raise BrokenPipeError("Disconnected")
BrokenPipeError: Disconnected

Expected results:
No errors encountered.

Additional info:

Comment 9 errata-xmlrpc 2021-02-16 14:22:52 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-2021:0531