Bug 513146

Summary: ifup fails to start dhcpcd when broadcast response requested
Product: [openSUSE] openSUSE 11.0 Reporter: Jiri Bohac <jbohac>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: ke, mt, pmladek, varkoly
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jiri Bohac 2009-06-15 11:54:27 UTC
There is a checkbox in Yast -> network devices -> network settings -> global options -> dhcp client options -> request broadcast response.

If this checkbox is checked, it puts DHCLIENT_ADDITIONAL_OPTIONS = "-B" into /etc/sysconfig/network/dhcp

This setting:
- breaks DHCP in openSUSE 11.0, because -B is passed to dhclient, which silently fails because it does not recognize this option

- as far as I can tell, it has no effect in 11.1 and further, bacause /sbin/ifup-dhcp does not use the DHCLIENT_ADDITIONAL_OPTIONS variable any more

I think the first (openSUSE 11.0) problem should probably be fixed in sysconfig, because even if yast stops setting the variable, it may be present from upgrades.

I think the option should also be removed from YaST, because it has no effect.
Comment 1 Marcus Meissner 2009-06-25 17:34:10 UTC
marius first, ,mzugec as yast2-network later
Comment 2 Marius Tomaschewski 2009-06-25 18:46:23 UTC
"[...]
# Most of these options are used only by dhcpcd, not by the ISC dhclient (which 
# uses a config file).
[...]"

... even the variable name has a DHCLIENT prefix that sounds like ISC dhclient.

This type of conflicts were the reason to remove the variable on 11.1.
Comment 3 Marius Tomaschewski 2009-06-25 19:06:56 UTC
(In reply to comment #0)
> There is a checkbox in Yast -> network devices -> network settings -> global
> options -> dhcp client options -> request broadcast response.
> 
> If this checkbox is checked, it puts DHCLIENT_ADDITIONAL_OPTIONS = "-B" into
> /etc/sysconfig/network/dhcp
> 
> This setting:
> - breaks DHCP in openSUSE 11.0, because -B is passed to dhclient, which
> silently fails because it does not recognize this option

No, it doesn't. At least on 11.0 the variable is not used for dhclient.

But I know what happens here again. The variable is passed to the new
version of the dhcpcd, that does not understand it any more.

There is a hook in the dhcpcd spec file that removes the unknown options
(-B, -S, -z \d+, -w \d+) when the new dhcpcd version gets installed.

But when it is added again by yast2, it does not work...

=> Michal, can you remove/disable the check box in yast2?
Comment 4 Michal Zugec 2009-06-26 11:35:02 UTC
fixed in factory (yast2-network-2.18.37)
Comment 5 Karl Eichwalder 2009-08-12 08:43:58 UTC
While updating the docs I found that the feature is still mentioned in the help text (at least, on my Factory installation from last week).
Comment 7 Michal Zugec 2009-08-17 12:44:03 UTC
Ok, text removed in subversion (Factory)