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

Failed to create infiniband when the NM connection exist

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • No
    • Moderate
    • 1
    • rhel-net-mgmt
    • ssg_networking
    • 5
    • False
    • False
    • Hide

      None

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

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given an existing NM connection on an infiniband interface,

      When a new infiniband configuration is applied in nmstate,

      Then it should overwrite or co-exist with the existing NM connection 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

      ( ) Code changes are included in a downstream build attached to an errata.


      ( ) All required testing (manual and/or automated) passes successfully.


      ( ) Related documentation updates (if applicable) have been completed.

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given an existing NM connection on an infiniband interface, When a new infiniband configuration is applied in nmstate, Then it should overwrite or co-exist with the existing NM connection 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 ( ) Code changes are included in a downstream build attached to an errata. ( ) All required testing (manual and/or automated) passes successfully. ( ) Related documentation updates (if applicable) have been completed.
    • None
    • None
    • None

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

      Creating IB in nmstate failed when IB interface's NM connection existed, while the desired state were actually written into the connection.

      After deleting the NM connection, it works.

      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

      nmcli con add connection.id ibs2f0 \
          type infiniband \
          autoconnect false \
          connection.interface-name ibs2f0 \
          infiniband.transport-mode datagram \
          ipv4.method auto \
          ipv6.addr-gen-mode eui64 \
          ipv6.method auto
      
      nmcli con add connection.id ibs2f1 \
          type infiniband \
          autoconnect false \
          connection.interface-name ibs2f1 \
          infiniband.transport-mode datagram \
          ipv4.method auto \
          ipv6.addr-gen-mode eui64 \
          ipv6.method auto
      
      echo "
      routes:
        config:
        - destination: 192.168.199.0/24
          metric: 199
          next-hop-address: 192.168.100.199
          next-hop-interface: ibs2f0
          table-id: 199
        - destination: 192:168:199::/64
          metric: 199
          next-hop-address: 192:168:100::199
          next-hop-interface: ibs2f0
          table-id: 199
      interfaces:
      - name: ibs2f0
        type: infiniband
        state: up
        infiniband:
          base-iface: ''
          mode: datagram
          pkey: '65535'
        ipv4:
          enabled: true
          address:
          - ip: 192.168.100.1
            prefix-length: 24
        ipv6:
          enabled: true
          address:
          - ip: 192:168:100::1
            prefix-length: 64
        mtu: 2000
      - name: ibs2f1
        type: infiniband
        state: up
        infiniband:
          base-iface: ''
          mode: datagram
          pkey: '65535'
      " | nmstatectl apply
      

      Expected results

      Actual results

      [2024-09-18T05:43:36Z INFO  nmstatectl] Nmstate version: 2.2.35
      [2024-09-18T05:43:36Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/2
      [2024-09-18T05:43:36Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("5965bd5f-65f5-4e1e-b9f8-412684050c55"), ID Some("ibs2f0"), type Some(Infiniband) name Some("ibs2f0")
      [2024-09-18T05:43:36Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("892845dd-21b7-4418-8da2-29cd4ab03d25"), ID Some("ibs2f1"), type Some(Infiniband) name Some("ibs2f1")
      [2024-09-18T05:43:36Z INFO  nmstate::nm::query_apply::profile] Activating connection 5965bd5f-65f5-4e1e-b9f8-412684050c55: ibs2f0/infiniband
      [2024-09-18T05:43:36Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:43:37Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:43:37Z INFO  nmstate::nm::query_apply::profile] Will retry activation 2 seconds
      [2024-09-18T05:43:39Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:43:39Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:43:39Z INFO  nmstate::nm::query_apply::profile] Will retry activation 4 seconds
      [2024-09-18T05:43:43Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:43:43Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:43:43Z INFO  nmstate::nm::query_apply::profile] Will retry activation 8 seconds
      [2024-09-18T05:43:51Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:43:51Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:43:51Z INFO  nmstate::nm::query_apply::profile] Will retry activation 16 seconds
      [2024-09-18T05:44:07Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:44:07Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:44:07Z INFO  nmstate::nm::query_apply::profile] Will retry activation 32 seconds
      [2024-09-18T05:44:39Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:44:39Z INFO  nmstate::query_apply::net_state] Retrying on: Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("5965bd5f-65f5-4e1e-b9f8-412684050c55"), ID Some("ibs2f0"), type Some(Infiniband) name Some("ibs2f0")
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("892845dd-21b7-4418-8da2-29cd4ab03d25"), ID Some("ibs2f1"), type Some(Infiniband) name Some("ibs2f1")
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 5965bd5f-65f5-4e1e-b9f8-412684050c55: ibs2f0/infiniband
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 5965bd5f-65f5-4e1e-b9f8-412684050c55: ibs2f0/infiniband
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:44:41Z INFO  nmstate::nm::query_apply::profile] Will retry activation 2 seconds
      [2024-09-18T05:44:43Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:44:43Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:44:43Z INFO  nmstate::nm::query_apply::profile] Will retry activation 4 seconds
      [2024-09-18T05:44:47Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:44:47Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:44:47Z INFO  nmstate::nm::query_apply::profile] Will retry activation 8 seconds
      [2024-09-18T05:44:55Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:44:55Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:44:55Z INFO  nmstate::nm::query_apply::profile] Will retry activation 16 seconds
      [2024-09-18T05:45:11Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:45:11Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      [2024-09-18T05:45:11Z INFO  nmstate::nm::query_apply::profile] Will retry activation 32 seconds
      [2024-09-18T05:45:43Z INFO  nmstate::nm::query_apply::profile] Activating connection 892845dd-21b7-4418-8da2-29cd4ab03d25: ibs2f1/infiniband
      [2024-09-18T05:45:44Z INFO  nmstate::query_apply::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/2
      NmstateError: Bug: Manager(UnknownDevice): No suitable device found for this connection (device eno1 not available because profile is not compatible with device (mismatching interface name)).
      

              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: