Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504238 - >=net-misc/dhcpcd-6.3.0 fails to obtain a DHCP lease
Summary: >=net-misc/dhcpcd-6.3.0 fails to obtain a DHCP lease
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 18:22 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2014-03-23 16:53 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2014-03-11 18:22:18 UTC
When using net-misc/dhcpcd-{6.3.0,6.3.1,6.3.1-r1}, `/etc/init.d/net.wlp4s0 start` says that dhcpcd starts, but dhcpcd fails to establish network connection and after maybe a minute dhcpcd exits.
This problem does not occur with older versions of net-misc/dhcpcd (e.g. 6.2.*).
This problem was also observed on another computer with different hardware configuration.

Example output with net-misc/dhcpcd-6.2.1:
# dhcpcd wlp4s0
dhcpcd[21406]: version 6.2.1 starting
dhcpcd[21406]: DUID 00:01:00:01:19:42:73:40:00:1f:3c:ab:72:10
dhcpcd[21406]: wlp4s0: IAID 3c:ab:72:10
dhcpcd[21406]: wlp4s0: soliciting an IPv6 router
dhcpcd[21406]: wlp4s0: soliciting a DHCP lease
dhcpcd[21406]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[21406]: wlp4s0: leased 192.168.0.100 for infinity
dhcpcd[21406]: wlp4s0: adding route to 192.168.0.0/24
dhcpcd[21406]: wlp4s0: adding default route via 192.168.0.1
dhcpcd[21406]: forked to background, child pid 21449

Example output with net-misc/dhcpcd-6.3.1-r1:
# dhcpcd wlp4s0
dhcpcd[18098]: version 6.3.1 starting
dhcpcd[18098]: DUID 00:01:00:01:19:42:73:40:00:1f:3c:ab:72:10
dhcpcd[18098]: wlp4s0: IAID 3c:ab:72:10
dhcpcd[18098]: wlp4s0: soliciting an IPv6 router
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
<The same output repeated hundreds of times>
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: offered 192.168.0.100 from 192.168.0.1
dhcpcd[18098]: wlp4s0: NAK: from 192.168.0.1
dhcpcd[18098]: wlp4s0: soliciting a DHCP lease
dhcpcd[18098]: wlp4s0: carrier lost
dhcpcd[18098]: timed out
dhcpcd[18098]: allowing 8 seconds for IPv4LL timeout
dhcpcd[18098]: timed out
dhcpcd[18098]: exited
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-03-11 18:29:50 UTC
$ emerge -ptv dhcpcd netifrc openrc

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild     U  ] net-misc/dhcpcd-6.3.1-r1::gentoo [6.2.1::gentoo] USE="ipv6 udev" ELIBC="(glibc)" KERNEL="(linux)" 0 kB
[ebuild   R    ] net-misc/netifrc-0.2.2::gentoo  0 kB
[ebuild   R    ]  sys-apps/openrc-0.12.4::gentoo  USE="ncurses netifrc pam tools unicode -debug -newnet (-prefix) -selinux -static-libs" ELIBC="(glibc)" KERNEL="(linux) (-FreeBSD)" 0 kB

Total: 3 packages (1 upgrade, 2 reinstalls), Size of downloads: 0 kB
$ emerge --info
Portage 2.2.8_p62 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.18-r1, 3.13.6 x86_64)
=================================================================
System uname: Linux-3.13.6
ld GNU ld (Linux/GNU Binutils) 2.24.51.0.3.20140127
app-shells/bash:          4.3-r1
dev-java/java-config:     2.2.0-r1000::progress
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.9-r1000::progress, 2.7.7_pre20140309::progress, 3.0.1::progress, 3.1.5-r1000::progress, 3.2.5-r1000::progress, 3.3.5_pre20140309::progress, 3.4_pre20140309::progress
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24.51.0.3
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -Wpointer-sign"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/python2.6/site-packages/buildbot/status/web /usr/lib64/python2.7/site-packages/buildbot/status/web /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall"
EMERGE_DEFAULT_OPTS="--quiet-build=n --verbose-main-repo-display"
FCFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-elog split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion berkdb bzip2 c++0x c++11 cairo caps cdda cddb cdr cracklib crypt cscope css ctype cups curl curlwrappers custom-cflags cxx dbus dga directfb dri dts dvb dvd dvdr dvdread encode enscript exif expat fam fbcon ffmpeg fftw filecaps flac fontconfig foomaticdb ftp gcj gd gdbm ggi gif gimp glut gmp gnuplot gnutls gphoto2 gpm graphviz gsm gstreamer gtk guile handbook hdf5 htmlhandbook iconv icu idn imagemagick imlib inotify introspection ipv6 java java5 java6 javascript jbig jit jpeg jpeg2k kde lame lapack lash lcms ldap libass libcaca libnotify libsamplerate lm_sensors lzma lzo mad matroska memlimit mhash mime mmap mmx mmxext mng modules mp3 mpeg mpi mplayer multilib musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl openmp pam pch pcntl pcre pda pdf perl png policykit portaudio posix postgres postscript ppds python qt4 rdesktop readline ruby sasl sdl semantic-desktop session shorten simplexml slang slp smp sndfile sockets speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 subversion svg symlink syslog taglib tcl tcpd theora threads tiff tk truetype udev unicode usb vcd vim-syntax vorbis wavpack webkit wifi wmf wxwidgets x264 xattr xcb xcomposite xft xine xml xmlrpc xmp xpm xscreensaver xsl xulrunner xv xvid zlib" ABI_X86="64" APACHE2_MODULES="access_compat actions alias auth_basic authn_anon authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio lua mime mime_magic negotiation rewrite sed serf session session_crypto setenvif speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript" LINGUAS="pl en cs fr la lt ru sk" PYTHON_ABIS="2.7-jython 2.6 2.7 3.1 3.2 3.3 3.4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC
Comment 2 Roy Marples 2014-03-13 18:11:11 UTC
Can you provide a wireshark trace of dhcpcd-6.3.1 and a working one please?
Comment 3 Roy Marples 2014-03-14 11:06:55 UTC
Can you also test dhcpcd-6.3.2 released today? Hopefully William can put it into portage promptly :)
Comment 4 Alexey Shvetsov archtester gentoo-dev 2014-03-21 08:29:00 UTC
Same here. It doesnt obtain lease with Networkmanager. Older versions are fine
Comment 5 Roy Marples 2014-03-21 09:40:19 UTC
Can you please provide wireshark traces of dhcpcd working and not working?
Comment 6 William Hubbs gentoo-dev 2014-03-23 03:32:51 UTC
Dhcpcd-6.3.2 is now in the tree, please test and let me know if this is
still an issue.

Thanks,

William
Comment 7 Alexey Shvetsov archtester gentoo-dev 2014-03-23 07:30:47 UTC
Seems like now it works for me