Enrico Zini enrico-at-enricozini.org |bugs-debian| wrote:
> The role of guessnet is to help ifup to understand which among various
> available configurations should be used for an interface, not to bring
> up the interface.  The job of bringing up the interface belongs to
> ifupdown.

That was clear to me. In this light let me stress that my configuration
resembles the one in the manpage, so nothing fancy.

>  # ifup eth0
>  ifupdown asks guessnet: "which profile should I use for eth0?"
>  ...guessnet scans...
>  guessnet replies ifupdown: "use profile Foobar"
>  ifupdown brings eth0 up using profile Foobar

That is what I expect, and this is how it works when calling ifup
directly. However when using in combination with hotplug and/or ifplugd
the following happens:

ifplugd(eth0)[3698]: Link beat detected.
ifplugd(eth0)[3698]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
ifplugd(eth0)[3698]: client: guessnet: 4 candidate profiles
ifplugd(eth0)[3698]: client: guessnet: Starting peer test subsystem
ifplugd(eth0)[3698]: client: guessnet: Sending 10 ARP probes, 1 every
second...
ifplugd(eth0)[3698]: client: guessnet: Sending 10 ARP probes, 1 every
second...
ifplugd(eth0)[3698]: client: guessnet: Sending 10 ARP probes, 1 every
second...
ifplugd(eth0)[3698]: client: guessnet: Starting dhcp test subsystem
ifplugd(eth0)[3698]: client: guessnet: Sending 5 DHCP probes, 1 every 2
seconds...
ifplugd(eth0)[3698]: client: Ignoring unknown interface eth0=unknown.
ifplugd(eth0)[3698]: Program executed successfully.


The problem is that guessnet selects this time the unknown interface
(think: none), with direct invocation of ifup the correct interface (as
shown in the previous mail). It should be the same both times.

So my error is similar to the original poster's one, except that
guessnet seems to make a difference whether the ifup command was issued
from the command line or the /etc/ifplugd/action.d/ifupdown script.

I am not sure that this bug has something to do with the parser, it
seems like a race condition to me.

Bye,
Thomas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to