Debian Bug report logs -
#412348
vlan interfaces get renamed by udev
Reported by: Christian Hammers <ch@debian.org>
Date: Sun, 25 Feb 2007 15:39:02 UTC
Severity: important
Done: md@Linux.IT (Marco d'Itri)
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Ard van Breemen <ard@kwaak.net>:
Bug#412348; Package vlan.
(full text, mbox, link).
Acknowledgement sent to Christian Hammers <ch@debian.org>:
New Bug report received and forwarded. Copy sent to Ard van Breemen <ard@kwaak.net>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: vlan
Version: 1.9-2
Severity: normal
Hi
I can't tell if this bug should be filed against udev, ifupdown or vlan
but currently I'm unable to use VLAN interfaces in
/etc/network/interfaces as described in the docs:
iface eth0 inet static
netmask 255.255.255.0
network 192.168.42.0
gateway 192.168.42.1
address 192.168.42.109
broadcast 192.168.42.255
iface eth0.101 inet static
address 10.0.0.129
netmask 255.255.255.224
Always end up with my normal eth0 and then this:
# ifup eth0.101
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 101 to IF -:eth0:-
SIOCSIFADDR: No such device
eth0.101: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0.101: ERROR while getting interface flags: No such device
Failed to bring up eth0.101.
# ip link
...
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:11:2f:d6:28:55 brd ff:ff:ff:ff:ff:ff
9: eth0.101_rename@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:11:2f:d6:28:55 brd ff:ff:ff:ff:ff:ff
Apparently udev, probably due to the infamous
/etc/udev/rules.d/z25persistent-net renames the interface and thus
ifupdown can no longer find it.
bye,
-chrisitan-
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-xen-amd64
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15) (ignored: LC_ALL set to de_DE@euro)
Versions of packages vlan depends on:
ii iproute 20061002-4 Professional tools to control the
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
vlan recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Ard van Breemen <ard@kwaak.net>:
Bug#412348; Package vlan.
(full text, mbox, link).
Acknowledgement sent to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to Ard van Breemen <ard@kwaak.net>.
(full text, mbox, link).
Message #10 received at 412348@bugs.debian.org (full text, mbox, reply):
reassign 412348 udev
severity 412348 important
stop
Hi,
On Sun, Feb 25, 2007, Christian Hammers wrote:
> Apparently udev, probably due to the infamous
> /etc/udev/rules.d/z25persistent-net renames the interface and thus
> ifupdown can no longer find it.
My understanding is that the persistent net rules are about getting a
fixed name for interfaces when the module loading or detection order
might result in misnamed interfaces. I've seen this part of udev
causing trouble in other cases where multiple interfaces avec the same
MAC (e.g. madwifi's ath0 / wlan0), and I think this is another case of
this. However, VLAN interfaces names are controlled by /proc
parameters, and hence probably don't need this help from udev.
Hence, I'm reassigning to udev; @Marco: do you confirm this looks like
an udev bug and it should not attempt to rename VLAN interfaces? Or
perhaps it tries to rename them to the wrong name and could rename them
properly?
(You're welcome to reassign it back to vlan if you think it can
implement a better fix.)
I expect this to break vlan support during upgrades after the first
reboot, so this bug might be serious, but since it's the first one and
I don't completely understand how udev is supposed to handle this, I'm
leaving this at severity "important".
Bye,
--
Loïc Minier <lool@dooz.org>
Bug reassigned from package `vlan' to `udev'.
Request was from Loïc Minier <lool@dooz.org>
to control@bugs.debian.org.
(full text, mbox, link).
Severity set to `important' from `normal'
Request was from Loïc Minier <lool@dooz.org>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#412348; Package udev.
(full text, mbox, link).
Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>.
(full text, mbox, link).
Message #19 received at 412348@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Feb 26, Loïc Minier <lool@dooz.org> wrote:
> Hence, I'm reassigning to udev; @Marco: do you confirm this looks like
> an udev bug and it should not attempt to rename VLAN interfaces? Or
Please show the complete /etc/udev/rules.d/z25_persistent-net.rules
and the output of udevinfo -a -p /sys/class/net/eth0.101 .
The DRIVERS=="?*" statement in the rules file is supposed to prevent
renaming the vlan subinterfaces and indeed it used to do so when I first
added it.
> perhaps it tries to rename them to the wrong name and could rename them
> properly?
The _rename thing happens when udev tries to change the name of an
interface to one which is already in use. It can be argued that it
should change back the name instead of keeping the temporary one, but I
do not have the time to change this right now (does anybody want to
help?).
--
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#412348; Package udev.
(full text, mbox, link).
Acknowledgement sent to Christian Hammers <ch@debian.org>:
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>.
(full text, mbox, link).
Message #24 received at 412348@bugs.debian.org (full text, mbox, reply):
Hello
On 2007-02-26 Marco d'Itri wrote:
> On Feb 26, Loïc Minier <lool@dooz.org> wrote:
>
> > Hence, I'm reassigning to udev; @Marco: do you confirm this looks like
> > an udev bug and it should not attempt to rename VLAN interfaces? Or
> Please show the complete /etc/udev/rules.d/z25_persistent-net.rules
> and the output of udevinfo -a -p /sys/class/net/eth0.101 .
It's below.
> The DRIVERS=="?*" statement in the rules file is supposed to prevent
> renaming the vlan subinterfaces and indeed it used to do so when I first
> added it.
Here the normal eth0 rule seems to match as the VLAN interface indeed has the
same MAC as eth0.
bye,
-christian-
# grep -v ^# /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
netmask 255.255.255.0
network 192.168.42.0
gateway 192.168.42.1
address 192.168.42.109
broadcast 192.168.42.255
iface eth0.42 inet static
netmask 255.255.255.0
network 10.0.0.0
address 10.0.0.109
broadcast 10.0.0.255
# cat /etc/udev/rules.d/z25_persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_aliases
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line
# and always set the INTERFACE_OLD.
# PCI device 11ab:4320 (skge)
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:11:2f:d6:28:55", NAME="eth0", ENV{INTERFACE_OLD}="$kernel"
# UNKNOWN ieee1394 device (/class/net/eth1)
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:02:3c:00:31:04:1c:a2", NAME="eth1", ENV{INTERFACE_OLD}="$kernel"
# Firewire device 00e0180000a86b8d (ohci1394)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:e0:18:00:00:a8:6b:8d", NAME="eth1"
# ifup eth0.42
WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS??
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 42 to IF -:eth0:-
SIOCSIFADDR: No such device
eth0.42: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0.42: ERROR while getting interface flags: No such device
eth0.42: ERROR while getting interface flags: No such device
Failed to bring up eth0.42.
udevinfo -a -p /sys/class/net/eth0
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/class/net/eth0':
KERNEL=="eth0"
SUBSYSTEM=="net"
DRIVER==""
ATTR{weight}=="64"
ATTR{tx_queue_len}=="1000"
ATTR{flags}=="0x1003"
ATTR{mtu}=="1500"
ATTR{operstate}=="up"
ATTR{dormant}=="0"
ATTR{carrier}=="1"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{address}=="00:11:2f:d6:28:55"
ATTR{link_mode}=="0"
ATTR{type}=="1"
ATTR{features}=="0x1023"
ATTR{ifindex}=="2"
ATTR{iflink}=="2"
ATTR{addr_len}=="6"
looking at parent device '/devices/pci0000:00/0000:00:0a.0':
KERNELS=="0000:00:0a.0"
SUBSYSTEMS=="pci"
DRIVERS=="skge"
ATTRS{broken_parity_status}=="0"
ATTRS{enable}=="1"
ATTRS{modalias}=="pci:v000011ABd00004320sv00001043sd0000811Abc02sc00i00"
ATTRS{local_cpus}=="ffffffff"
ATTRS{irq}=="17"
ATTRS{class}=="0x020000"
ATTRS{subsystem_device}=="0x811a"
ATTRS{subsystem_vendor}=="0x1043"
ATTRS{device}=="0x4320"
ATTRS{vendor}=="0x11ab"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
# ip link
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:11:2f:d6:28:55 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ieee1394 00:02:3c:00:31:04:1c:a2 brd ff:ff:ff:ff:ff:ff:ff:ff
4: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
5: eth0.42_rename@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:11:2f:d6:28:55 brd ff:ff:ff:ff:ff:ff
# udevinfo -a -p /sys/class/net/eth0.42_rename
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/class/net/eth0.42_rename':
KERNEL=="eth0.42_rename"
SUBSYSTEM=="net"
DRIVER==""
ATTR{weight}=="0"
ATTR{tx_queue_len}=="0"
ATTR{flags}=="0x1002"
ATTR{mtu}=="1500"
ATTR{operstate}=="down"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{address}=="00:11:2f:d6:28:55"
ATTR{link_mode}=="0"
ATTR{type}=="1"
ATTR{features}=="0x0"
ATTR{ifindex}=="5"
ATTR{iflink}=="2"
ATTR{addr_len}=="6"
Reply sent to md@Linux.IT (Marco d'Itri):
You have taken responsibility.
(full text, mbox, link).
Notification sent to Christian Hammers <ch@debian.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #29 received at 412348-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
I left #397328 around to document this.
--
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 18 Jun 2007 06:32:18 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 7 00:28:11 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.