Comment 120 for bug 432205

Revision history for this message
kapetr (kapetr) wrote :

Hello, after last upgrade from

http://ppa.launchpad.net/network-manager/trunk/ubuntu/

NM-gnome version: 08.-0ubuntu3~nmt2~karmic
NM version: 08.-0ubuntu4~nmt4~karmic

there is a problem with dhclient:

-----------------------------------------------------------------------

Feb 27 14:04:38 zly-hugo NetworkManager: Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 27 14:04:39 zly-hugo NetworkManager: <info> dhclient started with pid 1075
Feb 27 14:04:39 zly-hugo NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) scheduled...
Feb 27 14:04:39 zly-hugo NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Feb 27 14:04:39 zly-hugo NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) started...
Feb 27 14:04:39 zly-hugo NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) complete.
Feb 27 14:04:39 zly-hugo dhclient: Internet Systems Consortium DHCP Client V3.1.2
Feb 27 14:04:39 zly-hugo dhclient: Copyright 2004-2008 Internet Systems Consortium.
Feb 27 14:04:39 zly-hugo dhclient: All rights reserved.
Feb 27 14:04:39 zly-hugo dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Feb 27 14:04:39 zly-hugo dhclient: Usage: dhclient [-1dqrx] [-nw] [-p <port>] [-s server]
Feb 27 14:04:39 zly-hugo dhclient: [-cf config-file] [-lf lease-file][-pf pid-file] [-e VAR=val]
Feb 27 14:04:39 zly-hugo dhclient: [-sf script-file] [interface]
Feb 27 14:04:40 zly-hugo gdm-binary[764]: WARNING: Unable to find users: no seat-id found
Feb 27 14:04:42 zly-hugo kernel: [ 20.841883] __ratelimit: 12 callbacks suppressed
---------------------------------------------------------------------------------------------

I have wrapped the /sbin/dhclient to see, how is it called.

The problem is with "-4" parameter, which dhclient3 in Ubuntu 9.10 don't know.

So i wrote this workaround:
---------------------------------- /sbin/dhclient
#!/bin/bash

logger "xxxxx $0 $*"
logger "Odstranuji neznamy parametr \"-4\""

PARM=$(echo $*|sed "s/-4//")
exec /sbin/dhclient3 $PARM
---------------------------------

Now it works again:

--------------------------------------------------------------
Feb 28 07:54:53 zly-hugo NetworkManager: Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 28 07:54:53 zly-hugo NetworkManager: <info> dhclient started with pid 3289
Feb 28 07:54:53 zly-hugo NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) scheduled...
Feb 28 07:54:53 zly-hugo NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Feb 28 07:54:53 zly-hugo NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) started...
Feb 28 07:54:53 zly-hugo NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) complete.
Feb 28 07:54:53 zly-hugo logger: xxxxx /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/dhclient-eth0.pid -lf /var/lib/dhcp3/dhclient-91b2f2c4-3bde-47af-b78f-0c2766cfcebd-eth0.lease -cf /var/run/nm-dhclient-eth0.conf eth0
Feb 28 07:54:53 zly-hugo logger: Odstranuji neznamy parametr "-4"
Feb 28 07:54:53 zly-hugo dhclient: Internet Systems Consortium DHCP Client V3.1.2
Feb 28 07:54:53 zly-hugo dhclient: Copyright 2004-2008 Internet Systems Consortium.
Feb 28 07:54:53 zly-hugo dhclient: All rights reserved.
Feb 28 07:54:53 zly-hugo dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Feb 28 07:54:53 zly-hugo dhclient:
Feb 28 07:54:53 zly-hugo dhclient: Listening on LPF/eth0/00:0e:2e:b9:95:94
Feb 28 07:54:53 zly-hugo dhclient: Sending on LPF/eth0/00:0e:2e:b9:95:94
Feb 28 07:54:53 zly-hugo dhclient: Sending on Socket/fallback
Feb 28 07:54:53 zly-hugo dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Feb 28 07:54:53 zly-hugo dhclient: DHCPOFFER of 10.6.6.7 from 10.6.6.138
Feb 28 07:54:53 zly-hugo dhclient: DHCPREQUEST of 10.6.6.7 on eth0 to 255.255.255.255 port 67
Feb 28 07:54:53 zly-hugo NetworkManager: DHCPv4: device eth0 state changed nbi -> preinit
Feb 28 07:54:53 zly-hugo dhclient: DHCPACK of 10.6.6.7 from 10.6.6.138
Feb 28 07:54:53 zly-hugo dhclient: bound to 10.6.6.7 -- renewal in 119762 seconds.
-------------------------------

--kapetr