On Thu, Jan 17, 2013 at 9:17 PM, Andrew Shadura <bugzi...@tut.by> wrote:
> Hello,
>
> On Thu, 17 Jan 2013 19:18:55 +0200
> Lauri Tirkkonen <loth...@iki.fi> wrote:
>
>> ifupdown runs dhclient with the '-1' option, presumably to block
>> during startup scripts.
>
> Not exactly. It was done to make the ifup process more consistent: if
> we get an address, we're up, if we don't — we know something's wrong.

Okay, makes sense.

>
>> In the event that configuration is
>> successful, dhclient will daemonize and exit successfully, and
>> ifupdown marks the interface configured. However, dhclient will exit
>> if at any point in the future renewing the lease fails, and an
>> administrator will have to manually ifup the affected interface
>> (actually ifdown first, since ifupdown will still think the interface
>> is up). I believe this is a regression since squeeze, and it looks
>> like #694541 is caused by the same change.
>
> I believe this may be a bug in dhclient. At least -1 in my
> understanding was supposed to affect initial handshake only.

Not necessarily, I think -1 might be meant for scenarios where
something else is supposed to respawn dhclient if it stops. That's not
the case with ifupdown, though. Not sure about this.

>
> I'd recommend to use ifplugd together with ifupdown in such a setup,
> which ensures interfaces are re-configured properly when the link goes
> down and up.

That kind of works, but if the dhcp server is unreachable for some
other reason than the client link being down (eg. actually being down
:), it doesn't.

>
>> As noted in #694541, the change was apparently made to fix #420784,
>> but this is a rather nasty side effect.
>
> Yes, and I don't currently know how to fix this properly until some
> core parts of ifupdown are rewritten, which is not going to happen
> before the release.
>
> In the version which is soon to be uploaded if approved by the release
> team, I've added tryonce option to switch -1 off if needed.

Ok, I guess that's an acceptable workaround.

-- 
Lauri Tirkkonen | +358 50 5341376 | lotheac @ IRCnet


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to