RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1815112 - Cannot assign static DNS with DHCP.
Summary: Cannot assign static DNS with DHCP.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.3
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks: 1812914
TreeView+ depends on / blocked
 
Reported: 2020-03-19 14:09 UTC by Gris Ge
Modified: 2021-09-03 15:28 UTC (History)
10 users (show)

Fixed In Version: nmstate-0.2.6-6.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:00:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 958 0 None closed dns: support static DNS with dynamic IP 2021-01-18 19:36:09 UTC
Red Hat Issue Tracker RHELPLAN-39500 0 None None None 2021-09-03 15:28:17 UTC
Red Hat Product Errata RHBA-2020:1696 0 None None None 2020-04-28 16:00:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.