Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290094 - net-misc/networkmanager-0.7.1-r6 conflicts with net.eth scripts - dhcp issues
Summary: net-misc/networkmanager-0.7.1-r6 conflicts with net.eth scripts - dhcp issues
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 04:50 UTC by John Klehm
Modified: 2009-11-25 01:46 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 John Klehm 2009-10-22 04:50:20 UTC
Having both networkmanager and net.eth scripts in the default run level causes networkmanager's attempt to run dhcp to fail (dhcpcd already running -> die).

Gnome will start and network manager will be running but show the connection broken icon. Restarting networkmanager will fix the problem for that boot. Rebooting and it will break again.

To fix permanently I had to remove the net.eth scripts from the default run level (so they were not in any runlevel after doing so).  Then network manager suceeds with its dhcp on boot and there are no issues after gnome has started.

I dont know enough to say if that is the ideal solution (removing net.eth scripts) but if so there should at least be a note after installing this version of the ebuild about doing so, since the net.eth scripts are still recommended by the gentoo install guide.

I have had net.eth scripts and network manager in the default run level for sometime (more than 9 months I believe) and it was working up until I installed this version I believe.

Reproducible: Always

Steps to Reproduce:
1. Install networkmanager-0.7.1-r6
2. Have net.ethX scripts in the default runlevel
3. Reboot
4. Watch for dhcp conflict


Actual Results:  
No network connectivity

Expected Results:  
Working network
Comment 1 Wormo (RETIRED) gentoo-dev 2009-10-28 06:43:45 UTC
Please post your 'emerge --info' output to help maintainers reproduce this problem.
Comment 2 John Klehm 2009-10-28 15:06:15 UTC
simplicity ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-AMD_Athlon-tm-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 25 Oct 2009 15:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/john/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa amr apache apache2 applet autoipd automount avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dga dirac directfb djvu dri dts dvb dvd dvdr dvi emboss encode evo exif expat fam fbcon ffmpeg flac fontconfig foomaticdb fortran freetype gadu gdbm ggi gif gimp gnome gnome-keyring gnutls gpm gsm gstreamer gtk hal hardcoded-tables httpd iconv ipv6 isdnlog java jbig jpeg jpeg2k kerberos krb4 laptop lcms libburn libcaca libnotify lzma mad mdnsresponder-compat mikmod mmx mmxext mng modules mozdevelop mp3 mp4 mpeg mudflap mysql mysqli nautilus ncurses network networkmanager nls nptl nptlonly nsplugin ntfs ogg openexr opengl openmp pam pcre pdf perl php png policykit postgres postgresql ppds pppd python qt3support quicktime raw readline reflection remote samba schroedinger sdl session silc sndfile spell spl sse ssl startup-notification svg svga sysfs syslog t1lib tcpd theora threads thunar tiff totem truetype udf unicode usb v4l v4l2 vhook vim-syntax vim-with-x vorbis win32codecs wmf x264 x86 xattr xforms xft xinerama xml xorg xprint xslt xulrunner xv xvid zephyr zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file 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 mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


simplicity ~ # rc-update show         
      NetworkManager |      default                  
               acpid |      default                  
           alsasound | boot                          
      avahi-dnsconfd |      default                  
            bootmisc | boot                          
             checkfs | boot                          
           checkroot | boot                          
               clock | boot                          
         consolefont | boot                          
               cupsd |      default                  
                dbus |      default                  
             distccd |      default                  
                hald |      default                  
            hostname | boot                          
            iptables |      default                  
             keymaps | boot                          
               local |      default nonetwork        
          localmount | boot                          
             modules | boot                          
              net.lo | boot                          
            netmount |      default                  
          ntp-client | boot                          
                ntpd |      default                  
           rmnologin | boot                          
           syslog-ng |      default                  
             urandom | boot                          
          vixie-cron |      default                  
                 xdm |      default    

simplicity ~ # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

Comment 3 John Klehm 2009-10-28 15:12:44 UTC
Also my setup has 2 nics, eth0 is unplugged, eth1 is plugged into my router. So my boot process before I removed net.eth scripts was like this:
eth0 will look for dhcp, timeout, then eth1 will run pickup dhcp.  Then NetworkManager kicks in and gives a die message dhcp already running.
Comment 4 Robert Piasek (RETIRED) gentoo-dev 2009-11-24 22:02:31 UTC
NetworkManager REPLACES gentoo init scripts. It's designed as a replacement tool and is not supposed to work together.

If you want to use NM, please delete (or rename) your /etc/init.d/net.XX scripts.
Comment 5 John Klehm 2009-11-25 01:46:35 UTC
(In reply to comment #4)
> NetworkManager REPLACES gentoo init scripts. It's designed as a replacement
> tool and is not supposed to work together.
> 
> If you want to use NM, please delete (or rename) your /etc/init.d/net.XX
> scripts.
> 

I did delete them as I said earlier in this bug.

My point is that I wasn't notified that they should be deleted. I had to find out after I was having dhcp problems.

Consider this a feature request for a heads up about this functionality.