After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709247 - NM conflicts with "script" option of dhclient configuration
NM conflicts with "script" option of dhclient configuration
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-10-02 08:50 UTC by Michal Maruška
Modified: 2014-02-05 11:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michal Maruška 2013-10-02 08:50:25 UTC
dhclient.conf(5)  documents "script" option.

NM invokes dhclient with  -sf option, providing its helper tool to be invoked.

Apparently  dhclient can use only one of those two, so, if an unaware user enables the "script" option ... to run dhclient-script(8) and promised hooks, suddenly the NM handled connection(s) are lost after a while.
Comment 1 Michal Maruška 2013-10-02 09:07:54 UTC
I use 0.9.4.0-0ubuntu4.3
Comment 2 Pavel Simerda 2013-10-02 09:20:05 UTC
Ah, just found the fix in git master:

commit 97990135f150237eb7d529894fb0149d9faa5f0f
Author: Dan Williams <dcbw@redhat.com>
Date:   Wed Feb 27 14:49:25 2013 +0100

    dhcp: ensure any dhclient script from dhclient.conf is ignored
    
    The config file can specify a dhclient script, which gets used instead
    of what NM passes on the command-line.  Make sure that script gets
    ignored in the final dhclient config, because the script NM passes
    is the script that needs to be used to pass data back to NM.  People
    may have old dhclient.conf files lying around that get picked up and
    we don't want any script specified there to interfere.

But it didn't get to any 0.9.8 update. Adding Dan Williams to Cc to decide about inclusion in the stable branch.
Comment 3 Pavel Simerda 2014-02-04 22:22:13 UTC
Fixed in master and no more information.
Comment 5 Pavel Simerda 2014-02-05 11:22:37 UTC
(In reply to comment #4)
> cherry-picked the mentioned commit 97990135f150237eb7d529894fb0149d9faa5f0f to
> stable branch nm-9.8.0.
> 
> http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b34c397a4fd712fa440c791155ccadbca5d28962

Thanks, Thomas.