Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 249500

Summary: Baselayout does not assign IPv6 addresses and routes to wired interface upon boot (but works with wireless).
Product: Gentoo Linux Reporter: Antek Grzymała (antoszka) <antoni>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED NEEDINFO    
Severity: major CC: audun, glua, roy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Screenshot of the system booting up with errors

Description Antek Grzymała (antoszka) 2008-12-01 17:06:28 UTC
First, my /etc/conf.d/net:

### Wireful: ###################################################

modules="iproute2 !plug"

dhcpcd="-t4 -R"

config_eth0=( "10.19.19.74/24"
              "192.168.0.1/24"
              "2001:6a0:14a::dada/48" )
routes_eth0=( "default via 192.168.0.254"
              "default via 2001:6a0:14a::1" )

### Wireless: ###################################################

modules="wpa_supplicant"
modules_wlan0="!netplug"

dhcpcd_wlan0="-t4 -R"

wpa_timeout_wlan0=20
wpa_supplicant_wlan0="-Dwext"

config_Okno=( "192.168.0.1/24"
              "2001:6a0:14a::dada/48" )
routes_Okno=( "default via 192.168.0.254"
              "default via 2001:6a0:14a::1" )

config_Mosarz="10.11.0.11/24"
routes_Mosarz="default via 10.11.0.254"

config_gama="195.187.82.6/24"
routes_gama="default via 195.187.82.254"

config_uniwersytet="192.168.0.222/24"
routes_uniwersytet="default via 192.168.0.1"

#############################################################

The problem is that when I boot with wireless enabled and I get attached to the "Okno" SSID (vide conf.d/net), then the interface gets both IPv4 and IPv6 routes and addresses correctly assigned.

Now I switched off the wireless and assigned identical addresses to my wired interface eth0 (vide conf.d/net again) and when I boot up the machine I get errors like this:

 * Starting eth0
 *   Running preup function
 *   10.19.19.74/24
 *   192.168.0.1/24
 *   2001:6a0:14a::dada/48
RTNETLINK answers: Operation not supported

Same thing with adding the routes. Screenshot attached.
When I try to add the addresses manually after boot up, everything works fine:

# ip a add 2001:6a0:14a::dada/48 dev eth0
# ip -6 r add default via 2001:6a0:14a::1
#

(And ipv6 traffic works as expected.)

Here's my emerge --info -v:

Portage 2.2_rc16 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-rc5-git4 i686)
=================================================================
System uname: Linux-2.6.28-rc5-git4-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-glibc2.0
Timestamp of tree: Sun, 30 Nov 2008 18:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
ALSA_CARDS="hda-intel usb-audio vxpocket virmidi indigoio"
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"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CCACHE_SIZE="2G"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="rxvt"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0.0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--nospinner --keep-going --load-average 8"
EMERGE_WARNING_DELAY="10"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 8 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HG="/usr/bin/hg"
HOME="/home/antoni"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-23"
INPUT_DEVICES="evdev keyboard mouse synaptics"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LADSPA_PATH="/usr/lib/ladspa"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBGL_DRIVERS_PATH="/usr/lib/dri"
LINGUAS="en en_GB pl"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OPENGL_PROFILE="ati"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_COUNTER_HASH="183324da95c5e3aefdf223da7475df24"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="3"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/antoni"
PORT_ENOTICE_DIR="/var/enotice"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 8 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SBCL_HOME="/usr/lib/sbcl"
SBCL_SOURCE_ROOT="/usr/lib/sbcl/src"
SEARCH_DIRS_MASK="/usr/lib/gcc/i686-pc-linux-gnu/4.1.2"
SGML_CATALOG_FILES="/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-lite.cat"
SHELL="/bin/bash"
SUDO_COMMAND="/usr/bin/emerge --info -v"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="antoni"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="screen"
TKABBER_SITE_PLUGINS="/usr/share/tkabber/site-plugins"
USE="7zip X a52 aac aalib acl acpi activefilter afs alsa amr amrnb amrwb ares atm bash-completion berkdb bluetooth bzip2 cairo caps cdparanoia cjk cli color-console cpudetection cracklib crypt cups curl device-mapper djvu dri dv dvdr dvdread eap-tls emacs exif fastcgi fat ffmpeg flac fortran gd gdbm gif gimp glitz gpgme gpgmeidn gpm gtk guile hal hdri hfs iconv idn imap inkjar iproute2 ipv6 isdnlog iso14755 ithreads jabber jfs jpeg ladspa lcms libsamplerate loop-aes mad maildir mbox midi mjpeg mmx mmxext mng mp3 mplayer mudflap musepack ncurses net nethack networking nls nodrm nptl nptlonly ntfs offensive openct opengl openmp pam pcre pcsc-lite pdf perl pg-intdatetime plotutils png ppds pppd python quicktime radeon radius readline reflection reiser4 reiserfs rle rtc ruby samba sbcl session skey slang slp smartcard smime smp sndfile socks5 spl srt sse sse2 ssl subtitles svg sysfs tcl tcpd theora thread threads tiff tk tkimg truetype unicode urandom usb v4l v4l2 vcd video vim vim-syntax win32codecs wmf x264 x86 xattr xetex xfs xft xinerama xmp xorg xv xvid zlib zsh-completion" ALSA_CARDS="hda-intel usb-audio vxpocket virmidi indigoio" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB pl" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa fglrx"
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="ati radeon vesa fglrx"
VISUAL="/usr/bin/vim"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"

