• NetworkManager-1.47.3-1.el9
    • Major
    • ZStream
    • sst_network_management
    • ssg_networking
    • 6
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • NMT - RHEL-9.5 DTM 4
    • Approved Blocker
    • Hide

      As a system administrator, I want Nmstate to support rollback on global DNS configurations so that DNS settings can be reverted to their previous state after applying changes that do not meet operational requirements or cause issues.

      Given a system administrator has applied a new global DNS configuration using Nmstate without committing the changes,

      When they execute the `nmstatectl rollback` command to revert the changes,

      Then the system's `/etc/resolv.conf` should be restored to its previous state, reflecting the DNS server settings before the uncommitted changes were applied.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit test and integration test are written and pass
      • The fix is part of a downstream build attached to an errata
      • The fix should be backported into rhel-9.2

       

      Show
      As a system administrator, I want Nmstate to support rollback on global DNS configurations so that DNS settings can be reverted to their previous state after applying changes that do not meet operational requirements or cause issues. Given a system administrator has applied a new global DNS configuration using Nmstate without committing the changes, When they execute the `nmstatectl rollback` command to revert the changes, Then the system's `/etc/resolv.conf` should be restored to its previous state, reflecting the DNS server settings before the uncommitted changes were applied. Definition of Done: The implementation meets the acceptance criteria Unit test and integration test are written and pass The fix is part of a downstream build attached to an errata The fix should be backported into rhel-9.2  
    • Pass
    • Unspecified Release Note Type - Unknown

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

      Once nmstate use global DNS, the checkpoint rollback will not works any more.

      This break the rollback feature on DNS changes been wildly used in OpenShift nmstate operator.

      Please provide the package NVR for which bug is seen:

      NetworkManager-1.47.0-32946.copr.5f7a027f59.el9.x86_64
      nmstate-2.2.23-1.el9

      How reproducible:

      100%

      Steps to reproduce

      echo '---
      dns-resolver:
        config:
          server:
          - 2001:4860:4860::8888
          - 8.8.8.8
          - 2606:4700:4700::1111' | sudo nmstatectl apply - --no-commit
      
      sudo nmstatectl rollback
      

      Expected results

      The /etc/resolv.conf restored to old state

      Actual results

      The /etc/resolv.conf is holding name server of

      • 2001:4860:4860::8888
      • 8.8.8.8
      • 2606:4700:4700::1111

            fge@redhat.com Gris Ge
            fge@redhat.com Gris Ge
            Gris Ge Gris Ge
            Vladimir Benes Vladimir Benes
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: