[Bug 809843] New: Random eth0/eth1 name spave with two Ethernet driver modules
https://bugzilla.novell.com/show_bug.cgi?id=809843 https://bugzilla.novell.com/show_bug.cgi?id=809843#c0 Summary: Random eth0/eth1 name spave with two Ethernet driver modules Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: werner@suse.com QAContact: qa-bugs@suse.de Found By: Development Blocker: --- The system here uses two ethernet card, one is used for external network including dsl. The other gigabit ethernet card is used as internal network. The problem is that the asignment of eth0 and eth1 is random. As workaround I've added the r8169 module to the initrd to make sure that this drive is asigned to eth0 for the internal network. Beside this I'm using ifup. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c1
--- Comment #1 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c2
--- Comment #2 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c3
--- Comment #3 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c4
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c5
--- Comment #5 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c6
Marius Tomaschewski
Like Marius said, in the newer udev the persistent names are dropped and before they were unreliable which I can't do anyting about.
This is not correct. biosdevname is not reliable, not even on Dell boxes, where it aims to work: see bnc#810076 (because of BIOS versions, bugs in biosdecode, BIOS update?). Renaming inside of the same namespace as the kernel e.g. "eth" like try to rename "eth1" to "eth0" and "eth0" to "eth1" is not reliable. This is just a question of using different name scheme (e.g. "nicX") than the kernel to be reliable.
Now the fact that eth0 is renamed to eth1 or something like that, is not udev, udev doesn't handle the network devices anymore, so not much I can do here.
This is a mandatory functionality which has to available - we need a replacement. Just dropping it without a replacement is a no-go. Do you provide any replacement? We've dropped the persistent name encoding from sysconfig (ifcfg-bus-... ifcfg-id... on 10.x/SLES-10), because udev aimed to provide it. Removing persistent interface names breaks almost every network related configuration file, including sysconfig, SuSEfirewall2, dhcp, ... It is simply not possible to rewrite any configuration file at boot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c7
--- Comment #7 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c8
--- Comment #8 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c
Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c9
--- Comment #9 from Per Jessen
Yes, I've noticed too, that the persistent network interface name has been removed from udev and biosdevname usually does not work:
See perhaps bug#676025. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c10
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c11
--- Comment #11 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c12
--- Comment #12 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c13
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c14
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c16
--- Comment #16 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c17
--- Comment #17 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c18
--- Comment #18 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c19
--- Comment #19 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c20
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c21
--- Comment #21 from Per Jessen
Robert, "/sbin/biosdevname --policy physical --smbios 2.6 -d" without the "--nopirq" option seems to work on my Dell OptiPlex 960.
I tried on a couple of different HP DL380 (latest BIOS) biosdevname --policy physical --smbios 2.6 -d All "BIOS device" lines are empty. (doesn't matter if I include --nopirq or not). Same on an HP DL580G4. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c22
--- Comment #22 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c23
--- Comment #23 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c24
--- Comment #24 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c25
--- Comment #25 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c27
--- Comment #27 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c28
Cristian Rodríguez
It's OK Torsten, I've re-added the persistent rules for openSUSE 12.3 and should fix the issue. The next version of openSUSE and of course udev will have the full implementation of net_id and hwdb which should handle the network correctly, until then we rely on persistent rules.
I have a question .. why this rules were restored in factory when they are already obsolete ? the next iteration will have http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterface... and all this is moot.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c29
--- Comment #29 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c30
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c31
--- Comment #31 from Michal Filka
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c32
--- Comment #32 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c33
--- Comment #33 from Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c34
--- Comment #34 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c35
--- Comment #35 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c36
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c37
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c38
--- Comment #38 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c39
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c40
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c41
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c42
--- Comment #42 from Per Jessen
IMHO
... ATTR{address}=="00:25:22:9f:d6:c9" ... KERNEL=="eth*", NAME="eth0 ... ATTR{address}=="00:00:1c:d9:11:e7" ... KERNEL=="eth*", NAME="eth1
versus
eth0 Link encap:Ethernet HWaddr 00:00:1C:D9:11:E7 eth1 Link encap:Ethernet HWaddr 00:25:22:9F:D6:C9
is wrong, isn't it.
This is an ongoing thread about exactly this problem: http://lists.opensuse.org/opensuse/2013-03/msg01075.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c43
--- Comment #43 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c44
--- Comment #44 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c45
--- Comment #45 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c46
--- Comment #46 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c47
--- Comment #47 from Marius Tomaschewski
This was the issue or the missing code in rename_netif:
Mar 28 10:19:32 opensuse123.suse.cz systemd-udevd[270]: renamed network interface eth1 to rename3 Mar 28 10:19:32 opensuse123.suse.cz systemd-udevd[271]: renamed network interface eth0 to eth1
Udev has to rename to ifindex based $tmpname first as soon as possible, so another rule is able to rename to the currently occupied name. Basically something like this ("pseudo code" just for illustration): tmp="tmp" ip link set name "$wanted" dev "$current" && return 0 || { # rename to tmpname to allow another rule to rename to $current read idx < "/sys/class/net/$current/ifindex" tmpname="${tmp}-${idx}" ip link set name "$tmpname" || return 1 # schedule a "rename later" / do it in background current="$tmpname" ( for ((i=0; i<1000; i++)) ; do ip link set name "$wanted" dev "$current" && return 0 usleep 25000 done ) & disown -a } and it were IMO doing this before. It could be, that this were a patch before. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c48
--- Comment #48 from Marius Tomaschewski
ip link set name "$tmpname" || return 1 ip link set name "$tmpname" dev "$current" || return 1
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c49
--- Comment #49 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c50
--- Comment #50 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c51
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c52
--- Comment #52 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c53
--- Comment #53 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c54
--- Comment #54 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c55
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c56
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c57
--- Comment #57 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c58
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c59
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c60
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c61
--- Comment #61 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=809843
https://bugzilla.novell.com/show_bug.cgi?id=809843#c62
Robert Milasan
participants (1)
-
bugzilla_noreply@novell.com