[Bug 1017166] Re: Unplugged or deactivated ethernet interfaces may not be handled properly

Clint Byrum clint at fewbar.com
Thu Jun 28 22:08:10 UTC 2012


Excerpts from Stéphane Graber's message of 2012-06-28 20:49:20 UTC:
> I vaguely remember discussing that on IRC already, but there it's again
> anyway ;)
> 
> I don't agree that we should start dhclient in the background on failure
> to get an IP, that sounds wrong and will prevent any of the ifupdown
> scripts from running properly, not to mention confuse ifupdown regarding
> the state of the interface.
> 
> What I did fix last cycle with a change to isc-dhcp is the case where
> you boot with a working dhcp config and then your dhcp server dies for a
> few days. In the past, dhclient would exit and you'd never get an IP
> again, now that's fixed and dhclient will never exit once it
> successfully gets a first lease.
> 
> In your weird setup, I see two obvious options:
>  - Go with static addressing
>  - Go with a manual interface entry calling "dhclient $INTERFACE" as post-up
> 
> I'm going to mark it as won't fix based on that, if you don't agree,
> feel free to revert or poke me on IRC :)

While we may have fixed other bugs by not running if-up.d scripts
improperly, this does not address the regression introduced. Users could
be sure that if they plugged in an unplugged interface marked as dhcp, it
would acquire an address and bring up the interface (at least partially,
without the if-up.d scripts running.

I'm suggesting that dhclient needs some kind of "callback" for when it
acquires an address, and that should kick off the rest of the if-up.d
process.

Its not easy to fix, but that doesn't mean we shouldn't at least entertain
the idea of making it work.

If we decide to let the regression stand, perhaps we should document
that change? How do we do that in releases past? Can we add it to
oneiric/precise release notes?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1017166

Title:
  Unplugged or deactivated ethernet interfaces may not be handled
  properly

Status in “ifupdown” package in Ubuntu:
  Won't Fix

Bug description:
  If i have a server which has a management-only interface which is
  usually down, in versions of Ubuntu before 11.10, I could configure
  that ethernet interface in /etc/network/interfaces, and dhclient would
  try forever to get an address.

  I believe this is a regression that was introduced in the fix for bug
  #838968 , where the '-1' parameter was introduced to dhclient3's
  invocation in ifupdown.

  While I do think we should report errors, we should also retry this
  *forever* since it may be the only way a system can be reached *to see
  that error*.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1017166/+subscriptions




More information about the foundations-bugs mailing list