Unplugged or deactivated ethernet interfaces may not be handled properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
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/
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*.
Related bugs:
* bug 838968: static-network-up event does not wait for interfaces to have an address
* bug 974284: invoking dhclient3 with -1 causes issue if no dhcp server available
tags: | added: regression-release |
Changed in ifupdown (Ubuntu): | |
importance: | Undecided → High |
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 :)