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 652499 - Renaming ethX devices during install creates duplicates
Summary: Renaming ethX devices during install creates duplicates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: udev
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: Radka Brychtova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-12 03:11 UTC by Madison Kelly
Modified: 2016-05-11 00:25 UTC (History)
6 users (show)

Fixed In Version: udev-147-2.69.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-11 00:25:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0903 0 normal SHIPPED_LIVE udev bug fix update 2016-05-10 22:51:07 UTC

Description Madison Kelly 2010-11-12 03:11:31 UTC
Description of problem:

If you manually change the network name to MAC address matching it creates new entries in '/etc/udev/rules.d/70-persistent-net.rules' instead of removing the old entries. For example, I've got three interfaces and the installer chose two given NICs as 'eth0' and 'eth2'. I went in to the advanced network configuration and swapped the MAC addresses and it created two new lines in the above file, causing 'eth0' to not come up on first boot. Deleted the duplicate lines solved the problem.

Version-Release number of selected component (if applicable):

anaconda-13.21.82-1.el6.x86_64

How reproducible:

First try, will try on other hardware and report if not 100%

Steps to Reproduce:
1. Select advanced configuration during installation and swap the MAC address between two 'ethX' devices.
2. Complete install and reboot.
3.
  
Actual results:

Duplicate entries.

Expected results:

Single entries with revised MAC addresses.

Additional info:

Comment 2 Radek Vykydal 2011-05-25 13:21:25 UTC
Anaconda copies /etc/udev/rules.d/70-persistent-net.rules generated by udev from installer environment to target system so udev just updates this file according to changes (done with NetworkManager Connection Editor in ifcfg files) after reboot. Does it cause any problems? For me the renaming works ok. Perhaps anaconda can stop copying the rules file to installed system.

Comment 3 Harald Hoyer 2011-05-25 13:30:05 UTC
Just name your interfaces with another namespace like "net*" and all those problems go away.
This issue is probably related to:
https://bugzilla.redhat.com/show_bug.cgi?id=701265

Comment 4 Madison Kelly 2011-05-26 17:14:50 UTC
(In reply to comment #2)
> Anaconda copies /etc/udev/rules.d/70-persistent-net.rules generated by udev
> from installer environment to target system so udev just updates this file
> according to changes (done with NetworkManager Connection Editor in ifcfg
> files) after reboot. Does it cause any problems? For me the renaming works ok.
> Perhaps anaconda can stop copying the rules file to installed system.

It's been some time since I filed this bug, I will have to test to see if it persists.

Comment 5 Madison Kelly 2011-05-26 17:16:18 UTC
(In reply to comment #3)
> Just name your interfaces with another namespace like "net*" and all those
> problems go away.
> This issue is probably related to:
> https://bugzilla.redhat.com/show_bug.cgi?id=701265

I'm not sure if it's related, I am not familiar with the source so I can't comment on the patch.

As for changing the name; That is another work-around, not a fix to the actual problem.

Comment 6 RHEL Program Management 2012-05-03 04:41:15 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 7 Harald Hoyer 2012-07-04 12:31:23 UTC
please retest with RHEL 6.3 udev

Comment 8 Harald Hoyer 2015-10-13 09:46:51 UTC
ping?

Comment 9 Madison Kelly 2015-10-13 14:32:37 UTC
Blast from the past... sorry, I'll try to test today on 6.7.

Comment 10 Michal Sekletar 2015-10-23 18:18:14 UTC
Any news?

Comment 11 Madison Kelly 2015-10-25 03:22:09 UTC
Sorry for the delay... 

It still created the duplicate udev rules. Fresh RHEL 6.7 install in a KVM VM with two interfaces. As before, I went to advanced network settings and swapped the MAC addresses.

Comment 12 Michal Sekletar 2015-11-19 16:39:29 UTC
I tried this now with two interfaces, eth0 and eth1. I left Mac addresses as they were and added Cloned mac address which was Mac address of the other interface. As this should be way how to actually swap mac addresses, because if you change mac addresses them self you are basically switching interface names.

I went ahead, knowing this is probably all wrong, finished installation and rebooted. I ended up with the system which had configured same MAC addresses on both interfaces (that was sort of expected), 2 entries in 70-persistent rules, and invalid ifcfg-files (they contained HWADDR and MACADDR option which is written in initscripts docs as unsupported/broken setup).

Bottom line, I think that what you are trying to do just can't work.

Comment 13 Michal Sekletar 2015-12-21 14:50:56 UTC
I've found similar bug reports for ubuntu/debian[1][2]. However I was not able to reproduce the issue as described by [1]. I can however backport the fix which ubuntu/debian now have and provide you with the test package.

[1] https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1470399
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765577

Comment 14 Michal Sekletar 2015-12-22 12:13:43 UTC
Here are test packages,

http://people.redhat.com/~msekleta/udev-147-2.66.el6/

Comment 17 Michal Sekletar 2016-01-05 15:11:27 UTC
Just to elaborate on comment #14.

Test packages them self are not that useful because issue occurs during system installation. Thus, I've created anaconda updates.img, problem is that I wasn't able to successfully use it (probably due to some anaconda limitation with regards to update images in RHEL6).

The only way I can think of how you can test the new package (in VM) is to unpack rpm to some place which is accessible from installer environment, start installation, using shell provided by installer replace udev and other files shipped in udev rpm which are part of installer environment, kill running udev daemon, start it again (now process will start from new binary), and finally hot-plug second NIC, then proceed with installation as described in bug Description.

Comment 19 Miroslav Vadkerti 2016-01-26 09:19:28 UTC
This update broke renaming of the devices on our machines.

We have:

# cat /etc/sysconfig/network-scripts/ifcfg-lblnet
DEVICE=lblnet
BOOTPROTO=static
IPADDR=10.0.0.2
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6ADDR=fd00:0::2/64
IPV6_AUTOCONF=no
NM_CONTROLLED=yes
ONBOOT=yes

TYPE=Ethernet
HWADDR=c4:34:6b:ac:98:8d

If I downgrade udev, everything works.

Comment 22 Radka Brychtova 2016-03-29 12:03:15 UTC
Swapping MAC addresses don't caused any duplicates in /etc/udev/rules.d/70-persistent-net.rules

Actually manual swap just rename devices and create new records in /etc/udev/rules.d/70-persistent-net.rules .

If for swapping is used "clone filed" in advanced setting, result may caused problems, because this way of swapping MAC addresses is not recommended (supported).

Since I was not able reproduce the scenario of duplicates records, verified Sanity only.

Comment 24 errata-xmlrpc 2016-05-11 00:25:45 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, 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://rhn.redhat.com/errata/RHBA-2016-0903.html


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