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

NM should allow DBus global DNS settings to be overwritten

    • rhel-sst-network-management
    • ssg_networking
    • 5
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Hide

      Given a system administrator configuring the file /etc/NetworkManager/conf.d/90-dns-servers.conf with global DNS options set to no-aaaa then restarts the NetworkManager service.

      When they prepare to apply the nmstate configuration in the description, 

      Then, NetworkManager should allow the DBus global DNS settings to be overwritten and the system administrator should be able to expose and view the DBus configuration through nmcli.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • The code is part of a build attached to an errata
      • The initial text for this enhancement in the feature-reason-result format (More details here)
      Show
      Given a system administrator configuring the file /etc/NetworkManager/conf.d/90-dns-servers.conf with global DNS options set to no-aaaa then restarts the NetworkManager service. When they prepare to apply the nmstate configuration in the description,  Then, NetworkManager should allow the DBus global DNS settings to be overwritten and the system administrator should be able to expose and view the DBus configuration through nmcli. Definition of Done: The implementation meets the acceptance criteria The code is part of a build attached to an errata The initial text for this enhancement in the feature-reason-result format (More details here )
    • None
    • None
    • None

       
      Please provide the package NVR for which bug is seen:
      # nmstatectl --version 
      nmstatectl 2.2.16
      # NetworkManager --version
      1.45.5-1.el9

      How reproducible:

      Everytime

      Steps to reproduce

      1. cat /etc/NetworkManager/conf.d/90-dns-servers.conf
        [global-dns]
        options=no-aaaa
      2. systemctl restart NetworkManager
      3. Apply the following example:

        dns-resolver:
          config:
            server:
              - 192.168.122.1
        interfaces:
          - name: eth3
            type: ethernet
            state: up
            ipv4:
              enabled: true
              auto-dns: false
            ipv6:
              enabled: false

      Expected results

      NM should allow DBus global DNS settings to be overwritten and in the meantime update the in-memory config file (NetworkManager --print-config)

      Actual results
      <info> [1690916121.4995] audit: op="networking-control" arg="global-dns-configuration" pid=289567 uid=0 result="fail" reason="Global DNS configuration already set via configuration file"

      NM prevent nmstate setting the DBus global dns property.

              rh-ee-sfaye Stanislas Faye
              liangwen12year Wen Liang
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: