Bug 1806969

Summary: nmstate should report nameservers only once
Product: Red Hat Enterprise Linux 8 Reporter: Dominik Holler <dholler>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: ferferna, jiji, jishi, kanderso, lmiksik, mburman, network-qe, till
Target Milestone: rc   
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-0.3.2-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:08:25 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: 1806967    
Attachments:
Description Flags
terminal log of reproducer
none
verified.log none

Description Dominik Holler 2020-02-25 11:34:25 UTC
Created attachment 1665624 [details]
terminal log of reproducer

Description of problem:
If two interfaces are connected to the same subnet and the nameservers which are availbile via this subnet are reported twice.

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


How reproducible:


Steps to Reproduce:
1. Connect two NICs to the same subnet which is connected to the name server
2. nmstatectl show 
3.

Actual results:
dns-resolver: contains two entries for the same nameserver

Expected results:
dns-resolver: contains only a single entry for the same nameserver

Additional info:

Comment 1 Dominik Holler 2020-02-25 14:16:40 UTC
It would be nice to have this fixed in 8.2.z .

Comment 3 Fernando F. Mancera 2020-03-19 20:47:55 UTC
Upstream patch: https://github.com/nmstate/nmstate/commit/22ede6b05b09f2863202ad9c09a8fde3976c1e05

Comment 9 Mingyu Shi 2020-06-18 09:54:17 UTC
Reproduced on(nmstate was downgraded manually)
nmstate-0.2.6-1.el8.noarch
NetworkManager-1.22.8-4.el8.x86_64
DISTRO=RHEL-8.2.0-20200404.0
Linux hp-dl388g8-04.rhts.eng.pek2.redhat.com 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Verified:
nmstate-0.3.2-1.el8.noarch
NetworkManager-1.26.0-0.1.el8.x86_64
DISTRO=RHEL-8.3.0-20200616.0
Linux hp-dl388g8-08.rhts.eng.pek2.redhat.com 4.18.0-214.el8.x86_64 #1 SMP Fri Jun 12 08:55:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

See the attachment for details.

Comment 10 Mingyu Shi 2020-06-18 09:59:21 UTC
Created attachment 1697935 [details]
verified.log

Comment 13 errata-xmlrpc 2020-11-04 03:08:25 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 (nmstate 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/RHBA-2020:4696