###

Reproducible: Always

Steps to Reproduce:
Comment 1 Antek Grzymała (antoszka) 2008-12-01 17:08:15 UTC
Created attachment 173983 [details]
Screenshot of the system booting up with errors
Comment 2 Antek Grzymała (antoszka) 2008-12-08 13:10:33 UTC
Sorry to bug, but this seems quite a serious issue (I'm deploying production IPv6 on a number of systems these days). Can I help with debugging or anything?
Comment 3 Antek Grzymała (antoszka) 2009-01-25 18:26:04 UTC
ICMP ECHO REQUEST
Comment 4 Roy Marples 2009-01-25 18:37:38 UTC
If you want any help from me, you'll have to upgrade to OpenRC as I've tested that there and it works fine.
Comment 5 William Hubbs gentoo-dev 2009-12-21 22:20:14 UTC
Please upgrade to the latest version of openrc.

If this is still an issue, please re-open this bug and let us know.

Thanks,

William

Comment 6 Audun Einangen 2010-02-01 10:30:28 UTC
Sorry to revive this bug, but this actually is a real issue, as there is no information whatsoever about OpenRC in the documentation on setting up an IPv6 router.  There is no information that it even exists.  Furthermore, OpenRC is masked;
- sys-apps/openrc-9999 (masked by: missing keyword)
- sys-apps/openrc-0.6.0 (masked by: ~amd64 keyword)
Personally, I am not comfortable with unmasking too many packages on a production system.
Finally, the introduction to OpenRC seems far from trivial, making the transition something not to take too lightly, especially on a production system.  

I suppose there might be unresolvable issues with the traditional rc scripts. In that case, this bug should be forwarded to the documentation team, as OpenRC probably needs mentioning (or more) in the main handbook, or the very least the IPv6 router guide.
Comment 7 SpanKY gentoo-dev 2010-02-03 04:09:19 UTC
we arent backporting major things to baselayout-1.  if openrc works, then use that.  if you dont want to unmask it, then find some workaround for your system until it does stabilize.
Comment 8 Tom Dickson 2010-02-04 03:34:07 UTC
This works for me; how is IPv6 compiled? If it is a module, you may need it in modules.conf, or you may want to compile it into the kernel.
Comment 9 Audun Einangen 2010-08-16 12:52:41 UTC
Sorry to bring this one to the surface yet again, but I do have some new information.  

The problem seems to be whether or not the IPv6 system is built into the kernel or as a module.  The problem still exist with openrc-0.6.1-r1 and baselayout-2.0.1, but goes away as soon as I build IPv6 into the kernel itself.

As soon as I built IPv6 into the kernel, i.e. NOT as a module, everything works as it should.  That would explain why it seemed to work on some of my servers, but not on the majority of them.  Having automounter support built-in, I have never really thought much about module loading/unloading for a very long time.

I still think this should be mentioned in either the Gentoo Handbook or the IPv6 how-to, but otherwise, this is resolved without need of further information...
Comment 10 Antek Grzymała (antoszka) 2010-08-16 16:51:39 UTC
Well, I have somewhat contradicting news. I'm running baselayout-2.0.1/openrc-0.6.1-r1 and I don't have a problem with having v6 addresses/routes assigned at boot even though I have ipv6 built as a module. However, I have it listed in /etc/conf.d/modules -- so it probably gets loaded early enough for address/route assignment to work correctly. This may be a solution in your case, too. Since baselayout 1.x/non-openrc systems are pretty much dead for me I probably should close the bug.
Comment 11 Audun Einangen 2010-08-16 20:54:49 UTC
Yes, I suppose /etc/conf.d/modules would have done the trick for me as well, but I also had to upgrade from kernel 2.6.30-r4, so it was just as easy to compile it in.  

Anyway, the fact that there is no mention of a baselayout2 _anywhere_ in the installation docs, makes this problem hard to fix for someone new to Gentoo.  Hell, I have been using Gentoo for 5-6 years, and the first I heard of it, was this bug report.  I only set up baselayout2 today, and it was still not trivial, as the docs states I should move what I need from /etc/conf.d/rc to "appropriate" settings in /etc/rc.conf.  The problem is, all those settings are not present in the new file.  And the other files in /etc/conf.d also have a lot of changed variable names and values, so wouldn't it be better to start extensive testing on baselayout2 and openrc, making it the default when installing Gentoo?

Should I open a new bug report for that, as we have now moved a bit away from the original bug?
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-16 21:48:20 UTC
(In reply to comment #11)
> Yes, I suppose /etc/conf.d/modules would have done the trick for me as well,
> but I also had to upgrade from kernel 2.6.30-r4, so it was just as easy to
> compile it in.  
Enough of BL1/IPv6 issues here. Everybody should just make sure IPv6 is loaded ahead of trying to use it.

> Should I open a new bug report for that, as we have now moved a bit away from
> the original bug?
Look at the tracker bug for openrc/BL2. It's not quite ready yet, but it's getting there. Your observations above would be useful on the documentation parts of that bug.