Bug 1881463

Summary: [RFE] Requesting ability to configure the runner for team interfaces in dracut.cmdline/installations
Product: Red Hat Enterprise Linux 8 Reporter: jcastran
Component: dracutAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: ben.argyle, dcain, dracut-maint-list, dtardon, fsumsal, thomas.rumbaut
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: dracut-049-129.git20210107.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:02: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:

Description jcastran 2020-09-22 13:07:36 UTC
Requesting the ability to configure the runners for a team interface similar to bond.

# man dracut.cmdline
       bond=<bondname>[:<bondslaves>:[:<options>[:<mtu>]]]
vs     team=<teammaster>:<teamslaves>

This impacts the ability of customers to perform network installations when LACP is required. There is no way to get to stage2 and get the kickstart without configuring this first and we can't do it in dracut.

Comment 2 Ben 2020-09-23 12:04:59 UTC
I would dearly love to see this functionality added to RHEL7, please.  There's an inability to Kickstart RHEL7 with LACP-teamed interfaces at present.

I can't imagine I'm the only person in the world with dual-homed servers who want to not have to make extra configuration steps post-install?

Comment 4 David Tardon 2020-10-01 08:09:20 UTC
(In reply to Ben from comment #2)
> I would dearly love to see this functionality added to RHEL7, please. 

Sorry, but that ship has sailed...

Comment 5 trumbaut 2020-10-23 09:29:22 UTC
In /usr/lib/dracut/hooks/cmdline/96-parse-team.sh the runner is hard coded set to "activebackup". It should be fairly easy to allow an additional parameter here so that we can select "lacp" too. If someone points me to the right git repository, I will add a MR.

Comment 6 Ben 2020-10-23 09:47:22 UTC
(In reply to trumbaut from comment #5)
> In /usr/lib/dracut/hooks/cmdline/96-parse-team.sh the runner is hard coded
> set to "activebackup". It should be fairly easy to allow an additional
> parameter here so that we can select "lacp" too. If someone points me to the
> right git repository, I will add a MR.

If you can add the ability to configure the following, that'd be amazing.

"{\"runner\": {\"name\": \"lacp\", \"tx_hash\": [\"eth\", \"ipv4\", \"ipv6\"]}, \"link_watch\": {\"name\": \"ethtool\"}, \"ports\": {\"em1\": {}, \"em2\": {}}, \"tx_balancer\": {\"name\": \"basic\"}}"

However, I guess I can add the extra stuff once the OS is up and running (and accessible through the teamed connection).

Comment 7 trumbaut 2020-10-23 11:04:50 UTC
I've added https://github.com/dracutdevs/dracut/pull/960. Please review.

(In reply to Ben from comment #6)
> If you can add the ability to configure the following, that'd be amazing.
> 
> "{\"runner\": {\"name\": \"lacp\", \"tx_hash\": [\"eth\", \"ipv4\",
> \"ipv6\"]}, \"link_watch\": {\"name\": \"ethtool\"}, \"ports\": {\"em1\":
> {}, \"em2\": {}}, \"tx_balancer\": {\"name\": \"basic\"}}"
> 
> However, I guess I can add the extra stuff once the OS is up and running
> (and accessible through the teamed connection).

My PR doesn't allow to configure all details, but at least the runner type can now be customized. This should be enough for LACP. Other settings can be configured afterwards.

Comment 8 trumbaut 2020-10-26 12:23:53 UTC
My PR is in the dracut master branch now: https://github.com/dracutdevs/dracut/commit/e4483e5917b59918260ff0f0345abbea4a537f12.

Comment 15 errata-xmlrpc 2021-05-18 15:02: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 (dracut 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-2021:1661