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 2001818 - renaming veth device is not consistent
Summary: renaming veth device is not consistent
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Sekletar
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-07 09:15 UTC by Vladimir Benes
Modified: 2023-03-07 07:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-07 07:27:19 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-96389 0 None None None 2021-09-07 10:24:06 UTC

Description Vladimir Benes 2021-09-07 09:15:21 UTC
Description of problem:
I have an udev rule to have veth devices managed by NM 
    echo 'ENV{ID_NET_DRIVER}=="veth", ENV{INTERFACE}=="eth[0-9]|eth[0-9]*[0-9]", ENV{NM_UNMANAGED}="0"' >/etc/udev/rules.d/99-nm.rules
    udevadm control --reload-rules
    udevadm settle --timeout=5
    sleep 1

but then when I rename a device AND BACK the back doesn't happen and the device stays DOWN and unmanaged by NM


Version-Release number of selected component (if applicable):
systemd-239-50.el8.x86_64

How reproducible:
always

Steps to Reproduce:
reproducer seems to be this:
#/bin/bash

ip netns add namespace
ip link add eth11 type veth peer name eth11p
ip link set eth11p netns vethsetup

ip link set dev eth11 down
ip link set name ethZ eth11


sleep 1
ip link add eth11 type veth peer name eth11peer

sleep 1

ip link del eth11
ip link set dev ethZ down
ip link set name eth11 ethZ
ip link set dev eth11 up

systemctl stop NetworkManager

ip link set dev eth11 down
ip addr flush dev eth11

rm -rf /var/run/NetworkManager

sleep 1
systemctl restart NetworkManager


Actual results:
[root@n10 ~]# udevadm info -q property -x /sys/class/net/eth11
DEVPATH='/devices/virtual/net/ethZ'
ID_MM_CANDIDATE='1'
ID_NET_DRIVER='veth'
ID_NET_LINK_FILE='/usr/lib/systemd/network/99-default.link'
IFINDEX='428'
INTERFACE='ethZ'
NM_UNMANAGED='1'
SUBSYSTEM='net'
SYSTEMD_ALIAS='/sys/subsystem/net/devices/eth11 /sys/subsystem/net/devices/ethZ /sys/subsystem/net/devices/eth11'
TAGS=':systemd:'
UDEV_BIOSDEVNAME='0'
USEC_INITIALIZED='20677350359'
biosdevname='0'


Expected results:
[root@n10 ~]# udevadm info -q property -x /sys/class/net/eth11
DEVPATH='/devices/virtual/net/eth11'
ID_MM_CANDIDATE='1'
ID_NET_DRIVER='veth'
ID_NET_LINK_FILE='/usr/lib/systemd/network/99-default.link'
IFINDEX='428'
INTERFACE='eth11'
NM_UNMANAGED='1'
SUBSYSTEM='net'
SYSTEMD_ALIAS='/sys/subsystem/net/devices/eth11'
TAGS=':systemd:'
UDEV_BIOSDEVNAME='0'
USEC_INITIALIZED='20677350359'
biosdevname='0'


Additional info:

Comment 2 RHEL Program Management 2023-03-07 07:27:19 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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