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

Nmstate modified existing network connection on second apply of global DNS

    • None
    • None
    • ZStream
    • rhel-sst-network-management
    • ssg_networking
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • Hide

      Given a system administrator has applied the configuration to set global DNS settings as in the description, 
      When the system administrator applies this YAML configuration a second time,
      Then, the network connections should not be modified and only the global DNS configuration should be updated without affecting any interface configurations.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Integration tests are written and pass
      • The code is part of a downstream build attached to an errata
      • The fix is backported into RHEL-8.6.z
      Show
      Given a system administrator has applied the configuration to set global DNS settings as in the description,  When the system administrator applies this YAML configuration a second time, Then, the network connections should not be modified and only the global DNS configuration should be updated without affecting any interface configurations. Definition of Done: The implementation meets the acceptance criteria Integration tests are written and pass The code is part of a downstream build attached to an errata The fix is backported into RHEL-8.6.z
    • None
    • None
    • None

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

      When applying below YAML multiple times, nmstate will modify NM connections on the second apply:

      ---
      dns-resolver: 
        config: 
          search: 
          - example.com
          - example.org
          server: 
          - 1.1.1.1
      

      For this YAML, nmstate is supposed to only modify global DNS configrure without touching any interface configurations.

      Please provide the package NVR for which bug is seen:

      nmstate-1.4.6-1.el8_6.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. Apply above YAML twice

      Expected results

      No network connection should be modified.

      Actual results

      Log contains something like

      2024-06-17 18:18:46,606 root DEBUG Async action: Update profile uuid:6e9f7282-9e30-421b-8218-8b2efc868875 iface:br-ex type:ovs-interface started

      indicating nmstate is modifying the interface configuration.

              rh-ee-sfaye Stanislas Faye
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: