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

Creating ovs-bond sometimes failed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.5
    • nmstate
    • Yes
    • None
    • rhel-sst-network-management
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Given a system administrator is creating an OVS bond with multiple ports using nmstatectl,

      When they apply the bond configuration with OVS services starting and stopping during the process,

      Then, the OVS bond should be successfully created and applied without any failures.

      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 is creating an OVS bond with multiple ports using nmstatectl, When they apply the bond configuration with OVS services starting and stopping during the process, Then, the OVS bond should be successfully created and applied without any failures. 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?

       

      Please provide the package NVR for which bug is seen:

      nmstate-2.2.33-1.el9.x86_64

      How reproducible:

      Sometimes

      Steps to reproduce

      ip link add veth0 type veth peer name veth0_ep
      ip link set veth0 up
      ip link set veth0_ep up
      nmcli device set veth0 managed yes
      nmcli device set veth0_ep managed yes
      ip link add veth1 type veth peer name veth1_ep
      ip link set veth1 up
      ip link set veth1_ep up
      nmcli device set veth1 managed yes
      nmcli device set veth1_ep managed yes
      
      cat << EOF > ovs-bond.yaml
      interfaces:
        - name: ovs-br0
          type: ovs-bridge
          state: up
          bridge:
            options:
              stp: false
            port:
              - name: ovs-bond0
                link-aggregation:
                  mode: balance-slb
                  port:
                    - name: veth1
                    - name: veth0
      EOF
      
      systemctl stop openvswitch
      nmstatectl set ovs-bond.yaml || true
      echo 'ovs-db: {}' | nmstatectl apply
      systemctl start openvswitch
      
      # failed 1
      nmstatectl set ovs-bond.yaml
      
      # failed 2
      echo '
      interfaces:
      - name: ovs-br0
        state: absent
      - name: veth0
        state: absent
      - name: veth1
        state: absent' | nmstatectl apply
      

      Expected results

      No failure

      Actual results

      Sometimes failed in the last 2 steps

      Please see the attachment `runtest.log` for the details

              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: