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 2148854 - Please backport: [PATCH] teamd: do no remove the ports on shutdown with -N
Summary: Please backport: [PATCH] teamd: do no remove the ports on shutdown with -N
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libteam
Version: 9.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 9.2
Assignee: Xin Long
QA Contact: LiLiang
URL:
Whiteboard:
Depends On:
Blocks: 2148856
TreeView+ depends on / blocked
 
Reported: 2022-11-28 07:34 UTC by Lubomir Rintel
Modified: 2023-01-23 15:35 UTC (History)
3 users (show)

Fixed In Version: libteam-1.31-16.el9_1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2148856 (view as bug list)
Environment:
Last Closed: 2023-01-23 15:23:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-140573 0 None None None 2022-11-28 08:13:39 UTC
Red Hat Product Errata RHBA-2023:0344 0 None None None 2023-01-23 15:23:34 UTC

Description Lubomir Rintel 2022-11-28 07:34:59 UTC
Please backport the following upstream commit:

dbb2cfc teamd: do no remove the ports on shutdown with -N

https://github.com/jpirko/libteam/commit/dbb2cfca35d2cd15125eb84e8f3940f8cc3ea860

This fixes handover from initrd to real root (without this teamd would deconfigure the ports in between).

Thank you!

Comment 6 LiLiang 2022-12-08 02:21:20 UTC
Tested

[root@dell-per740-17 ~]# teamd -d -N
This program is not intended to be run as root.
[root@dell-per740-17 ~]# ip link set team0 up
[root@dell-per740-17 ~]# ip link set ens1f0np0 down
[root@dell-per740-17 ~]# ip link set ens1f1np1 down
[root@dell-per740-17 ~]# teamdctl team0 port add ens1f0np0
[root@dell-per740-17 ~]# teamdctl team0 port add ens1f1np1
[root@dell-per740-17 ~]# dhclient -v team0
Internet Systems Consortium DHCP Client 4.4.2b1
Copyright 2004-2019 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
Listening on LPF/team0/b8:59:9f:06:56:6c
Sending on   LPF/team0/b8:59:9f:06:56:6c
Sending on   Socket/fallback
DHCPDISCOVER on team0 to 255.255.255.255 port 67 interval 6 (xid=0x94d4994c)
DHCPOFFER of 192.168.2.201 from 192.168.1.253
DHCPREQUEST for 192.168.2.201 on team0 to 255.255.255.255 port 67 (xid=0x94d4994c)
DHCPACK of 192.168.2.201 from 192.168.1.253 (xid=0x94d4994c)
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
bound to 192.168.2.201 -- renewal in 3379 seconds.
[root@dell-per740-17 ~]# ping 192.168.1.253 -I team0
PING 192.168.1.253 (192.168.1.253) from 192.168.2.201 team0: 56(84) bytes of data.
64 bytes from 192.168.1.253: icmp_seq=1 ttl=64 time=0.273 ms
64 bytes from 192.168.1.253: icmp_seq=1 ttl=64 time=0.288 ms (DUP!)
64 bytes from 192.168.1.253: icmp_seq=2 ttl=64 time=0.207 ms
64 bytes from 192.168.1.253: icmp_seq=2 ttl=64 time=0.218 ms (DUP!)
^C
--- 192.168.1.253 ping statistics ---
2 packets transmitted, 2 received, +2 duplicates, 0% packet loss, time 1023ms
rtt min/avg/max/mdev = 0.207/0.246/0.288/0.034 ms
[root@dell-per740-17 ~]# teamd -k -t team0
[root@dell-per740-17 ~]# ip link show team0
73: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether b8:59:9f:06:56:6c brd ff:ff:ff:ff:ff:ff
[root@dell-per740-17 ~]# ip link show ens1f0np0
6: ens1f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT group default qlen 1000
    link/ether b8:59:9f:06:56:6c brd ff:ff:ff:ff:ff:ff
    altname enp59s0f0np0
[root@dell-per740-17 ~]# ip link show ens1f1np1
7: ens1f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT group default qlen 1000
    link/ether b8:59:9f:06:56:6c brd ff:ff:ff:ff:ff:ff permaddr b8:59:9f:06:56:6d
    altname enp59s0f1np1
[root@dell-per740-17 ~]# ping 192.168.1.253 -I team0
PING 192.168.1.253 (192.168.1.253) from 192.168.2.201 team0: 56(84) bytes of data.
64 bytes from 192.168.1.253: icmp_seq=1 ttl=64 time=0.221 ms
64 bytes from 192.168.1.253: icmp_seq=1 ttl=64 time=0.220 ms (DUP!)
64 bytes from 192.168.1.253: icmp_seq=2 ttl=64 time=0.194 ms
^C
--- 192.168.1.253 ping statistics ---
2 packets transmitted, 2 received, +1 duplicates, 0% packet loss, time 1026ms
rtt min/avg/max/mdev = 0.194/0.211/0.221/0.012 ms
[root@dell-per740-17 ~]# ip link del team0
[root@dell-per740-17 ~]# ip link show team0
Device "team0" does not exist.
[root@dell-per740-17 ~]# ip link show ens1f0np0
6: ens1f0np0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:59:9f:06:56:6c brd ff:ff:ff:ff:ff:ff
    altname enp59s0f0np0
[root@dell-per740-17 ~]# ip link show ens1f1np1
7: ens1f1np1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:59:9f:06:56:6d brd ff:ff:ff:ff:ff:ff
    altname enp59s0f1np1

[root@dell-per740-17 ~]# rpm -q teamd
teamd-1.31-16.el9_1.x86_64
[root@dell-per740-17 ~]# rpm -q libteam
libteam-1.31-16.el9_1.x86_64

Comment 12 errata-xmlrpc 2023-01-23 15:23:31 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 (libteam 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:0344


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