[udev] Adding "Austin" adapter to Ubuntu partition take over system network interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Trusty |
Fix Released
|
Undecided
|
Mathieu Trudel-Lapierre | ||
Vivid |
Fix Released
|
High
|
Martin Pitt | ||
Wily |
Fix Released
|
Undecided
|
Mathieu Trudel-Lapierre |
Bug Description
[Impact]
This impacts any user of LPARs; upon adding physical network interfaces (or, realistically, any network interface at all, even virtual), the network interface which is used for system access and used to install the system may not appear in the same order after reboot.
[Test Case]
Requires access to logical partitions.
1) Install system
2) Add an physical network adapter to the partition
3) Reboot.
Observed behavior:
After reboot, the virtual adapter expected to be used is unavailable, the address is assigned to any other network adapter which may have been detected and used persistent addresses.
Expected behavior
The system should come up with network interfaces in the same order as before rebooting.
[Regression Potential]
Added virtual interfaces that should be not persist (because they are locally administered and thus may have their MAC address change) may come up as persistent devices due to the use of the ibmveth driver, and thus fail to work as expected.
---
Problem Description:
=======
Adding Austin adapter to Ubuntu partition took over system network interface. This caused system to be off network connection.
ver 1.5.4.3 - OS, HTX, Firmware and Machine details
Machine Serial No: IBM,0210800E7
Machine Type/Model: IBM,9119-MHE
BEFORE adding Austin adapter to br14p08:
=======
Before adding austin adapter to br14p05 (vio client), the system network is good.
ubuntu@br14p08:~$ lsslot -cpci
ubuntu@br14p08:~$
+ eth0 U9119.MHE.
root@br14p08:~# lscfg |grep eth
+ eth0 U9119.MHE.
root@br14p08:~# ifconfig
eth0 Link encap:Ethernet HWaddr 16:59:c0:50:0a:02
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::1459:
inet6 addr: 2002:903:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37366 errors:0 dropped:16 overruns:0 frame:0
TX packets:153 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2472739 (2.4 MB) TX bytes:22596 (22.5 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@br14p08:~# ping br14p08
PING br14p08.
64 bytes from br14p08.
64 bytes from br14p08.
64 bytes from br14p08.
^C
--- br14p08.
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.004/0.
root@br14p08:~# ping nimitz
PING nimitz.
64 bytes from nimitz.
64 bytes from nimitz.
64 bytes from nimitz.
^C
AFTER ADDED Austin Adapter:
=======
Once the Austin adapter added to the partition, the Austin's 1st port became eth0.
and it pushed the virtual ethernet (which is system's ethernet) to be eth4.
However, the system still looking for eth0 as system's main network interface.
root@br14p08:~# lscfg | grep eth
+ eth4 U9119.MHE.
+ eth0 U78CA.001.
+ eth0 U78CA.001.
+ eth3 U78CA.001.
+ ethernet U78CA.001.
+ eth5 U78CA.001.
+ eth4 U9119.MHE.
+ eth0 U78CA.001.
+ eth0 U78CA.001.
+ ptp0 U78CA.001.
+ eth3 U78CA.001.
+ ethernet U78CA.001.
+ eth5 U78CA.001.
root@br14p08:~# ifconfig
eth0 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a0
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::42f2:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:509 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:32744 (32.7 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:258 errors:0 dropped:0 overruns:0 frame:0
TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:28260 (28.2 KB) TX bytes:28260 (28.2 KB)
== Comment: #8 - Siraj M. Ismail <email address hidden> - 2015-03-23 16:43:50 ==
This is a LPAR on a PowerVM system, so no bridge or br0 interfaces on this one. The Virtual adapter is provided by the VIOS server, which shows up as a ethernet port when the LPAR boots up. The issue is that when another adapter with 4 ports gets added to the LPAR with DLPAR add operation while the partition is running, the original eth0 gets renamed to eth5 or similar, and we loose the IP configuration for the LPAR. And that is what need to be looked at and see if this is a driver issue or just a procedure change.
Here are some details of what happens on the system:
Before adding the adapter: (initial config)
=======
root@br14p08:~# lsslot
# Slot Description Linux Name Device(s)
U9119.MHE.
U9119.MHE.
U9119.MHE.
root@br14p08:~# ethtool -P eth0
Permanent address: 16:59:c0:50:0a:02 <== MAC
root@br14p08:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 16:59:c0:50:0a:02
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::1459:
inet6 addr: 2002:903:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:375794 errors:0 dropped:1 overruns:0 frame:0
TX packets:9646 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46210638 (46.2 MB) TX bytes:787820 (787.8 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@br14p08:~# cat /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 9.3.21.12
netmask 255.255.254.0
gateway 9.3.20.1
dns-nameservers 9.3.1.200
dns-search aus.stglabs.ibm.com isst.aus.
After adding a four port Ethernet adapter at runtime:
=======
Before Reboot:
===========
root@br14p08:~# lspci
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
root@br14p08:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 16:59:c0:50:0a:02
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::1459:
inet6 addr: 2002:903:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:637083 errors:0 dropped:3 overruns:0 frame:0
TX packets:10943 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:63241734 (63.2 MB) TX bytes:977826 (977.8 KB)
eth3 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth4 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a2
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth5 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a3
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
rename6 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
After reboot:
=========
root@br14p08:~# lspci
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
root@br14p08:~# lsslot
# Slot Description Linux Name Device(s)
U9119.MHE.
U9119.MHE.
U9119.MHE.
root@br14p08:~#
root@br14p08:~# ifconfig
eth0 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a0
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::42f2:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:242 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:15656 (15.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:13584 (13.5 KB) TX bytes:13584 (13.5 KB)
root@br14p08:~# ethtool -P eth0 <= Eth0 has changed to new adapter
Permanent address: 40:f2:e9:5a:33:a0
As you can see, port for eth0 has now changed, but the IP address stayed with the port name eth0, whih causes the LPAR to loose it's network. That is the issue we need to address with this bug.
== Comment: #9 - Brian J. King <email address hidden> - 2015-03-23 18:49:15 ==
It looks like Ubuntu 14.04 by default uses /lib/udev/
== Comment: #11 - Siraj M. Ismail <email address hidden> - 2015-03-24 10:19:20 ==
This is a LPAR on a PowerVM system, so no bridge or br0 interfaces on this one. The Virtual adapter is provided by the VIOS server, which shows up as a ethernet port when the LPAR boots up. The issue is that when another adapter with 4 ports gets added to the LPAR with DLPAR add operation while the partition is running, the original eth0 gets renamed to eth5 or similar, and we loose the IP configuration for the LPAR. And that is what need to be looked at and see if this is a driver issue or just a procedure change.
Here are some details of what happens on the system:
Before adding the adapter: (initial config)
=======
root@br14p08:~# lsslot
# Slot Description Linux Name Device(s)
U9119.MHE.
U9119.MHE.
U9119.MHE.
root@br14p08:~# ethtool -P eth0
Permanent address: 16:59:c0:50:0a:02 <== MAC
root@br14p08:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 16:59:c0:50:0a:02
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::1459:
inet6 addr: 2002:903:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:375794 errors:0 dropped:1 overruns:0 frame:0
TX packets:9646 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46210638 (46.2 MB) TX bytes:787820 (787.8 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@br14p08:~# cat /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 9.3.21.12
netmask 255.255.254.0
gateway 9.3.20.1
dns-nameservers 9.3.1.200
dns-search aus.stglabs.ibm.com isst.aus.
After adding a four port Ethernet adapter at runtime:
=======
Before Reboot:
===========
root@br14p08:~# lspci
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
root@br14p08:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 16:59:c0:50:0a:02
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::1459:
inet6 addr: 2002:903:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:637083 errors:0 dropped:3 overruns:0 frame:0
TX packets:10943 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:63241734 (63.2 MB) TX bytes:977826 (977.8 KB)
eth3 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth4 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a2
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth5 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a3
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
rename6 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
After reboot:
=========
root@br14p08:~# lspci
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
01:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
root@br14p08:~# lsslot
# Slot Description Linux Name Device(s)
U9119.MHE.
U9119.MHE.
U9119.MHE.
root@br14p08:~#
root@br14p08:~# ifconfig
eth0 Link encap:Ethernet HWaddr 40:f2:e9:5a:33:a0
inet addr:9.3.21.12 Bcast:9.3.21.255 Mask:255.255.254.0
inet6 addr: fe80::42f2:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:242 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:15656 (15.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:13584 (13.5 KB) TX bytes:13584 (13.5 KB)
root@br14p08:~# ethtool -P eth0 <= Eth0 has changed to new adapter
Permanent address: 40:f2:e9:5a:33:a0
As you can see, port for eth0 has now changed, but the IP address stayed with the port name eth0, whih causes the LPAR to loose it's network. That is the issue we need to address with this bug.
tags: | added: architecture-ppc64 bugnameltc-122308 severity-high targetmilestone-inin--- |
affects: | ubuntu → udev (Ubuntu) |
tags: |
added: architecture-ppc64le targetmilestone-inin1504 removed: architecture-ppc64 targetmilestone-inin--- |
Changed in udev (Ubuntu): | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
description: | updated |
affects: | udev (Ubuntu Vivid) → systemd (Ubuntu Vivid) |
summary: |
- Adding "Austin" adapter to Ubuntu partition take over system network - interface + [udev] Adding "Austin" adapter to Ubuntu partition take over system + network interface |
tags: |
added: verification-done removed: verification-needed |
tags: |
added: severity-critical removed: severity-high |
Changed in systemd (Ubuntu Wily): | |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
Changed in systemd (Ubuntu Trusty): | |
status: | New → In Progress |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
tags: |
added: verification-done removed: verification-needed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1437375/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]