Bug 2064388

Summary: bond: fix typo in supporting the infiniband ports in active-backup mode
Product: Red Hat Enterprise Linux 8 Reporter: Rich Megginson <rmeggins>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Zhiqian Guan <zhguan>
Severity: unspecified Docs Contact: Mayur Patil <maypatil>
Priority: unspecified    
Version: 8.6CC: briasmit, djez, lmiksik, maypatil, mtembo, nhosoi, spetrosi, wenliang, zhguan
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: 8.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: rhel-system-roles-1.16.1-1.el8 Doc Type: Bug Fix
Doc Text:
.Fixed a typo to support `active-backup` for the correct bonding mode Previously, there was a typo,`active_backup`, in supporting the InfiniBand port while specifying `active-backup` bonding mode. Due to this typo, the connection failed to support the correct bonding mode for the InfiniBand bonding port. This update fixes the typo by changing bonding mode to `active-backup`. The connection now successfully supports the InfiniBand bonding port.
Story Points: ---
Clone Of: 2064067
: 2064391 2065203 (view as bug list) Environment:
Last Closed: 2022-05-10 14:13:22 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: 2064067    
Bug Blocks: 2064391, 2065203    

Description Rich Megginson 2022-03-15 17:59:38 UTC
+++ This bug was initially created as a clone of Bug #2064067 +++

Description of problem:

A typo in the code that checks if the bonding mode is `active-backup` when infiniband ports are specified. The original code is:
```
                    if connection["type"] == "infiniband":
                        if c["type"] == "bond" and c["bond"]["mode"] != "active_backup":
```

Notice that the mode should be `active-backup` instead of `active_backup`.

Comment 11 Zhiqian Guan 2022-03-21 11:24:33 UTC
reproduced on an Infiniband cards system with the affected version: 
rhel-system-roles-1.15.0-1.el8.noarch
verified on an Infiniband cards system with the fixed version: 
rhel-system-roles-1.16.1-1.el8.noarch

Please see the attachments for detailed logging.

Set this to VERIFIED

Comment 16 errata-xmlrpc 2022-05-10 14:13:22 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/RHBA-2022:1896