Bug 1815112

Summary: Cannot assign static DNS with DHCP.
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: amusil, edwardh, ferferna, jiji, jishi, lmiksik, mburman, mshi, network-qe, till
Target Milestone: rc   
Target Release: 8.3   
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: 1812914    

Description Gris Ge 2020-03-19 14:09:52 UTC
Description of problem:

When disabling the auto dns with DHCP enable, I cannot assign static DNS nameserver.

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

How reproducible:
100%

Steps to Reproduce:

---
dns-resolver:
  config:
    search:
    - example.com
    - example.org
    server:
    - 8.8.8.8
    - 2001:4860:4860::8888
interfaces:
  - name: eth1
    type: ethernet
    state: up
    mtu: 1500
    ipv4:
      enabled: true
      dhcp: true
      auto-dns: false
    ipv6:
      enabled: true
      dhcp: true
      autoconf: true
      auto-dns: false


Actual results:

libnmstate.error.NmstateValueError: Failed to find suitable interface for saving DNS name servers: 8.8.8.8

Expected results:

static DNS is support with DHCP

Additional info:

Comment 1 Gris Ge 2020-03-20 05:50:45 UTC
RHV is requesting fix of this bug and cannot wait 8.2.1 on this.

Comment 3 Gris Ge 2020-03-20 11:11:58 UTC
Upstream has merge the patch.

Comment 9 Till Maas 2020-03-23 15:09:25 UTC
Michael, Mingyu: Please verify this fix (using the build from the dist-git PR) and report back.

Comment 10 Michael Burman 2020-03-23 15:19:00 UTC
(In reply to Till Maas from comment #9)
> Michael, Mingyu: Please verify this fix (using the build from the dist-git
> PR) and report back.

Is there a way to consume a rpm?

Comment 14 Gris Ge 2020-03-24 02:59:53 UTC
Please set `'auto-dns': False`

Comment 17 Michael Burman 2020-03-26 12:24:59 UTC
Works fine with vdsm fix in BZ 1812914

Comment 21 Mingyu Shi 2020-03-27 03:45:33 UTC
Version:
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 log at https://bugzilla.redhat.com/show_bug.cgi?id=1816043#c12 for details

Comment 23 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