Bug 2116480

Summary: aardvark-dns, two processes, trying to use the same port on the same interface
Product: Red Hat Enterprise Linux 8 Reporter: Arya Rajendran <arajendr>
Component: podmanAssignee: Brent Baude <bbaude>
Status: CLOSED DUPLICATE QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.6CC: bbaude, dwalsh, jligon, jnovy, lsm5, mheon, pthomas, tsweeney, umohnani
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-08 21:20:10 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 Arya Rajendran 2022-08-08 15:30:00 UTC
Description of problem:

aardvark-dns, two processes, trying to use the same port on the same interface

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

Rhel8.6

How reproducible:

Reproducible when using customer product on low power hardware.

Steps to Reproduce:
1. podman starts first container, checks if there's aardvark-dns process running .
2. As there is no aardvark-dns instances running it starts it
3. aardvark-dns initializes and writes it's PID to pidfile
4. Another container is being started in parallel with the first one, so podman performs aardvark-dns checks
5. As first aardvark-dns hasn't finished initializing yet it haven't wrote its PID to pidfile
6. Second container assumes there's no aardvark-dns running due to an empty pidfile
7. Attempts to start it
8. We now have two aardvark-dns instances, one (the first one), bound to port 53 (as it was able to do it because it started and requested it first), second overwriting pidfile with its PID (unable to bind as port is already in use).
Actual results:

Observe 2 aardvark-dns processes running on the same bridge interface which is used by containers.

Expected results:

Only one aardvark-dns instances.

Comment 2 Tom Sweeney 2022-08-08 21:20:10 UTC
I'm closing this as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2116481.  If I'm mistaken and this is not a dupe, please reopen and add a comment with clarification please.

*** This bug has been marked as a duplicate of bug 2116481 ***

Comment 3 Red Hat Bugzilla 2023-09-15 01:57:13 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days