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 2128216 - [RFE] add "balance-slb" bonding mode (multi chassis link aggregation (MLAG)
Summary: [RFE] add "balance-slb" bonding mode (multi chassis link aggregation (MLAG)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Haller
QA Contact: Matej Berezny
Mayur Patil
URL:
Whiteboard:
Depends On:
Blocks: 2130240 2134429
TreeView+ depends on / blocked
 
Reported: 2022-09-20 08:58 UTC by Thomas Haller
Modified: 2023-05-09 10:22 UTC (History)
8 users (show)

Fixed In Version: NetworkManager-1.41.3-1.el9
Doc Type: Enhancement
Doc Text:
.The `balance-slb` bonding mode is now supported The new `balance-slb` bonding mode Source load balancing requires no switch configuration. The `balance-slb` divides traffic on the source ethernet address using `xmit_hash_policy`=`vlan+srcmac`, and NetworkManager adds necessary `nftables` rules for traffic filtering. As a result, you can now create bond profiles with the `balance-slb` option enabled by using NetworkManager.
Clone Of:
: 2130240 2134429 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:17:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch for backporting bond.balance-slb feature to rhel-8.6 (147.55 KB, text/plain)
2023-04-24 12:55 UTC, Thomas Haller
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-272 0 None None None 2023-02-08 08:45:31 UTC
Red Hat Issue Tracker RHELPLAN-134401 0 None None None 2022-09-20 09:29:34 UTC
Red Hat Product Errata RHBA-2023:2485 0 None None None 2023-05-09 08:17:52 UTC
freedesktop.org Gitlab NetworkManager NetworkManager-ci merge_requests 1233 0 None opened Draft: bond: added test for balance-slb bonding option 2022-11-07 14:13:19 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1385 0 None opened Draft: [th/mlag-bonding-slb] support "balance-slb" mode (multi chassis link aggregation (MLAG)) in NetworkManager with n... 2022-09-28 19:18:38 UTC

Description Thomas Haller 2022-09-20 08:58:01 UTC
Trying to solve bug 1724795.

See also: [1] https://docs.google.com/document/d/138Y1NC7ILDTTj7WkAW77ZV_Z-lxwhApNGJIZZ4OX4yE/edit



OVS supports a bonding mode "balance-slb" ([2]).

[2] http://docs.openvswitch.org/en/latest/topics/bonding/#slb-bondin

This should be supported by kernel's bonding driver.
First, there is a new kernel xmit_hash_policy="vlan+srcmac".
That works with various bonding modes (LACP) that require switch configuration.

The goal is to have that working without switch configuration and `mode=balance-xor`.


Native support for this was rejected by kernel upstream 
https://lore.kernel.org/netdev/?q=add+mac+filter+option+for+balance-xor
but NACK'ed because the filtering can be done with EBPF or NFT.


There is a script to do NFT based filtering (via a NetworkManager-dispatcher script) here ([3]). However, NetworkManager-disatcher does not have the right events (carrier change) for this. Extending NetworkManager-dispatcher might be possible and useful in its own, however, such an "integration" would still be pretty bad.

[3] https://gitlab.com/egarver/virtual-networking

Instead, add native support for this to NetworkManager. Basically, NetworkManager needs to configure some NFT rules when ports to the bond get attached.

Comment 9 Thomas Haller 2023-04-24 12:55:47 UTC
Created attachment 1959533 [details]
Patch for backporting bond.balance-slb feature to rhel-8.6

Btw, there are some WIP upstream patches for backporting the NetworkManager feature to RHEL8, see

 - th/mlag-bonding-slb-1.36
 - th/mlag-bonding-slb-1.38
 - th/mlag-bonding-slb-1.40

See for example https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commits/th/mlag-bonding-slb-1.36

Attached are those patches for rhel-8.6 dist-git (applies on top of commit 64553aa796c0fbc913704bb243418c490bca81d3).

Comment 11 errata-xmlrpc 2023-05-09 08:17:33 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 (NetworkManager 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-2023:2485


Note You need to log in before you can comment on or make changes to this bug.