Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387451 - net-misc/networkmanager-0.9.0 incorrect usage of dhclient
Summary: net-misc/networkmanager-0.9.0 incorrect usage of dhclient
Status: RESOLVED DUPLICATE of bug 335147
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 19:07 UTC by William L. Thomson Jr.
Modified: 2012-07-05 02:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info,4.54 KB, text/plain)
2011-10-18 21:29 UTC, William L. Thomson Jr.
Details
nm dhclient log output (nm_dhclient.log,4.47 KB, text/plain)
2011-10-18 21:30 UTC, William L. Thomson Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. 2011-10-17 19:07:16 UTC
When compiled with dhclient use flag, it seems nm is passing the wrong arguments to dhclient or something. Which results in dhclient spitting out usage/help in logs, and failing to obtain an IP. If you switch to dhcpcd it works as expected, no problems obtaining and IP. I did not get a chance to dig into the sources to see exactly where the problem lies.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 14:01:14 UTC
Please provide example output from logs and emerge --info..
Comment 2 William L. Thomson Jr. 2011-10-18 21:29:36 UTC
Created attachment 290203 [details]
emerge --info
Comment 3 William L. Thomson Jr. 2011-10-18 21:30:36 UTC
Created attachment 290205 [details]
nm dhclient log output
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-08 06:22:00 UTC
What version of net-misc/dhcp do you have installed?

For reference, networkmanager-0.9.x's interface to dhclient is in src/dhcp-manager/nm-dhcp-dhclient.c in the networkmanager source. It calls

dhclient -d [ -r ] [ -6 | -4 ] -sf $scriptpath -pf $pidpath -lf $leasepath -cf $confpath -e DBUS_SYSTEM_BUS_ADDRESS=blah

As far as I can tell, all of those arguments should be supported by dhcp-4.2.3_p1's dhclient.
Comment 5 William L. Thomson Jr. 2012-04-08 16:18:13 UTC
I tried using the latest in ~arch per the time of reporting this bug. I have since tried again and always run into the same issue. If you look at my attached log you can see that was with

Oct 18 17:25:11 wlt dhclient: Internet Systems Consortium DHCP Client 4.2.2 Gentoo-r2

It should be easy to replicate, emerge the latest nm and dhclient, using that use flag not the dhcpcd one. Then try to get an IP via dhcp and you should see similar output in your logs as were in my attached logs. I can try it again, but I bet I will run into the same problem, unless its been fixed.
Comment 6 Rick Harris 2012-05-15 21:54:36 UTC
This is a duplicate of bug 335147.

From your log..."Beginning DHCPv4 transaction"

Networkmanager passes the '-6' and '-4' parameters to dhclient, but for these parameters to be available to dhclient, net-misc/dhcp *must* be built with 'ipv6' enabled, and so it fails.

A patch for networkmanager is available on that bug.
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-05 02:35:16 UTC
(In reply to comment #6)
> This is a duplicate of bug 335147.

You are probably right. Should be fixed in networkmanager-0.9.4.0-r4

*** This bug has been marked as a duplicate of bug 335147 ***