Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-107156

nmstate not using global DNS when mixing static DNS search domain with dynamic DNS nameserver

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6.z
    • nmstate
    • None
    • No
    • None
    • rhel-net-mgmt
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Given system configured with DHCP for gateway interface,
      When user apply desired state with static DNS search domains only,
      Then nmstate is not using NetworkManager global DNS to store the desired static DNS search domain.

      What is the impact of this issue to you?

      When using OpenShift on AWS or other cloud services where DHCP server is not configured by OpenShift user, user will lose this static DNS search domains upon node reboot.

      Please provide the package NVR for which the bug is seen:

      nmstate-2.2.48-1.el9

      How reproducible is this bug?:

      100%

      Steps to reproduce

      echo '---
      dns-resolver:
        config: {}
      interfaces:
        - name: eth1
          type: ethernet
          state: up
          ipv4:
            dhcp: true
            enabled: true
          ipv6:
            enabled: false' | sudo nmstatectl apply -
      
      echo '
      ---
      dns-resolver:
        config:
          search:
            - example.com
            - example.org' | sudo nmstatectl apply -
      

      Expected results

      /var/lib/NetworkManager/NetworkManager-intern.conf contains the static search domain, but DHCP provides DNS nameserver still applied to /etc/resolv.conf

      Actual results

      /var/lib/NetworkManager/NetworkManager-intern.conf does not contain static search domain.

              nm-team Network Management Team
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: