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

Route to ignored interface causing failure

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

    • nmstate-2.2.50-1.el10
    • No
    • Moderate
    • rhel-net-mgmt
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Unspecified Release Note Type - Unknown
    • Not Required
    • Not Required
    • Not Required
    • None

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

      Given a system with interface been marked a unmanaged in NetworkManager
      When applying desired state contains route to unmanaged interface,
      Then nmstate is fail the apply action with error:

      NmstateError: InvalidArgument: Route 'destination: 192.0.3.0/24 next-hop-interface: eth1 next-hop-address: 192.0.2.1 metric: 103': next hop interface eth1 not found
      

      What is the impact of this issue to you?

      OpenStack test impacted

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

      nmstate-2.2.48-1.el9

      How reproducible is this bug?:

      100%

      Steps to reproduce

      echo '---
      routes:
        config:
        - destination: 192.0.3.0/24
          next-hop-address: 192.0.2.1
          next-hop-interface: eth1
          metric: 103
      interfaces:
        - name: eth1
          type: ethernet
          state: ignore
          ipv4:
            address:
            - ip: 192.0.2.251
              prefix-length: 24
            dhcp: false
            enabled: true' | sudo nmstatectl apply -
      

      Expected results

      Desired route been ignored and no failure

      Actual results

      NmstateError: InvalidArgument: Route 'destination: 192.0.3.0/24 next-hop-interface: eth1 next-hop-address: 192.0.2.1 metric: 103': next hop interface eth1 not found

              rh-ee-mshi1 Mingyu Shi
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: