Bug 2073958

Summary: Podman v3.4.2 regression with hosts file breaks getHostAddress() call
Product: Red Hat Enterprise Linux 8 Reporter: Suhaas Bhat <subhat>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.5CC: bbaude, dwalsh, jligon, jnovy, lsm5, mheon, pholzing, pthomas, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-4.1.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:15:45 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 Suhaas Bhat 2022-04-11 08:47:26 UTC
Description of problem:
Updating to podman version 3.4 fails to fetch the local host name.

Version-Release number of selected component (if applicable):
podman-3.4.2-9.module+el8.5.0+13852+150547f7.x86_64

How reproducible:
Fully 

Steps to Reproduce:
https://github.com/containers/podman/issues/12003#issuecomment-991968895

Actual results:
Does not update hostnames

Expected results:
Should be able to update hostnames.

Additional info:

Comment 5 Daniel Walsh 2022-04-12 18:03:43 UTC
I would prefer to have customers wait for podman 4.1 if at all possible.

Comment 19 Alex Jia 2022-05-16 13:26:20 UTC
This bug has been verified on podman-4.1.0-2.module+el8.7.0+15223+3987d347.

[root@hpe-dl380pgen8-02-vm-1 ~]# podman run --name c4 --pod test fedora cat /etc/hosts
127.0.0.1	localhost localhost.localdomain localhost4 localhost4.localdomain4
::1	localhost localhost.localdomain localhost6 localhost6.localdomain6
10.88.0.1	host.containers.internal
10.88.0.11	test 64bac61c4b61-infra
127.0.0.1	c3
127.0.0.1	c4

Comment 21 errata-xmlrpc 2022-11-08 09:15:45 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-2022:7457