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

Changing vrf route-table-id deactivated the ports

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

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

      None

      Show
      None
    • No
    • None
    • Hide

      Given a system administrator configuring a system with NetworkManager and nmstate installed,

      When they run a script (See reproducer in description) to change the 'vrf route-table-id' for network configurations,

      Then Nmstate should successfully change the 'vrf route-table-id' as specified without deactivating the ports.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit test and integration test are written and pass
      • The code is part of a downstream build attached to an errata
      Show
      Given a system administrator configuring a system with NetworkManager and nmstate installed, When they run a script (See reproducer in description) to change the 'vrf route-table-id' for network configurations, Then Nmstate should successfully change the 'vrf route-table-id' as specified without deactivating the ports. Definition of Done: The implementation meets the acceptance criteria Unit test and integration test are written and pass The code is part of a downstream build attached to an errata
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

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

      Changing vrf route-table-id deactivated the ports.
      It's easy to reproduce to run a script, but hard if you do that manually step by step.

      Please provide the package NVR for which bug is seen:

      nmstate-2.2.20-1.el9.x86_64
      nispor-1.2.14-1.el9.x86_64
      NetworkManager-1.45.8-1.el9.x86_64

      How reproducible:

      100% in script

      Steps to reproduce

      1. Run the reproducer.sh

      Expected results

      Changed route-table-id, don't touch the other stuffs

      Actual results

      + nmcli con
      NAME         UUID                                  TYPE      DEVICE     
      System eth0  5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03  ethernet  eth0       
      bond0        db4c5258-8260-4a8a-9be5-dbe997d171fb  bond      bond0      
      bond0.4000   4ca91fff-5ad5-42ba-b409-daa8193cdefa  vlan      bond0.4000 
      br0          04046dda-9b37-4cf3-94f3-c789526154a2  bridge    br0        
      vrf0         357964c2-d6a6-4ea7-b7a9-27e1eaaa5deb  vrf       vrf0       
      veth0        7b558b90-0a45-43dc-849e-046106ebe558  ethernet  veth0      
      veth1        6dec5561-7bd0-4dc4-a282-5fc558e18c83  ethernet  veth1      
      veth4        379e1b7a-b64e-498f-be82-bead8c47658f  ethernet  veth4      
      veth5        8c829cb9-146f-4a5d-8e87-cebd95ea86d7  ethernet  veth5      
      lo           4987ec4c-5699-4588-8edf-c7b44f0159e4  loopback  lo         
      eth0         ab910d51-42d0-42d0-b5dd-f0956ff0e3c2  ethernet  --         
      + nmstatectl apply
      + echo 'interfaces:
      - name: vrf0
        state: up
        type: vrf
        vrf:
          route-table-id: 201'
      [2023-12-20T06:47:19Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/119
      [2023-12-20T06:47:19Z INFO  nmstate::nm::query_apply::profile] Deactivating connection 357964c2-d6a6-4ea7-b7a9-27e1eaaa5deb: vrf0/vrf
      [2023-12-20T06:47:19Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("357964c2-d6a6-4ea7-b7a9-27e1eaaa5deb"), ID Some("vrf0"), type Some("vrf") name Some("vrf0")
      [2023-12-20T06:47:19Z INFO  nmstate::nm::query_apply::profile] Activating connection 357964c2-d6a6-4ea7-b7a9-27e1eaaa5deb: vrf0/vrf
      [2023-12-20T06:47:19Z INFO  nmstate::query_apply::net_state] Destroyed checkpoint /org/freedesktop/NetworkManager/Checkpoint/119
      dns-resolver: {}
      route-rules: {}
      routes: {}
      interfaces:
      - name: vrf0
        type: vrf
        state: up
        vrf:
          port: null
          route-table-id: 201
      ovs-db: {}
      ovn: {}
      
      + nmcli con
      NAME         UUID                                  TYPE      DEVICE 
      System eth0  5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03  ethernet  eth0   
      vrf0         357964c2-d6a6-4ea7-b7a9-27e1eaaa5deb  vrf       vrf0   
      lo           4987ec4c-5699-4588-8edf-c7b44f0159e4  loopback  lo     
      bond0        db4c5258-8260-4a8a-9be5-dbe997d171fb  bond      --     
      bond0.4000   4ca91fff-5ad5-42ba-b409-daa8193cdefa  vlan      --     
      br0          04046dda-9b37-4cf3-94f3-c789526154a2  bridge    --     
      eth0         ab910d51-42d0-42d0-b5dd-f0956ff0e3c2  ethernet  --     
      veth0        7b558b90-0a45-43dc-849e-046106ebe558  ethernet  --     
      veth1        6dec5561-7bd0-4dc4-a282-5fc558e18c83  ethernet  --     
      veth4        379e1b7a-b64e-498f-be82-bead8c47658f  ethernet  --     
      veth5        8c829cb9-146f-4a5d-8e87-cebd95ea86d7  ethernet  --
      

       

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

                Created:
                Updated:
                Resolved: