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

If dns server configured, cannot perform rollback when modifying dns options

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

    • None
    • None
    • 1
    • rhel-net-mgmt
    • ssg_networking
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • NMT SST - Future releases
    • Hide

      Given a system administrator using a system that has both DNS servers and DNS options configured,

      When the administrator modifies the DNS options and applies the changes using nmstatectl apply --no-commit --timeout 10, expecting a rollback to the initial DNS state after 10 seconds.

      Then the system should successfully revert to the previously applied DNS configuration after the specified timeout period.

      Definition of done:

      • The implementation meets the acceptance criteria
      • Unit test and integration tests are written and pass
      • The code is part of a build attached to an errata
      Show
      Given a system administrator using a system that has both DNS servers and DNS options configured, When the administrator modifies the DNS options and applies the changes using nmstatectl apply --no-commit --timeout 10, expecting a rollback to the initial DNS state after 10 seconds. Then the system should successfully revert to the previously applied DNS configuration after the specified timeout period. Definition of done: The implementation meets the acceptance criteria Unit test and integration tests are written and pass The code is part of a build attached to an errata
    • None
    • None
    • None

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

      If dns server and dns options are both configured, cannot perform rollback when modifying dns options.

      The bug is found on rhel 8.8.0.z but should also exist on other rhel 8 rebase/backport.

      Please provide the package NVR for which bug is seen:

      Verified with:
      nmstate-1.4.5-2.el8_8.x86_64
      nispor-1.2.10-1.el8.x86_64
      NetworkManager-1.40.16-5.el8_8.x86_64
      DISTRO=RHEL-8.8.0-updates-20231114.30

      How reproducible:

      100%

      Steps to reproduce

      echo '
      dns-resolver:
        config:
          options:
            - rotate
            - debug
            - timeout:5
            - attempts:6
            - ndots:7
            - edns0
            - inet6
            - ip6-bytestring
            - ip6-dotint
            - no-aaaa
            - no-check-names
            - no-ip6-dotint
            - no-reload
            - no-tld-query
            - single-request-reopen
            - single-request
            - trust-ad
            - use-vc
          server:
          - 10.72.17.5
          - 8.8.8.8
      ' | nmstatectl apply
      
      echo '
      dns-resolver:
        config:
          options:
            - rotate
            - debug
      ' | nmstatectl apply --no-commit --timeout 10
      
      nmstatectl show 
      cat /etc/resolv.conf
      

      Expected results

      Rollback to the fisrt applied state after 10 secs

      Actual results

      [18:39:59@cloud-qe-10 ~]0# nms show | yq .dns-resolver
      2023-11-19 18:40:04,147 root         DEBUG    NetworkManager version 1.40.16
      2023-11-19 18:40:04,148 root         DEBUG    Async action: Retrieve applied config: ethernet enp11s0 started
      2023-11-19 18:40:04,150 root         DEBUG    Async action: Retrieve applied config: ethernet enp11s0 finished
      2023-11-19 18:40:04,152 root         DEBUG    Interface ethernet.enp0s29u1u1u5 found. Merging the interface information.
      2023-11-19 18:40:04,153 root         DEBUG    Interface ethernet.enp11s0 found. Merging the interface information.
      config:
        options:
          - rotate
          - debug
        search: []
        server:
          - 10.72.17.5
          - 8.8.8.8
      running:
        options:
          - rotate
          - debug
        search: []
        server:
          - 10.72.17.5
          - 8.8.8.8
      [18:40:04@cloud-qe-10 ~]0# cat /etc/resolv.conf 

      1. Generated by NetworkManager
        search idmqe.lab.eng.bos.redhat.com
        nameserver 10.72.17.5
        nameserver 8.8.8.8
        options rotate debug

              rh-ee-sfaye Stanislas Faye
              rh-ee-mshi1 Mingyu Shi
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: