• Yes
    • Moderate
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • Future releases
    • Hide

      Given a system administrator applies a configuration to create veth interfaces and attach them to an OVS bridge,

      When the configuration is applied using nmstatectl,

      Then, the veth interfaces should be created, the bridge should be updated with the correct ports and the configuration should pass the verification step without errors.

      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 applies a configuration to create veth interfaces and attach them to an OVS bridge, When the configuration is applied using nmstatectl, Then, the veth interfaces should be created, the bridge should be updated with the correct ports and the configuration should pass the verification step without errors. 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?

      Simulating a cnv env to create ovs, it failed when creating veth (attaching to ovs bridge) at the same time.

      What is the impact of this issue to you?

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

      nmstate-2.2.38-1.el9.x86_64
      NetworkManager-1.51.4-1.el9.x86_64
      openvswitch3.1-3.1.0-140.el9fdp.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      ip link add veth0 type veth peer veth0_ep
      ip link set veth0 up
      ip link set veth0_ep up
      nmcli dev set veth0 managed yes
      nmcli dev set veth0_ep managed yes
      
      cat << EOF > test_ovs_name.yaml
      interfaces:
      - name: br-ex
        type: ovs-interface
        state: up
      - name: veth0
        type: ethernet
        state: up
      - name: br-ex
        type: ovs-bridge
        state: up
        bridge:
          options:
            fail-mode: ''
            mcast-snooping-enable: false
            rstp: false
            stp: false
          port:
          - name: br-ex
          - name: veth0
          - name: ovn-veth
        lldp:
          enabled: false
      - name: cnv-veth
        type: veth
        state: up
        ipv4:
          enabled: false
          dhcp: false
        ipv6:
          enabled: false
          autoconf: false
          dhcp: false
        veth:
          peer: ovn-veth
      - name: ovn-veth
        type: veth
        state: up
        ipv4:
          enabled: false
          dhcp: false
        ipv6:
          enabled: false
          autoconf: false
          dhcp: false
        veth:
          peer: cnv-veth
      EOF
      
      nmstatectl apply test_ovs_name.yaml
      

      Expected results

      pass

      Actual results

      [2024-11-22T13:37:17Z INFO  nmstatectl] Nmstate version: 2.2.38
      [2024-11-22T13:37:17Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/1
      [2024-11-22T13:37:17Z INFO  nmstate::nm::profile] Skipping activation of br-ex as its controller br-ex will automatically activate it
      [2024-11-22T13:37:17Z INFO  nmstate::nm::profile] Skipping activation of ovn-veth as its controller br-ex will automatically activate it
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("a22ea178-5b98-4923-a439-a22362477865"), ID Some("br-ex-br"), type Some(OvsBridge) name Some("br-ex")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("abf93af8-ee21-410a-8eb9-0a556039c6e0"), ID Some("br-ex-port"), type Some(OvsPort) name Some("br-ex")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("6057ad36-5edb-4645-aa5f-83b05293eef8"), ID Some("ovn-veth-port"), type Some(OvsPort) name Some("ovn-veth")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("0c7c5a62-7265-486a-9bb5-1078a77a2d89"), ID Some("veth0-port"), type Some(OvsPort) name Some("veth0")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("9c5ae95f-e39d-40e0-9bb0-4d7a94fcb7bc"), ID Some("cnv-veth"), type Some(Veth) name Some("cnv-veth")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("a7229d4a-6d6a-45a5-8457-15523c9335dd"), ID Some("br-ex-if"), type Some(OvsIface) name Some("br-ex")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("0b0edfae-64aa-4bff-a866-abc460b8b463"), ID Some("ovn-veth"), type Some(Veth) name Some("ovn-veth")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("748fe166-2b6e-4651-9bc2-6c0a47c4f483"), ID Some("veth0"), type Some(Ethernet) name Some("veth0")
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Activating connection 9c5ae95f-e39d-40e0-9bb0-4d7a94fcb7bc: cnv-veth/veth
      [2024-11-22T13:37:17Z INFO  nmstate::nm::query_apply::profile] Activating connection 748fe166-2b6e-4651-9bc2-6c0a47c4f483: veth0/802-3-ethernet
      [2024-11-22T13:37:17Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:19Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:20Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:21Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:22Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:23Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:24Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:25Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:26Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:27Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', curr
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("a22ea178-5b98-4923-a439-a22362477865"), ID Some("br-ex-br"), type Some(OvsBridge) name Some("br-ex")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("abf93af8-ee21-410a-8eb9-0a556039c6e0"), ID Some("br-ex-port"), type Some(OvsPort) name Some("br-ex")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("6057ad36-5edb-4645-aa5f-83b05293eef8"), ID Some("ovn-veth-port"), type Some(OvsPort) name Some("ovn-veth")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("0c7c5a62-7265-486a-9bb5-1078a77a2d89"), ID Some("veth0-port"), type Some(OvsPort) name Some("veth0")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("9c5ae95f-e39d-40e0-9bb0-4d7a94fcb7bc"), ID Some("cnv-veth"), type Some(Veth) name Some("cnv-veth")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("a7229d4a-6d6a-45a5-8457-15523c9335dd"), ID Some("br-ex-if"), type Some(OvsIface) name Some("br-ex")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("0b0edfae-64aa-4bff-a866-abc460b8b463"), ID Some("ovn-veth"), type Some(Veth) name Some("ovn-veth")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("748fe166-2b6e-4651-9bc2-6c0a47c4f483"), ID Some("veth0"), type Some(Ethernet) name Some("veth0")
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection a22ea178-5b98-4923-a439-a22362477865: br-ex/ovs-bridge
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection abf93af8-ee21-410a-8eb9-0a556039c6e0: br-ex/ovs-port
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 6057ad36-5edb-4645-aa5f-83b05293eef8: ovn-veth/ovs-port
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 0c7c5a62-7265-486a-9bb5-1078a77a2d89: veth0/ovs-port
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 9c5ae95f-e39d-40e0-9bb0-4d7a94fcb7bc: cnv-veth/veth
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 9c5ae95f-e39d-40e0-9bb0-4d7a94fcb7bc: cnv-veth/veth
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection a7229d4a-6d6a-45a5-8457-15523c9335dd: br-ex/ovs-interface
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection a7229d4a-6d6a-45a5-8457-15523c9335dd: br-ex/ovs-interface
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 0b0edfae-64aa-4bff-a866-abc460b8b463: ovn-veth/veth
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 0b0edfae-64aa-4bff-a866-abc460b8b463: ovn-veth/veth
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 748fe166-2b6e-4651-9bc2-6c0a47c4f483: veth0/802-3-ethernet
      [2024-11-22T13:37:29Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 748fe166-2b6e-4651-9bc2-6c0a47c4f483: veth0/802-3-ethernet
      [2024-11-22T13:37:29Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:30Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:32Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:33Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:34Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:35Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:36Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:37Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:38Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'
      [2024-11-22T13:37:39Z INFO  nmstate::query_apply::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/1
      NmstateError: VerificationError: Verification failure: br-ex.interface.bridge.port desire '[{"name":"br-ex"},{"name":"ovn-veth"},{"name":"veth0"}]', current '[{"name":"br-ex"},{"name":"veth0"}]'

        1. nmtrace.log
          852 kB
          Mingyu Shi
        2. ovs-vswitchd.log
          278 kB
          Mingyu Shi

              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: