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.1   
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