I suspected the problem was in libnm-glib/nm-
device.c::nm_device_update_description() where it walks up the udev
chain trying to find the vendor and device ID.
The devices are:
$ lspci -nn | grep Ethernet
02:00.0 Ethernet controller [0200]: Intel Corporation 82573L Gigabit Ethernet
Controller [8086:109a]
0a:08.0 Ethernet controller [0200]: Intel Corporation PRO/100 VE Network
Connection [8086:1092] (rev 02)
I then investigated the udev database and discovered that it appears to
be incorrect:
ls -al /dev/.udev/db/net*
-rw-r--r-- 1 root root 155 2010-04-02 02:53 /dev/.udev/db/net:eth0
-rw-r--r-- 1 root root 173 2010-04-02 02:53 /dev/.udev/db/net:wlan0
cat /dev/.udev/db/net:eth0
E:ID_VENDOR_FROM_DATABASE=Intel Corporation
E:ID_MODEL_FROM_DATABASE=PRO/100 VE Network Connection
E:ID_BUS=pci
E:ID_VENDOR_ID=0x8086
E:ID_MODEL_ID=0x1092
There is no entry for eth1, and the entry for eth0 is the "Pro/100 VE"
as reported by nmapplet.
Looking at the udev log I see the interface renaming operations:
KERNEL[1270173183.421930] add
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1 (net)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1
SUBSYSTEM=net
INTERFACE=eth1
IFINDEX=3
SEQNUM=1396
KERNEL[1270173183.427303] add
/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth0 (net)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth0
SUBSYSTEM=net
INTERFACE=eth0
IFINDEX=2
SEQNUM=1481
Notice at this point eth1 is 02:00.0 (82573L Gigabit) and eth1 is
0a:08.0 ( PRO/100 VE).
KERNEL[1270173184.114691] move
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1_rename (net)
UDEV_LOG=3
ACTION=move
DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1_rename
SUBSYSTEM=net
DEVPATH_OLD=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1
INTERFACE=eth1_rename
IFINDEX=3
SEQNUM=1745
KERNEL[1270173185.187057] move
/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth1 (net)
UDEV_LOG=3
ACTION=move
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth1
SUBSYSTEM=net
DEVPATH_OLD=/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth0
INTERFACE=eth1
IFINDEX=2
SEQNUM=1769
At this point the Pro/100 VE is eth1 and the 82573L Gigabit is
eth1_rename.
UDEV [1270173185.187821] add
/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth1 (net)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth1
SUBSYSTEM=net
INTERFACE=eth1
IFINDEX=2
SEQNUM=1481
ID_VENDOR_FROM_DATABASE=Intel Corporation
ID_MODEL_FROM_DATABASE=PRO/100 VE Network Connection
ID_BUS=pci
ID_VENDOR_ID=0x8086
ID_MODEL_ID=0x1092
INTERFACE_OLD=eth0
UDEV [1270173185.188128] move
/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth1 (net)
UDEV_LOG=3
ACTION=move
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth1
SUBSYSTEM=net
DEVPATH_OLD=/devices/pci0000:00/0000:00:1e.0/0000:0a:08.0/net/eth0
INTERFACE=eth1
IFINDEX=2
SEQNUM=1769
KERNEL[1270173185.217005] move
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0 (net)
UDEV_LOG=3
ACTION=move
DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0
SUBSYSTEM=net
DEVPATH_OLD=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1_rename
INTERFACE=eth0
IFINDEX=3
SEQNUM=1770
Now the 82573L Gigabit is eth0.
UDEV [1270173185.217909] add
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0 (net)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0
SUBSYSTEM=net
INTERFACE=eth0
IFINDEX=3
SEQNUM=1396
ID_VENDOR_FROM_DATABASE=Intel Corporation
ID_MODEL_FROM_DATABASE=82573L Gigabit Ethernet Controller
ID_BUS=pci
ID_VENDOR_ID=0x8086
ID_MODEL_ID=0x109a
INTERFACE_OLD=eth1
UDEV [1270173185.218977] move
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1_rename (net)
UDEV_LOG=3
ACTION=move
DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1_rename
SUBSYSTEM=net
DEVPATH_OLD=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1
INTERFACE=eth1_rename
IFINDEX=3
SEQNUM=1745
UDEV [1270173185.219002] move
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0 (net)
UDEV_LOG=3
ACTION=move
DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0
SUBSYSTEM=net
DEVPATH_OLD=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth1_rename
INTERFACE=eth0
IFINDEX=3
SEQNUM=1770
Not too sure what those too events were up to.
After the shuffling it looks like udev got itself confused; certainly
the udev database doesn't reflect the state of the system. I'm assuming
it should but I think we need additional input on this from Scott.
** Also affects: udev (Ubuntu)
Importance: Undecided
Status: New
--
Network Manager applet shows wrong wired interface name
https://bugs.launchpad.net/bugs/536826
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs