[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#294303: hotplug: Bad NET invocation: $INTERFACE is not set



On Thu, Feb 10, 2005 at 10:18:47AM +0900, Horms wrote:
> On Wed, Feb 09, 2005 at 02:22:26PM +0100, Artur R. Czechowski wrote:
> > On Wed, Feb 09, 2005 at 07:47:25PM +0900, Horms wrote:
> > > I did a bit of poking around, uncomented the DEBUG line (line 33) in
> > > /etc/hotplug.d/default/default.hotplug, monitored /var/log/messages,
> > > insmoded tun, and found that this bug does not manifest in 2.4.10-1-686
> > > , 2.4.8-2-686 or 2.4.27-2-686. More to the point, tun is a misc device
> > > in those kernels and net.agent is not executed.
> > [cut]
> > > In any case, Artur, what kernel are you running?
> > Custom 2.6.10 compiled from Debian kernel-source-2.6.10-4.
> Could you please try one of the kernel images on d.o and
> see if the problem persists.
kernel-image-2.6.10-1-686 2.6.10-4 gives the same result: 
Feb 10 23:49:46 blabluga net.agent[5662]: Bad NET invocation: $INTERFACE is not set

BTW, if you find it usefull, snippet of log with uncommented DEBUG in
/etc/hotplug.d/default/default.hotplug follows:

Feb 11 00:12:42 blabluga default.hotplug[6581]: arguments (module) env (SUBSYSTEM=module OLDPWD=/ DEVPATH=/module/tun/sections PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM=1044 _=/usr/bin/env)
Feb 11 00:12:42 blabluga default.hotplug[6581]: no runnable /etc/hotplug/module.agent is installed
Feb 11 00:12:42 blabluga kernel: Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Feb 11 00:12:42 blabluga default.hotplug[6591]: arguments (misc) env (SUBSYSTEM=misc OLDPWD=/ DEVPATH=/class/misc/tun PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM=1045 _=/usr/bin/env)
Feb 11 00:12:42 blabluga default.hotplug[6591]: no runnable /etc/hotplug/misc.agent is installed
Feb 11 00:12:42 blabluga default.hotplug[6575]: arguments (module) env (SUBSYSTEM=module OLDPWD=/ DEVPATH=/module/tun PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM=1043 _=/usr/bin/env)
Feb 11 00:12:42 blabluga default.hotplug[6575]: no runnable /etc/hotplug/module.agent is installed
Feb 11 00:12:42 blabluga udev[6599]: configured rule in '/etc/udev/rules.d/udev.rules[98]' applied, 'tun' becomes 'net/%k'
Feb 11 00:12:42 blabluga udev[6599]: creating device node '/dev/net/tun'
Feb 11 00:12:42 blabluga default.hotplug[6606]: arguments (net) env (SUBSYSTEM=misc OLDPWD=/ DEVPATH=/class/misc/tun PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug UDEV_LOG=1 UDEVD_EVENT=1 DEVNAME=/dev/net/tun SHLVL=2 HOME=/ DEBUG=yes SEQNUM=1045 _=/usr/bin/env)
Feb 11 00:12:42 blabluga default.hotplug[6606]: invoke /etc/hotplug/net.agent ()
Feb 11 00:12:42 blabluga net.agent[6606]: Bad NET invocation: $INTERFACE is not set

BTW, if I run an application using tun device (vtund in my case) I noticed
following information in the log:

Feb 11 00:16:04 blabluga default.hotplug[6713]: arguments (net) env (SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/tun0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 INTERFACE=tun0 DEBUG=yes SEQNUM=1046 _=/usr/bin/env)
Feb 11 00:16:04 blabluga default.hotplug[6713]: invoke /etc/hotplug/net.agent ()
Feb 11 00:16:04 blabluga net.agent[6713]: assuming tun0 is already up

Cheers
	Artur
-- 
Nie taki daemon straszny jak go killują
	/z pamiętnika administratora/



Reply to: