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

Removing infiniband in bond doesn't reset IB's mtu to default

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.5
    • nmstate
    • No
    • Low
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 8
    • False
    • Hide

      None

      Show
      None
    • None
    • NMT SST - Future releases
    • Hide

      Given an infiniband interface is attached and then removed from a bond,

      When the interface is removed,

      Then its MTU should reset to the default value (4092) to ensure consistent connectivity.

      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 an infiniband interface is attached and then removed from a bond, When the interface is removed, Then its MTU should reset to the default value (4092) to ensure consistent connectivity. 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?

      If infiniband is attached to bond, using nmstate deletes them doesn't set IB's mtu back to the default value 4092.

      What is the impact of this issue to you?

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

      nmstate-2.2.35-1.el9.x86_64
      NetworkManager-1.48.10-2.el9_5.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      echo "
      interfaces:
      - name: bond0
        type: bond
        state: up
        ipv4:
          enabled: true
          address:
          - ip: 192.168.100.1
            prefix-length: 24
        ipv6:
          enabled: true
          address:
          - ip: 192:168:100::1
            prefix-length: 64
        link-aggregation:
          mode: active-backup
          port:
          - ibs2f0
          - ibs2f1
      - name: ibs2f0
        type: infiniband
        state: up
        infiniband:
          base-iface: ''
          mode: datagram
          pkey: '65535'
        mtu: 2022
      - name: ibs2f1
        type: infiniband
        state: up
        infiniband:
          base-iface: ''
          mode: datagram
          pkey: '65535'
        mtu: 1999
      " | nmstatectl apply
      
      echo "
      interfaces:
      - name: bond0
        type: bond
        state: absent
      - name: ibs2f0
        type: infiniband
        state: absent
      - name: ibs2f1
        type: infiniband
        state: absent
      " | nmstatectl apply 
      
      ip link show # check mtu
      

       

      Expected results

      IB mtu is reset to 4092

      Actual results

      8: ibs2f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 256
      link/infiniband 00:00:03:ac:fe:80:00:00:00:00:00:00:04:3f:72:03:00:dd:2a:2c brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
      altname ibp94s0f0
      9: ibs2f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 256
      link/infiniband 00:00:0c:65:fe:80:00:00:00:00:00:00:04:3f:72:03:00:dd:2a:2d brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
      altname ibp94s0f1

              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: