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

cannot directly set ipv6 link local dns on a disconnected interface

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.8
    • nmstate
    • None
    • Yes
    • None
    • rhel-net-mgmt
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given a RHEL 9.4 system with nmstate-2.2.50 and NetworkManager-1.54 and a disconnected but managed interface veth0 with IPv6 enabled with a valid link-local address, 

      When applying a DNS resolver state via nmstatectl apply with a server fe80::deef:1%veth0, 

      Then the state is accepted without requiring interfaces.state: up, and no InvalidArgument or VerificationError is raised.


      ( ) Integration test case is available upstream.


      ( ) Code is reviewed and merged upstream.


      ( ) Preliminary testing is done.


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given a RHEL 9.4 system with nmstate-2.2.50 and NetworkManager-1.54 and a disconnected but managed interface veth0 with IPv6 enabled with a valid link-local address,  When applying a DNS resolver state via nmstatectl apply with a server fe80::deef:1%veth0,  Then the state is accepted without requiring interfaces.state: up, and no InvalidArgument or VerificationError is raised. ( ) Integration test case is available upstream. ( ) Code is reviewed and merged upstream. ( ) Preliminary testing is done. ( ) A demo is recorded
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      When configuring ipv6 link local dns on a disconnected (nmcli dev show) interface, even there is an ipv6 address on the interface, nmstate always raises "NmstateError: InvalidArgument: Interface veth0 has IPv6 disabled, hence cannot hold desired IPv6 link local DNS server fe80::deef:1%veth0"

      This action works well in nmstate-2.2.48, nmstate can apply DNS successfully and take control the interface

      What is the impact of this issue to you?

      Cannot simply apply ipv6 link local DNS setting only, without setting target interface "state: up" in the desired state

      Please provide the package NVR for which the bug is seen:

      nmstate-2.2.50-1.el9.x86_64
      NetworkManager-1.54.0-1.el9.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

       

      ip link add veth1 type veth peer veth1_ep
      ip link set veth1 up
      ip link set veth1_ep up
      sleep 1
      nmcli dev set veth1 managed yes
      if ! ip -6 addr show veth1 | grep veth1; then
        echo 0 > /proc/sys/net/ipv6/conf/veth1/disable_ipv6
        echo 0 > /proc/sys/net/ipv6/conf/veth1/addr_gen_mode
      fi
      # confirm veth1 has ipv6 address and is disconnected in NM
      ip -6 addr show veth1
      nmcli dev
      echo '
      dns-resolver:
        config:
          search:
            - redhat.com
            - usersys.redhat.com
          server:
            - 10.72.17.5
            - 8.8.8.8
            - ae86:3200:baba::1
            - fe80::deef:1%veth0
      ' | nmstatectl apply
      

       

      Expected results

      The DNS configured

      Actual results

      NmstateError: InvalidArgument: Interface veth0 has IPv6 disabled, hence cannot hold desired IPv6 link local DNS server fe80::deef:1%veth0

       

      If veth0 is already connected in NM, or append

      interfaces: 
      - name: veth0
        state: up
      

      into the desired state, the apply works

              nm-team Network Management Team
              rh-ee-mshi1 Mingyu Shi
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: