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 2086965

Summary: Rework the infiniband support
Product: Red Hat Enterprise Linux 9 Reporter: Wen Liang <wenliang>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Zhiqian Guan <zhguan>
Severity: unspecified Docs Contact: Jaroslav Klech <jklech>
Priority: unspecified    
Version: 9.1CC: jharuda, jklech, nhosoi, rhel-cs-system-management-subsystem-qe, rmeggins, spetrosi, till, zhguan
Target Milestone: rcKeywords: Triaged
Target Release: 9.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: rhel-system-roles-1.18.0-1.el9 Doc Type: Enhancement
Doc Text:
.Users can create connections with IPoIB capability using the `network` RHEL System Role The `infiniband` connection type of the `network` RHEL System Role now supports the Internet Protocol over Infiniband (IPoIB) capability. To enable this feature, define a value to the `p_key` option of `infiniband`. Note that if you specify `p_key`, the `interface_name` option of the `network_connections` variable must be left unset. The previous implementation of the `network` RHEL System Role did not properly validate the `p_key` value and the `interface_name` option for the `infiniband` connection type. Therefore, the IPoIB functionality never worked before. For more information, see a README file in the `/usr/share/doc/rhel-system-roles/network/` directory.
Story Points: ---
Clone Of: 2086869 Environment:
Last Closed: 2022-11-15 10:23:47 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:
Bug Depends On: 2086869    
Bug Blocks:    

Description Wen Liang 2022-05-16 23:18:56 UTC
+++ This bug was initially created as a clone of Bug #2086869 +++

Description of problem:

This is more like the RFE than an bugfix. The following are the sub-tasks:

1. Add the infiniband setting description, the integration test.
2. Improve the infiniband setting validation.
3. Change the default value of `p_key` setting.

--- Additional comment from Rich Megginson on 2022-05-16 18:02:22 UTC ---

We will also need to add `--skip-tags tests::infiniband` to our downstream CI tests.

Comment 6 Zhiqian Guan 2022-06-02 11:00:27 UTC
Ran tests_infiniband_nm.yml on an RHEL9.1 control host, target RHEL7.9, 8.6, 8.7, 9.0, 9.1 as managed host, detailed logging can be found in the attachment

The feature itself is good. But there's an issue about the test playbook. When running the test playbook against an RHEL7.9 node, the mode/pkey of Infiniband cannot be found in the output of "ip" command, so that the testplaybook will fail in this case, but the configuration is fine. We only need to check the mode and pkey of interface by using "cat /sys/class/net/ib0.000a/pkey" and "cat /sys/class/net/ib0.000a/mode". 

I've attached the modified test playbook for your reference. 

Mark this as VERIFIED as the feature is good. I'll open another bug to track the test playbook issue.

Comment 11 errata-xmlrpc 2022-11-15 10:23:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:8117