Bug 2064067

Summary: bond: fix typo in supporting the infiniband ports in active-backup mode
Product: Red Hat Enterprise Linux 8 Reporter: Wen Liang <wenliang>
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.7CC: djez, maypatil, nhosoi, pgm-rhel-tools, rmeggins, spetrosi, zhguan
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: 8.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: rhel-system-roles-1.18.0-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:
: 2064388 (view as bug list) Environment:
Last Closed: 2022-11-08 09:40:46 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:    
Bug Blocks: 2064388, 2064391    

Description Wen Liang 2022-03-15 00:51:38 UTC
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 2 Zhiqian Guan 2022-03-22 05:16:32 UTC
*** Bug 2065203 has been marked as a duplicate of this bug. ***

Comment 4 Zhiqian Guan 2022-04-19 04:53:50 UTC
Postpone to 10 as this is still in POST

Comment 9 Fedora Update System 2022-05-11 01:18:10 UTC
FEDORA-2022-2da3a47337 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-05-11 01:24:19 UTC
FEDORA-2022-d6e6c7c37c has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-05-11 01:34:37 UTC
FEDORA-2022-671a5d63e6 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Zhiqian Guan 2022-06-02 11:09:42 UTC
Ran below test playbook on an RHEL8.7 control node, target RHEL7.9, 8.6, 8.7, 9.0, 9.1 as managed nodes, result looks fine as per attached detail logging, set this to VERIFIED
- name: Config Infiniband
  hosts: dell-per740-79.rhts.eng.pek2.redhat.com
  become: true
  tasks:
  - include_role:
      name: linux-system-roles.network
    vars:
      network_connections:
      - name: "bond0"
        state: up
        type: bond
        interface_name: "bond0"
        ip:
            address:
              - "192.0.2.1/24"
              - "2001:db8:1::1/64"
        bond:
          mode: active-backup
      # add an infiniband to the bond
      - name: "bond0-port1"
        state: up
        type: infiniband
        interface_name: "ib0"
        controller: "bond0"
      # add a second infiniband to the bond
      - name: "bond0-port2"
        state: up
        type: infiniband
        interface_name: "ib1"
        controller: "bond0"

Comment 21 errata-xmlrpc 2022-11-08 09:40:46 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:7568