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

Cannot add/change route in kernel mode

    • No
    • Moderate
    • rhel-sst-network-management
    • ssg_networking
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Given a system administrator has stopped the NetworkManager service, added virtual Ethernet interfaces eth1 and eth1_p, and applied a configuration using nmstatectl,

      When they apply an updated configuration with modified routes using nmstatectl,

      Then, the system should successfully update the routes as defined in the new configuration and the new next-hop addresses should be applied and visible in the routing table.

      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
      Show
      Given a system administrator has stopped the NetworkManager service, added virtual Ethernet interfaces eth1 and eth1_p, and applied a configuration using nmstatectl, When they apply an updated configuration with modified routes using nmstatectl, Then, the system should successfully update the routes as defined in the new configuration and the new next-hop addresses should be applied and visible in the routing table. 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
    • None
    • None
    • None

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

      Cannot update/change route in kernel mode

      Please provide the package NVR for which bug is seen:

      nmstate-2.2.33-1.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      systemctl stop NetworkManager
      
      ip link add eth1 type veth peer eth1_p
      ip link set eth1 up
      ip link set eth1_p up
      
      cat << EOF > kernel.yaml
      ---
      dns-resolver: 
        config: 
          search: 
          - example.com
          - example.org
          server: 
          - 2001:4860:4860::8888
          - 2001:4860:4860::8844
          - 8.8.4.4
          - 8.8.8.8
      interfaces: 
        - name: eth1
          type: ethernet
          state: up
          ipv4:
            address: 
            - ip: 192.0.2.1
              prefix-length: 24
            dhcp: false
            enabled: true
          ipv6:
            address: 
            - ip: 2001:db8:1::1
              prefix-length: 64
            dhcp: false
            enabled: true
            autoconf: false
      routes: 
        config: 
        - destination: 0.0.0.0/0
          next-hop-address: 192.0.2.254
          next-hop-interface: eth1
          table-id: 100
        - destination: ::/0
          next-hop-address: 2001:db8:1::254
          next-hop-interface: eth1
          table-id: 100
      EOF
      
      nmstatectl apply kernel.yaml -k
      
      sed 's/254/250/g' kernel.yaml > kernel2.yaml
      
      nmstatectl apply kernel2.yaml -k
      

      Expected results

      The new routes added

      Actual results

      [2024-08-16T03:10:26Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Desired route destination: ::/0 next-hop-interface: eth1 next-hop-address: 2001:db8:1::250 table-id: 100 not found after apply
      [2024-08-16T03:10:27Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Desired route destination: ::/0 next-hop-interface: eth1 next-hop-address: 2001:db8:1::250 table-id: 100 not found after apply
      [2024-08-16T03:10:28Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Desired route destination: ::/0 next-hop-interface: eth1 next-hop-address: 2001:db8:1::250 table-id: 100 not found after apply
      [2024-08-16T03:10:29Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Desired route destination: ::/0 next-hop-interface: eth1 next-hop-address: 2001:db8:1::250 table-id: 100 not found after apply
      NmstateError: VerificationError: Desired route destination: ::/0 next-hop-interface: eth1 next-hop-address: 2001:db8:1::250 table-id: 100 not found after apply

              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:
              6 Start watching this issue

                Created:
                Updated: