Your message dated Fri, 05 May 2006 10:17:10 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#365248: fixed in udev 0.091-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: udev
Version: 0.091-1
Severity: important


Hi,

on one of my boxes, I use bridge-utils and (previously) nameif to enslave an 
ethernet device named "lan" (and some tap devices named "vpn") to a bridge 
interface "br0". There's also a not-enslaved ethernet device named "modem"


The rules that were initially generated in z25_persistent-net.rules were:

ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:11:22:33:44:55", 
NAME="eth0"
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="ff:11:22:33:44:55", 
NAME="eth1"


(it would've been nice to know, that the naming functionality would conflict 
with nameif before I rebooted this headless box; Me using nameif gave me a false
sense of security)

I quickly changed eth0 and eth1 to "lan" and "modem" resp. - no problem there.

However, the problem is that the bridge "br0" has the same MAC address as "lan",
so the first persistent rule matched "br0" too. It tried to rename "br0" to 
"lan" too, but as the name "lan" was already taken, it left it at "br0_temp".


udevinfo -a -p /sys/class/net/br0 gives me:

  looking at device '/class/net/br0':
    KERNEL=="br0"
    SUBSYSTEM=="net"
    SYSFS{weight}=="0"
    SYSFS{tx_queue_len}=="0"
    SYSFS{flags}=="0x1003"
    SYSFS{mtu}=="1500"
    SYSFS{carrier}=="1"
    SYSFS{broadcast}=="ff:ff:ff:ff:ff:ff"
    SYSFS{address}=="00:11:22:33:44:55"
    SYSFS{type}=="1"
    SYSFS{features}=="0x1000"
    SYSFS{ifindex}=="6"
    SYSFS{iflink}=="6"
    SYSFS{addr_len}=="6"


Not exactly a lot to work with...

udevinfo -a -p /sys/class/net/lan gives me:

  looking at device '/class/net/lan':
    KERNEL=="lan"
    SUBSYSTEM=="net"
    SYSFS{weight}=="64"
    SYSFS{tx_queue_len}=="1000"
    SYSFS{flags}=="0x1103"
    SYSFS{mtu}=="1500"
    SYSFS{carrier}=="1"
    SYSFS{broadcast}=="ff:ff:ff:ff:ff:ff"
    SYSFS{address}=="00:11:22:33:44:55"
    SYSFS{type}=="1"
    SYSFS{features}=="0x1003"
    SYSFS{ifindex}=="2"
    SYSFS{iflink}=="2"
    SYSFS{addr_len}=="6"

  looking at device '/devices/pci0000:00/0000:00:09.0':
    ID=="0000:00:09.0"
    BUS=="pci"
    DRIVER=="skge"
    SYSFS{modalias}=="pci:v000011ABd00004320sv000010B8sd0000B452bc02sc00i00"
    SYSFS{local_cpus}=="1"
    SYSFS{irq}=="177"
    SYSFS{class}=="0x020000"
    SYSFS{subsystem_device}=="0xb452"
    SYSFS{subsystem_vendor}=="0x10b8"
    SYSFS{device}=="0x4320"
    SYSFS{vendor}=="0x11ab"

  looking at device '/devices/pci0000:00':
    ID=="pci0000:00"
    BUS==""
    DRIVER==""



I ended up changing the generated rules into the following:

ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:11:22:33:44:55", 
DRIVER=="skge", NAME="lan"
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="ff:11:22:33:44:55", 
DRIVER=="via-rhine", NAME="modem"

This isn't ideal because the driver may change names with successive kernel 
upgrades ("sk98lin" -> "skge") but it works for now. It would be nice if the 
rules were specific enough to avoid this conflict with bridges.

btw: I marked this as important, because it locked me out of my (remote, 
headless) box, twice ;-).


In any case, thanks,

-- Mourad


-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 4
lrwxrwxrwx 1 root root  20 Apr 13  2005 020_permissions.rules -> 
../permissions.rules
lrwxrwxrwx 1 root root  19 Dec  5  2004 cd-aliases.rules -> ../cd-aliases.rules
lrwxrwxrwx 1 root root  13 Apr  1  2004 udev.rules -> ../udev.rules
lrwxrwxrwx 1 root root  25 Mar 31 17:49 z20_persistent-input.rules -> 
../persistent-input.rules
lrwxrwxrwx 1 root root  19 Aug 19  2005 z20_persistent.rules -> 
../persistent.rules
-rw-r--r-- 1 root root 486 Apr 28 19:45 z25_persistent-net.rules
lrwxrwxrwx 1 root root  33 Apr 21 22:32 z45_persistent-net-generator.rules -> 
../persistent-net-generator.rules
lrwxrwxrwx 1 root root  12 Jul 29  2005 z50_run.rules -> ../run.rules
lrwxrwxrwx 1 root root  16 Oct 18  2005 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx 1 root root  19 Nov 26 19:52 z60_alsa-utils.rules -> 
../alsa-utils.rules
lrwxrwxrwx 1 root root  15 Sep 26  2005 z60_hdparm.rules -> ../hdparm.rules
lrwxrwxrwx 1 root root  17 Jul 29  2005 z70_hotplugd.rules -> ../hotplugd.rules

-- /sys/:
/sys/block/md0/dev
/sys/block/ram0/dev
/sys/block/ram1/dev
/sys/block/ram10/dev
/sys/block/ram11/dev
/sys/block/ram12/dev
/sys/block/ram13/dev
/sys/block/ram14/dev
/sys/block/ram15/dev
/sys/block/ram2/dev
/sys/block/ram3/dev
/sys/block/ram4/dev
/sys/block/ram5/dev
/sys/block/ram6/dev
/sys/block/ram7/dev
/sys/block/ram8/dev
/sys/block/ram9/dev
/sys/block/sda/dev
/sys/block/sda/sda1/dev
/sys/block/sda/sda2/dev
/sys/block/sdb/dev
/sys/block/sdb/sdb1/dev
/sys/block/sdb/sdb2/dev
/sys/class/input/input0/event0/dev
/sys/class/input/mice/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/device-mapper/dev
/sys/class/misc/hpet/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/misc/tun/dev
/sys/class/ppp/ppp/dev
/sys/class/sound/adsp/dev
/sys/class/sound/audio/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/dsp/dev
/sys/class/sound/mixer/dev
/sys/class/sound/pcmC0D0c/dev
/sys/class/sound/pcmC0D0p/dev
/sys/class/sound/pcmC0D1c/dev
/sys/class/sound/pcmC0D1p/dev
/sys/class/sound/seq/dev
/sys/class/sound/sequencer/dev
/sys/class/sound/sequencer2/dev
/sys/class/sound/timer/dev
/sys/class/usb_device/usbdev1.1/dev
/sys/class/usb_device/usbdev2.1/dev
/sys/class/usb_device/usbdev3.1/dev
/sys/class/usb_device/usbdev4.1/dev

-- Kernel configuration:


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages udev depends on:
ii  initscripts                  2.86.ds1-14 Scripts for initializing and shutt
ii  libc6                        2.3.6-7     GNU C Library: Shared libraries
ii  libselinux1                  1.30-1      SELinux shared libraries
ii  libvolume-id0                0.091-1     libvolume_id shared library
ii  lsb-base                     3.1-4       Linux Standard Base 3.1 init scrip
ii  makedev                      2.3.1-81    creates device files in /dev
ii  sed                          4.1.4-7     The GNU sed stream editor

udev recommends no packages.

-- debconf information excluded


--- End Message ---
--- Begin Message ---
Source: udev
Source-Version: 0.091-2

We believe that the bug you reported is fixed in the latest version of
udev, which is due to be installed in the Debian FTP archive:

libvolume-id-dev_0.091-2_i386.deb
  to pool/main/u/udev/libvolume-id-dev_0.091-2_i386.deb
libvolume-id0_0.091-2_i386.deb
  to pool/main/u/udev/libvolume-id0_0.091-2_i386.deb
udev-udeb_0.091-2_i386.udeb
  to pool/main/u/udev/udev-udeb_0.091-2_i386.udeb
udev_0.091-2.diff.gz
  to pool/main/u/udev/udev_0.091-2.diff.gz
udev_0.091-2.dsc
  to pool/main/u/udev/udev_0.091-2.dsc
udev_0.091-2_i386.deb
  to pool/main/u/udev/udev_0.091-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco d'Itri <[EMAIL PROTECTED]> (supplier of updated udev package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu,  4 May 2006 01:43:58 +0200
Source: udev
Binary: libvolume-id-dev udev libvolume-id0 udev-udeb
Architecture: source i386
Version: 0.091-2
Distribution: unstable
Urgency: high
Maintainer: Marco d'Itri <[EMAIL PROTECTED]>
Changed-By: Marco d'Itri <[EMAIL PROTECTED]>
Description: 
 libvolume-id-dev - libvolume_id development headers
 libvolume-id0 - libvolume_id shared library
 udev       - /dev/ and hotplug management daemon
 udev-udeb  - /dev/ and hotplug management daemon (udeb)
Closes: 365224 365248 365444
Changes: 
 udev (0.091-2) unstable; urgency=high
 .
   * write_cd_rules: create dvdrw links for DVD-R drives too. (Closes: #365224)
   * write_net_rules: add DRIVER=="?*" to all rules in the hope that this
     will make them not match bridges and VLAN sub-interfaces without
     breaking any other interface. More information from the kernel and from
     kernel developers would be welcome. (Closes: #365248)
   * persistent-input.rules: fixed matching on the SYSFS keys. (Closes: #365444)
Files: 
 ff74cf4270e3cfda791c4a2712e0e298 623 admin optional udev_0.091-2.dsc
 9820cbd79897773ce1d2015728b05aec 54251 admin optional udev_0.091-2.diff.gz
 1143c6879a0f9ea3b3516bcc51b2a2c0 263660 admin optional udev_0.091-2_i386.deb
 1231b22a68875034030cd67de31eb869 54610 libs optional 
libvolume-id0_0.091-2_i386.deb
 acff9584d315d8de240b149d0b6acf0b 13896 libdevel optional 
libvolume-id-dev_0.091-2_i386.deb
 f6a06558d11306d91177287e4d369c57 79218 debian-installer optional 
udev-udeb_0.091-2_i386.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEW4HiFGfw2OHuP7ERAl34AJ0ZHH7nX2CuOT00AoHrCfUy7d4hbQCePCw7
0xx+CiKRlCdqnrhYxY2v+7k=
=8t5k
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to