[Bug 850732] New: Online distribution upgrade breaks network connectivity
https://bugzilla.novell.com/show_bug.cgi?id=850732 https://bugzilla.novell.com/show_bug.cgi?id=850732#c0 Summary: Online distribution upgrade breaks network connectivity Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: f+novell@congenio.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 When using the method for an online distribution upgrade from 12.3 to 13.1 as specified here: http://en.opensuse.org/SDB:System_upgrade after a reboot, the machine is disconnected from the network because the name of the network adapter changes. I my case, a Realtek NIC that was present as 'eth0' became 'ens3' after reboot, thus the network settings from /etc/sysconfig/network did not apply. It turned out that the unique hardware IDs under /var/lib/hardware/udi were duplicated. In Yast network settings, the old adapter entry was still shown, but the NIC appeared as new unconfigured item. Maybe this was due to the fact that another driver module is used with the new kernel, I do not know. The Realtek NIC is very common, and in this specific case was the default adapter in a KVM/QEMU virtual machine, so this will happen very often. If the naming of the UIDs (or the device names) cannot be retained, at least the instructions for an online distribution upgrade should include a warning, because the whole purpose of an online distribution upgrade is defeated by this bug! Reproducible: Always Steps to Reproduce: 1. Do online distribution upgrade as specified here: http://en.opensuse.org/SDB:System_upgrade, e.g. from openSUSE 12.3 2. Reboot system Actual Results: Network connectivity not restored. Expected Results: Network functioning as before the upgrade. -- 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=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c1
--- Comment #1 from Uwe Meyer-Gruhl
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c2
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c3
Marius Tomaschewski
The /etc/udev/rules.d/70-persistent-net.rules should still exists after an upgrade and should be used... Reassign to udev maintainer.
Ahm... more correctly. It IMO shouldn't be rewritten from BUS to MAC. -- 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=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c4
--- Comment #4 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c5
--- Comment #5 from Marius Tomaschewski
No, in 12.3 was the same like in any other version, the rule to name the network adapter is based on mac address.
By default it is MAC, yes. In yast2 network, you can click & change to use a BUS based rule instead, what the customer did in 12.3... -- 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=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c6
--- Comment #6 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c7
--- Comment #7 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c8
Uwe Meyer-Gruhl
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c9
--- Comment #9 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c10
--- Comment #10 from Uwe Meyer-Gruhl
https://bugzilla.novell.com/show_bug.cgi?id=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c11
Robert Milasan
So, after all, the new scheme MAY give problems depending on how the old persistent rules have been created.
No, if using it normally the naming scheme of the persistent rules has not changed in years. If the rule will be or is generated by udev then it will work on any version. The rule which you have in 12.3 has been generated by some other app or manually by you or someone else. The naming scheme is not the issue, your problem is the way the rule has been create and by what. In previous version of udev there was a script called by 75-persistent-net-generator.rules called write_net_rules which never based itself on BUS_ID or something similar, always on mac address.
The new NIC naming scheme should at least be listed in the 13.1 release notes and in the online distribution upgrade instructions.
I was thinking this has been listed in the release notes. Sorry about that. -- 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=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c12
--- Comment #12 from Marius Tomaschewski
Well, then that has nothing to do with udev. If the rules where generated correctly it would work as expected.
The best way is to use the mac address, that doesn't change at all (at least it shouldn't).
This is not completely correct. MAC based matching is unusable for bonding [it usually a bond sets the MAC of the primary slave on _all_ slaves and stays with this MAC]. You need BUS based rule as you want to be able to replace the NIC with a different one [e.g. PCI hotplug] and the new NIC has to get the same name as the NIC before to be enslaved automatically. (In reply to comment #7)
BTW, how do you even generate a rule in yast? I've tried 13.1, but didn't see anything something like that.
It were working up to IMO 12.3 -- when not, is IMO a bug as it breaks bonding. (In reply to comment #11)
The naming scheme is not the issue, your problem is the way the rule has been create and by what. In previous version of udev there was a script called by 75-persistent-net-generator.rules called write_net_rules which never based itself on BUS_ID or something similar, always on mac address.
Ahm... it were generating MAC based rules for ethernet by default, but in some cases the rules were AFAIR always BUS based -- e.g. s390, ... And when there were bonding configured on top of an interface, the rule has to be rewritten to BUS based one. Otherwise hotplugging does not work. -- 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=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c13
--- Comment #13 from Marius Tomaschewski
I doubt that VM MACs change at each boot - they are ramdomly created when the VM guest is created.
And usually while migration / VM clone operations. This were the reason to not assign MAC based rules there. Further, the VM ifnames were usually stable. When the NIC were full-virtualized (intel, rtl, ...) , the MAC were often not in the locally administered addresses (0x${mac%%:*} & 0x02) range but in the range of the manufacturer and there were a rule for -- at least sometimes. -- 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=850732
https://bugzilla.novell.com/show_bug.cgi?id=850732#c
Robert Milasan
http://bugzilla.novell.com/show_bug.cgi?id=850732
Robert Milasan
participants (1)
-
bugzilla_noreply@novell.com