Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2074602

Summary: Bring down the IP over infiniabnd connection will not remove the virtual infiniband device automatically
Product: Red Hat Enterprise Linux 8 Reporter: Wen Liang <wenliang>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED MIGRATED QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: bgalvani, lrintel, rkhan, sfaye, sukulkar, till
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-17 07:14:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wen Liang 2022-04-12 15:35:45 UTC
Description of the problem:

The following is the connection settings for `ib0-10`:

```network role
            network_connections:
              - name: ib0
                type: infiniband
                interface_name: ib0

              - name: ib0-10
                interface_name: ib0.000a
                type: infiniband
                autoconnect: yes
                infiniband:
                  p_key: 10
                  transport_mode: datagram
                parent: ib0
                state: up
                ip:
                  dhcp4: no
                  auto6: no
                  address:
                    - 198.51.100.133/30
                    - 2001:db8::2/32

```

Before bringing down the connection, the connection is active:
[root@wsfd-netdev23 ~]# nmcli c show --active
NAME    UUID                                  TYPE        DEVICE     
ib0-10  de8ed21e-de6a-4a54-8700-2637cec33ba8  infiniband  ib0.000a 


[root@wsfd-netdev23 ~]# ip -d a s ib0.000a
28: ib0.000a@ib0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 4092 qdisc fq_codel state LOWERLAYERDOWN group default qlen 256
    link/infiniband 80:00:02:16:fe:80:00:00:00:00:00:00:f4:52:14:03:00:33:bd:31 brd 00:ff:ff:ff:ff:12:40:1b:80:0a:00:00:00:00:00:00:ff:ff:ff:ff promiscuity 0 minmtu 0 maxmtu 65520 
    ipoib pkey 0x800a mode datagram umcast 0000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
    inet 198.51.100.133/30 brd 198.51.100.135 scope global noprefixroute ib0.000a
       valid_lft forever preferred_lft forever
    inet6 2001:db8::2/32 scope global tentative noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::b41c:fee:35b1:fc43/64 scope link tentative noprefixroute 
       valid_lft forever preferred_lft forever



After bringing down the connection, the virtual infiniband device still exists:

[root@wsfd-netdev23 ~]# nmcli c down ib0-10
Connection 'ib0-10' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/17)
[root@wsfd-netdev23 ~]# ip -d a s ib0.000a
28: ib0.000a@ib0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 4092 qdisc fq_codel state LOWERLAYERDOWN group default qlen 256
    link/infiniband 80:00:02:16:fe:80:00:00:00:00:00:00:f4:52:14:03:00:33:bd:31 brd 00:ff:ff:ff:ff:12:40:1b:80:0a:00:00:00:00:00:00:ff:ff:ff:ff promiscuity 0 minmtu 0 maxmtu 65520 
    ipoib pkey 0x800a mode datagram umcast 0000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 



Version-Release number of selected component (if applicable):
NetworkManager-1.39.0-1.el8.x86_64
NetworkManager-libnm-1.39.0-1.el8.x86_64


How reproducible:
I can reproduce every time  

Actual results:
Bring down the IP over infiniabnd connection will not remove the virtual infiniband device automatically 

Expected results:
Bring down the IP over infiniabnd connection should remove the virtual infiniband device automatically

Comment 2 RHEL Program Management 2023-08-17 07:13:57 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.