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

Global DNS config without domains silently ignored from D-Bus

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

    • NetworkManager-1.55.4-1.el10
    • No
    • Low
    • ZStream
    • rhel-net-mgmt
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given a system admin configuring DNS search domains in a host with any tool relying on Nmstate, 

      When the tool is calling busctl to set only searches via GlobalDnsConfiguration, 

      Then NetworkManager must accept and persist the config (even if no servers key is present)


      ( ) Integration test case is available upstream.


      ( ) Code is reviewed and merged upstream.


      ( ) Preliminary testing is done.


      ( ) Upstream documentation is written in the upstream MR.


      ( ) Release notes text is written in the RHEL issue.


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given a system admin configuring DNS search domains in a host with any tool relying on Nmstate,  When the tool is calling busctl to set only searches via GlobalDnsConfiguration,  Then NetworkManager must accept and persist the config (even if no servers key is present) ( ) Integration test case is available upstream. ( ) Code is reviewed and merged upstream. ( ) Preliminary testing is done. ( ) Upstream documentation is written in the upstream MR. ( ) Release notes text is written in the RHEL issue. ( ) A demo is recorded
    • Requested
    • None
    • Bug Fix
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Configure DNS searches without defining any global-level DNS server from the D-Bus API.

      This is supported since NM 1.44, but it fails from D-Bus, it only works from config files.

      What is the impact of this issue to you?

      Needed for nmstate to allow configuring DNS searches and options always via global config: https://issues.redhat.com/browse/NMT-1795

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

      Main branch

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. nmcli general logging level DEBUG domains ALL
      2. busctl set-property \
            org.freedesktop.NetworkManager \
            /org/freedesktop/NetworkManager \
            org.freedesktop.NetworkManager \
            GlobalDnsConfiguration \
            a{sv} 1 searches as 2 example.org example.com

      Expected results

      The DNS searches are stored to the internal config file /var/lib/NetworkManager/NetworkManager-intern.conf

      Actual results

      The DNS searches are ignored, not saved. The logs show:

      <debug> [1755599326.9266] manager: set global DNS failed with error: Global DNS configuration is missing the default domain
       

              rhn-engineering-vbenes Vladimir Benes
              ihuguet@redhat.com Inigo Huguet
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: