Bug 2087994

Summary: podman-1.6.4-32 prints a `Error: read unixpacket` when running in interactive mode
Product: Red Hat Enterprise Linux 7 Reporter: Tristan Cacqueray <tdecacqu>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.9CC: bbaude, dornelas, dwalsh, jligon, jnovy, kmarutha, lsm5, mheon, pthomas, rrajaram, tsweeney, umohnani, vrothber, ypu
Target Milestone: rcKeywords: Extras, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-1.6.4-34.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-22 09:17:50 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:
Bug Depends On:    
Bug Blocks: 1186913    

Description Tristan Cacqueray 2022-05-18 15:35:37 UTC
Description of problem:

Since the latest update (release 32), interactive podman exec is failing.


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

podman-1.6.4-32.el7_9.x86_64


How reproducible:

all the time


Steps to Reproduce:
1. Create a container: `podman create --name interactive-test ubi8 sleep inf`
2. Start the container: `podman start interactive-test`
3. Run a command: `echo test | podman exec -i interactive-test cat`


Actual results:

The command prints `
test
Error: read unixpacket @->/var/run/libpod/socket/023bb7b359ddfbc9aad2568ca37b2ea47d6b4538b366e28880f9f3f5827c4ae2/attach: read: connection reset by peer
`


Expected results:

The command should not print the error.


Additional info:

This issue got introduced with the release 32, the reproducer does not work with the release 29.
The command exit code is still 0

Comment 17 Jindrich Novy 2022-06-27 13:28:15 UTC
*** Bug 2101425 has been marked as a duplicate of this bug. ***

Comment 21 Tom Sweeney 2022-06-28 22:43:32 UTC
The PR from Valentin has merged.  I'm going to set this to POST, THANK Valentin immensely, and assign this to Jindrich for further Packaging BZ needs.  Please adjust the BZ if further work is needed here.

Comment 24 Alex Jia 2022-07-06 03:31:18 UTC
This bug has been verified on podman-1.6.4-34.el7_9.x86_64 and podman-1.6.4-35.el7_9.x86_64.


[root@sweetpig-9 ~]# rpm -q podman
podman-1.6.4-34.el7_9.x86_64

[root@sweetpig-9 ~]# podman create --name interactive-test ubi8 sleep inf
b96db437d33d6ce17d87b7d5f2ed8cf9100ae88b9967de7f19aeaf57bc12a1e8

[root@sweetpig-9 ~]# podman start interactive-test
interactive-test
[root@sweetpig-9 ~]# echo test | podman exec -i interactive-test cat
test

[root@sweetpig-9 ~]# rpm -q podman
podman-1.6.4-35.el7_9.x86_64

[root@sweetpig-9 ~]# podman create --name interactive-test ubi8 sleep inf
cbb5da9c89cc23007c58a31f965761d2d6c13a380028b585c0a148c004f83d0b

[root@sweetpig-9 ~]# podman start interactive-test
interactive-test
[root@sweetpig-9 ~]# echo test | podman exec -i interactive-test cat
test

Comment 28 errata-xmlrpc 2022-08-22 09:17:50 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: podman security and bug fix 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-2022:6119