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

disable ipv6 on default interface, dns server/search are cleared during updating connection

    • nmstate-1.4.6-4.el8_10
    • None
    • Moderate
    • ZStream
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • NMT - RHEL-9.5 DTM 20
    • Approved Blocker
    • Hide

      Given a system administrator is configuring a network setup on an environment with OpenShift and Nmstate, 

      When they apply the yaml file using `nmstatectl apply` to disable IPv6 on the default interface, 

      Then, IPv6 is disabled on the specified interface and the DNS server/search configurations in the `/var/run/NetworkManager/resolv.conf` file is not cleared or altered. 

       

      Definition of Done:

      • The implementation meets the acceptance criteria
      • The 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
         
      Show
      Given a system administrator is configuring a network setup on an environment with OpenShift and Nmstate,  When they apply the yaml file using `nmstatectl apply` to disable IPv6 on the default interface,  Then, IPv6 is disabled on the specified interface and the DNS server/search configurations in the `/var/run/NetworkManager/resolv.conf` file is not cleared or altered.    Definition of Done : The implementation meets the acceptance criteria The 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  
    • Pass
    • None
    • None

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

      Disable ipv6 on the default interface, found the dns server/search are cleared

      original OCP bug: https://issues.redhat.com/browse/OCPBUGS-31606

      Please provide the package NVR for which bug is seen:

      OPENSHIFT_VERSION="4.12"
      RHEL_VERSION="8.6"

      knmstate operator: kubernetes-nmstate-operator.4.12.0-202403241038

      nmstate-1.4.5-2.el8_6.x86_64

      How reproducible:

      always

      Steps to reproduce

      1. apply below nncp, nmstatectl apply disablev6.yaml
            interfaces:
            - name: ens192
              description: disable ipv6
              type: ethernet
              state: up
              ipv6:
                enabled: false
      2. check interface ip address, ipv6 is disabled
        sh-4.4# ip a show ens192
        2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
            link/ether 00:50:56:bd:bb:26 brd ff:ff:ff:ff:ff:ff
            inet 192.168.221.16/24 brd 192.168.221.255 scope global noprefixroute ens192
               valid_lft forever preferred_lft forever
        sh-4.4# 
      3. check /var/run/NetworkManager/resolv.conf,
        sh-4.4# cat /var/run/NetworkManager/resolv.conf 
        Generated by NetworkManager
        sh-4.4# 

      Expected results

      ipv6 is disabled, dns configuration has no change, as we didn't update it.

      Actual results

      ipv6 is disabled correctly, but dns search/server were cleared which is not expected.

      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8700] ++ connection 'update connection' (0x55ad36d4ea20/NMSimpleConnection/"802-3-ethernet" < 0x55ad36d4e2e0/NMSimpleConnection/"802-3-ethernet") [/org/freedesktop/NetworkManager/Settings/1]:
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8700] ++ connection                [ 0x55ad36f949a0 < 0x7f888c007cc0 ]
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ connection.lldp           = 0
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ ipv4                      [ 0x55ad36f94a70 < 0x55ad36d1ae00 ]
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ ipv4.dhcp-client-id       = 'mac'
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8701] ++ ipv4.dns                  = [] < [\"192.168.221.1\"]
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv4.dns-search           = [] < [\"qeci-623142.qe.devcluster.openshift.com\"]
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv4.routes               = ((GPtrArray*) 0x7f888c004360) < ((GPtrArray*) 0x7f888c004280)
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv4.gateway              < '192.168.221.1'
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv6                      [ 0x55ad36f94b40 < 0x55ad36d1ad30 ]
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8702] ++ ipv6.dhcp-duid            = 'll'
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ ipv6.dhcp-iaid            = 'mac'
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ ipv6.method               = 'disabled' < 'ignore'
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ user                      [ 0x55ad36f0af90 < *missing* ]
      Apr 01 13:46:30 qeci-623142-sztdc-compute-0 NetworkManager[1329]: <debug> [1711979190.8703] ++ user.data                 = ((GHashTable*) 0x55ad36e3d120)  

              lrintel Lubomir Rintel
              rh-ee-qiowang Qiong Wang
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: