Bug 1816043

Summary: Support 3 IPv4 or IPv6 DNS nameservers
Product: Red Hat Enterprise Linux 8 Reporter: Ales Musil <amusil>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: high Docs Contact:
Priority: high    
Version: 8.2CC: dholler, ferferna, fge, jiji, jishi, lmiksik, mburman, mtessun, network-qe, till
Target Milestone: rc   
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nmstate-0.2.6-6.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:00:37 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: 1816026    
Attachments:
Description Flags
verified.log none

Description Ales Musil 2020-03-23 08:38:21 UTC
Description of problem:

Currently nmstate supports only 2 nameservers. 

Version-Release number of selected component (if applicable):
nmstate-0.2.8-1.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. Add 3 DNS entries

Actual results:
Fails with "Nmstate only support at most 2 DNS name servers"


Additional info:
There is an issue for this [0] that seems to be forgotten. 

[0] https://nmstate.atlassian.net/browse/NMSTATE-220

Comment 11 Mingyu Shi 2020-03-27 03:43:12 UTC
nmstate-0.2.6-6.el8.noarch
NetworkManager-1.22.8-4.el8.x86_64
DISTRO=RHEL-8.2.0-20200326.n.0
Linux kvm-03-guest04.hv2.lab.eng.bos.redhat.com 4.18.0-192.el8.x86_64 #1 SMP Tue Mar 24 14:06:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


Verified, see the attachment for details.

1. Must be a default gateway interface
2. When config > 2 DNS, can use either ipv4 dns or ipv6 dns, not both at the same time
3. When config > 3 DNS, nmstate reports a warning 'The libc resolver may not support more than 3 nameservers'

Comment 12 Mingyu Shi 2020-03-27 03:44:06 UTC
Created attachment 1673950 [details]
verified.log

Comment 13 Mingyu Shi 2020-03-27 03:48:13 UTC
(In reply to Mingyu Shi from comment #11)

> Verified, see the attachment for details.
> 
> 1. Must be a default gateway interface

No this limitation for a DHCP interface. Just for static ip configured interface, require it is as a gateway interface.

Comment 15 errata-xmlrpc 2020-04-28 16:00:37 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, 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:1696