• 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 using nmstatectl to manage an OVS bridge setup,

      When they attempt to delete all the OVS interfaces by applying a state with all interfaces marked as absent,

      Then, all specified OVS interfaces, including the bridge and its ports, must be completely removed and the operation must succeed 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 is using nmstatectl to manage an OVS bridge setup, When they attempt to delete all the OVS interfaces by applying a state with all interfaces marked as absent, Then, all specified OVS interfaces, including the bridge and its ports, must be completely removed and the operation must succeed 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?

      I'm doing some tests that exchange the ports among different types of controller, at last removing them all may fail randomly.

      Please provide the package NVR for which bug is seen:

      nmstate-2.2.33-1.el9.x86_64
      nispor-1.2.14-1.el9.x86_64
      NetworkManager-1.48.6-1.el9.x86_64
      openvswitch3.1-3.1.0-127.el9fdp.x86_64

      How reproducible:

      low

      Steps to reproduce

      echo 'interfaces:
      - name: ovs-br0
        type: ovs-bridge
        state: up
        bridge:
          port:
          - name: veth0
          - name: ovs-bond0
            link-aggregation:
              mode: balance-slb
              port:
              - name: veth2
              - name: veth1
              - name: veth4
              - name: veth3
      - name: veth0
        type: veth
        state: up
        veth:
          peer: veth0_p
      - name: veth3
        type: veth
        state: up
        veth:
          peer: veth3_p
      - name: veth2
        type: veth
        state: up
        veth:
          peer: veth2_p
      - name: veth1
        type: veth
        state: up
        veth:
          peer: veth1_p
      - name: veth4
        type: veth
        state: up
        veth:
          peer: veth4_p' | nmstatectl apply
      
      echo 'interfaces:
      - name: ovs-br0
        type: ovs-bridge
        state: up
        bridge:
          port:
          - name: ovs-bond0
            link-aggregation:
              mode: balance-slb
              port:
              - name: veth2
              - name: veth3
      - name: br0
        type: linux-bridge
        state: up
        bridge:
          port:
          - name: veth0
            vlan:
              mode: access
              tag: 305
      - name: bond0
        type: bond
        state: up
        link-aggregation:
          mode: balance-rr
          port:
          - veth4
          - veth1
        ipv4:
          enabled: true
          address:
          - ip: 192.168.199.1
            prefix-length: 24
        ipv6:
          enabled: true
          address:
          - ip: 192:168:199::1
            prefix-length: 64' | nmstatectl apply
      
      echo 'interfaces:
      - name: ovs-br0
        type: ovs-bridge
        state: up
        bridge:
          port:
          - name: veth0
          - name: ovs-bond0
            link-aggregation:
              mode: balance-slb
              port:
              - name: veth2
              - name: veth1
              - name: veth4
              - name: veth3
      - name: br0
        type: linux-bridge
        state: up
        bridge:
          port: []
      - name: bond0
        type: bond
        state: up
        link-aggregation:
          port: []' | nmstatectl apply
      
      echo 'interfaces:
      - name: bond0
        type: bond
        state: absent
      - name: br0
        type: linux-bridge
        state: absent
      - name: ovs-br0
        type: ovs-bridge
        state: absent
      - name: veth0
        type: veth
        state: absent
      - name: veth0_p
        type: veth
        state: absent
      - name: veth1
        type: veth
        state: absent
      - name: veth1_p
        type: veth
        state: absent
      - name: veth2
        type: veth
        state: absent
      - name: veth2_p
        type: veth
        state: absent
      - name: veth3
        type: veth
        state: absent
      - name: veth3_p
        type: veth
        state: absent
      - name: veth4
        type: veth
        state: absent
      - name: veth4_p
        type: veth
        state: absent' | nmstatectl apply  # <------ failed at this step
      

      Expected results

      Remove all interfaces in the desired state

      Actual results

      Sometimes failed, all interfaces are there

      Please search

      [ 11:25:58 ] :: [  BEGIN   ]

      in the attachment "runtest.log", the failed step started there

              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: