Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363501 - sys-apps/openrc-0.8.1: circular init loop between app-admin/syslog-ng-3.2.2 and iptables
Summary: sys-apps/openrc-0.8.1: circular init loop between app-admin/syslog-ng-3.2.2 a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
: 366635 (view as bug list)
Depends on:
Blocks: 295613
  Show dependency tree
 
Reported: 2011-04-13 17:04 UTC by Pryka
Modified: 2011-05-17 18:49 UTC (History)
7 users (show)

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


Attachments
syslog-ng.conf (syslog-ng.conf.backup3,3.59 KB, text/plain)
2011-04-14 17:15 UTC, Vitalik
Details
deptree (deptree,24.96 KB, text/plain)
2011-04-14 21:21 UTC, Pryka
Details
rc-status (rc-status,3.35 KB, text/plain)
2011-04-14 21:22 UTC, Pryka
Details
deptree (deptree,97.27 KB, text/plain)
2011-04-14 21:31 UTC, Vladimír Matěna
Details
rc-status -a (status,3.98 KB, text/plain)
2011-04-14 21:31 UTC, Vladimír Matěna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pryka 2011-04-13 17:04:37 UTC
Every thin log below:

    rc default logging started at Tue Apr 12 20:16:39 2011
         
        net.eth0                  | * net.eth0: waiting for syslog-ng (50 seconds)
        syslog-ng                 | * syslog-ng: waiting for iptables (50 seconds)
        iptables                  | * iptables: waiting for syslog-ng (50 seconds)
        acpid                     | * acpid: waiting for syslog-ng (50 seconds)
        xdm-setup                 | * xdm-setup: waiting for syslog-ng (50 seconds)
        udev-postmount            | * udev-postmount: waiting for syslog-ng (50 seconds)
        cupsd                     | * cupsd: waiting for syslog-ng (50 seconds)
        vixie-cron                | * vixie-cron: waiting for syslog-ng (50 seconds)
        local                     | * local: waiting for syslog-ng (50 seconds)
        netmount                  | * netmount: waiting for syslog-ng (50 seconds)
        dbus                      | * dbus: waiting for syslog-ng (50 seconds)
        clamd                     | * clamd: waiting for syslog-ng (50 seconds)
        xdm                       | * xdm: waiting for syslog-ng (50 seconds)
        net.eth0                  | * net.eth0: waiting for syslog-ng (41 seconds)
        syslog-ng                 | * syslog-ng: waiting for iptables (41 seconds)
        iptables                  | * iptables: waiting for syslog-ng (41 seconds)
        acpid                     | * acpid: waiting for syslog-ng (41 seconds)
        xdm-setup                 | * xdm-setup: waiting for syslog-ng (41 seconds)
        udev-postmount            | * udev-postmount: waiting for syslog-ng (41 seconds)
        cupsd                     | * cupsd: waiting for syslog-ng (41 seconds)
        vixie-cron                | * vixie-cron: waiting for syslog-ng (41 seconds)
        local                     | * local: waiting for syslog-ng (41 seconds)
        netmount                  | * netmount: waiting for syslog-ng (41 seconds)
        dbus                      | * dbus: waiting for syslog-ng (41 seconds)
        clamd                     | * clamd: waiting for syslog-ng (41 seconds)
        xdm                       | * xdm: waiting for syslog-ng (41 seconds)
        net.eth0                  | * net.eth0: waiting for syslog-ng (32 seconds)
        syslog-ng                 | * syslog-ng: waiting for iptables (32 seconds)
        iptables                  | * iptables: waiting for syslog-ng (32 seconds)
        acpid                     | * acpid: waiting for syslog-ng (32 seconds)
        xdm-setup                 | * xdm-setup: waiting for syslog-ng (32 seconds)
        udev-postmount            | * udev-postmount: waiting for syslog-ng (32 seconds)
        cupsd                     | * cupsd: waiting for syslog-ng (32 seconds)
        vixie-cron                | * vixie-cron: waiting for syslog-ng (32 seconds)
        local                     | * local: waiting for syslog-ng (32 seconds)
        netmount                  | * netmount: waiting for syslog-ng (32 seconds)
        dbus                      | * dbus: waiting for syslog-ng (32 seconds)
        clamd                     | * clamd: waiting for syslog-ng (32 seconds)
        xdm                       | * xdm: waiting for syslog-ng (32 seconds)
        net.eth0                  | * net.eth0: waiting for syslog-ng (23 seconds)
        syslog-ng                 | * syslog-ng: waiting for iptables (23 seconds)
        iptables                  | * iptables: waiting for syslog-ng (23 seconds)
        acpid                     | * acpid: waiting for syslog-ng (23 seconds)
        xdm-setup                 | * xdm-setup: waiting for syslog-ng (23 seconds)
        udev-postmount            | * udev-postmount: waiting for syslog-ng (23 seconds)
        cupsd                     | * cupsd: waiting for syslog-ng (23 seconds)
        vixie-cron                | * vixie-cron: waiting for syslog-ng (23 seconds)
        local                     | * local: waiting for syslog-ng (23 seconds)
        netmount                  | * netmount: waiting for syslog-ng (23 seconds)
        dbus                      | * dbus: waiting for syslog-ng (23 seconds)
        clamd                     | * clamd: waiting for syslog-ng (23 seconds)
        xdm                       | * xdm: waiting for syslog-ng (23 seconds)
        net.eth0                  | * net.eth0: waiting for syslog-ng (14 seconds)
        syslog-ng                 | * syslog-ng: waiting for iptables (14 seconds)
        iptables                  | * iptables: waiting for syslog-ng (14 seconds)
        acpid                     | * acpid: waiting for syslog-ng (14 seconds)
        xdm-setup                 | * xdm-setup: waiting for syslog-ng (14 seconds)
        udev-postmount            | * udev-postmount: waiting for syslog-ng (14 seconds)
        cupsd                     | * cupsd: waiting for syslog-ng (14 seconds)
        vixie-cron                | * vixie-cron: waiting for syslog-ng (14 seconds)
        local                     | * local: waiting for syslog-ng (14 seconds)
        netmount                  | * netmount: waiting for syslog-ng (14 seconds)
        dbus                      | * dbus: waiting for syslog-ng (14 seconds)
        clamd                     | * clamd: waiting for syslog-ng (14 seconds)
        xdm                       | * xdm: waiting for syslog-ng (14 seconds)
        net.eth0                  | * net.eth0: waiting for syslog-ng (5 seconds)
        syslog-ng                 | * syslog-ng: waiting for iptables (5 seconds)
        iptables                  | * iptables: waiting for syslog-ng (5 seconds)
        acpid                     | * acpid: waiting for syslog-ng (5 seconds)
        xdm-setup                 | * xdm-setup: waiting for syslog-ng (5 seconds)
        udev-postmount            | * udev-postmount: waiting for syslog-ng (5 seconds)
        cupsd                     | * cupsd: waiting for syslog-ng (5 seconds)
        vixie-cron                | * vixie-cron: waiting for syslog-ng (5 seconds)
        local                     | * local: waiting for syslog-ng (5 seconds)
        netmount                  | * netmount: waiting for syslog-ng (5 seconds)
        dbus                      | * dbus: waiting for syslog-ng (5 seconds)
        clamd                     | * clamd: waiting for syslog-ng (5 seconds)
        xdm                       | * xdm: waiting for syslog-ng (5 seconds)
        net.eth0                  | * net.eth0: timed out waiting for syslog-ng
        syslog-ng                 | * syslog-ng: timed out waiting for iptables
        iptables                  | * iptables: timed out waiting for syslog-ng
        acpid                     | * acpid: timed out waiting for syslog-ng
        xdm-setup                 | * xdm-setup: timed out waiting for syslog-ng
        iptables                  | * Loading iptables state and starting firewall ...
        udev-postmount            | * udev-postmount: timed out waiting for syslog-ng
        cupsd                     | * cupsd: timed out waiting for syslog-ng
        vixie-cron                | * vixie-cron: timed out waiting for syslog-ng
        local                     | * local: timed out waiting for syslog-ng
        netmount                  | * netmount: timed out waiting for syslog-ng
        dbus                      | * dbus: timed out waiting for syslog-ng
        clamd                     | * clamd: timed out waiting for syslog-ng
        xdm                       | * xdm: timed out waiting for syslog-ng
         [ ok ]
        dbus                      | * Starting D-BUS system messagebus ...
        vixie-cron                | * Starting vixie-cron ...
        net.eth0                  | * Bringing up interface eth0
        net.eth0                  | *   dhcp ...
        acpid                     | * Starting acpid ...
         [ ok ]
        net.eth0                  | *     Running dhcpcd ...
         [ ok ]
        net.eth0                  |dhcpcd[7818]: version 5.2.12 starting
        net.eth0                  |dhcpcd[7818]: eth0: waiting for carrier
        syslog-ng                 | * Starting syslog-ng ...
         [ ok ]
         [ ok ]
        udev-postmount            | * Doing udev cleanups
        net.eth0                  |dhcpcd[7818]: eth0: carrier acquired
        net.eth0                  |dhcpcd[7818]: eth0: rebinding lease of xx.xxx.xx.xxx
        net.eth0                  |dhcpcd[7818]: eth0: acknowledged xx.xxx.xx.xxx from xxx.xx.xxx.xx
        net.eth0                  |dhcpcd[7818]: eth0: checking for xx.xxx.xx.xxx
        net.eth0                  |dhcpcd[7818]: eth0: leased xx.xxx.xx.xxx for 86400 seconds
        net.eth0                  |dhcpcd[7818]: forked to background, child pid 8081
         [ ok ]
        net.eth0                  | *     received address xx.xxx.xx.xxx/xx
         [ ok ]
        cupsd                     | * Starting cupsd ...
        netmount                  | * Mounting network filesystems ...
         [ ok ]
        xdm                       | * Setting up gdm ...
        clamd                     | * Starting clamd ...
         [ ok ]
         [ ok ]
         [ ok ]
        clamd                     | * Starting freshclam ...
         [ ok ]
        local                     | * Starting local


Portage 2.1.9.45 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.0.2
Timestamp of tree: Wed, 13 Apr 2011 15:15:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.1
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.38 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-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/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j3"
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="/var/lib/layman/sunrise"
SYNC="rsync://ftp.vectranet.pl/gentoo-portage"
USE="X accessibility acl acpi alsa amd64 archive bash-completion beagle berkdb branding bzip2 cairo caps cdda cli consolekit corefonts cracklib crypt cups cxx dbus device-mapper disk-partition dri enca extras fat fortran fts3 gdbm gdu gif gimp glitz gnome gnutls gpm gtk iconv idn inotify ipv6 java jpeg lame libburn libnotify lzma lzo mmx mmxext modules mozilla mp3 mplayer mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ntfs objc ogg opengl openmp pam pcre perl png policykit pppd python qt3support readline secure-delete session slang spell sqlite sse sse2 sse3 ssl ssse3 subversion symlink sysfs syslog tcpd theora threads tiff truetype udev unicode unsupported usb vorbis xcb xcomposite xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




Reproducible: Always

Steps to Reproduce:
1.Boot the system.


Expected Results:  
So as You can see, I just can't bootup my Gentoo normally... 

ps. Sorry for my English. I'm from Poland
Comment 1 Fabio Coatti 2011-04-14 07:05:50 UTC
Check your dmesg for soemthing like this:
WARNING: at kernel/printk.c:288 do_syslog+0x84/0x441()
Hardware name: HP EliteBook 8440p
Attempt to access syslog with CAP_SYS_ADMIN but no CAP_SYSLOG (deprecated).
Modules linked in: xt_hashlimit xt_conntrack xt_connmark xt_mark xt_multiport xt_DSCP xt_owner xt_iprange ip6_tables xt_string ip_tables sco bnep rfcomm l2cap snd_hda_codec_hdmi nvidia(P) snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm hp_accel joydev qcserial usb_wwan usbserial hp_wmi lis3lv02d sparse_keymap video btusb wmi uvcvideo snd_timer snd videodev intel_agp backlight rtc_cmos rtc_core rtc_lib firewire_ohci firewire_core bluetooth intel_gtt psmouse iwlagn iwlcore v4l2_compat_ioctl32 soundcore intel_ips agpgart snd_page_alloc fuse raid10 raid1 raid0 dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan
Pid: 5140, comm: syslog-ng Tainted: P            2.6.38.2 #3
Call Trace:
 [<ffffffff8103d4d8>] ? warn_slowpath_common+0x78/0x8c
 [<ffffffff81106f78>] ? kmsg_release+0x0/0x1b
 [<ffffffff8103d58d>] ? warn_slowpath_fmt+0x45/0x4a
 [<ffffffff8103d9c0>] ? do_syslog+0x84/0x441
 [<ffffffff810c707b>] ? do_lookup+0x1c6/0x27a
 [<ffffffff81106f78>] ? kmsg_release+0x0/0x1b
 [<ffffffff810fe6bc>] ? proc_reg_open+0x9f/0x13f
 [<ffffffff81106f93>] ? kmsg_open+0x0/0x1b
 [<ffffffff810fe61d>] ? proc_reg_open+0x0/0x13f
 [<ffffffff810bbb06>] ? __dentry_open+0x15f/0x28a
 [<ffffffff810c82d4>] ? finish_open+0x97/0x14d
 [<ffffffff810c7cfe>] ? do_path_lookup+0x82/0xe6
 [<ffffffff810c87be>] ? do_filp_open+0x15e/0x602
 [<ffffffff81052d63>] ? bit_waitqueue+0x14/0xa4
 [<ffffffff810e7a34>] ? fsnotify_clear_marks_by_inode+0x87/0xc6
 [<ffffffff810c078c>] ? cp_new_stat+0xdf/0xf1
 [<ffffffff810d2784>] ? alloc_fd+0x10b/0x11d
 [<ffffffff810bc8b8>] ? do_sys_open+0x56/0xe4
 [<ffffffff8100203b>] ? system_call_fastpath+0x16/0x1b
---[ end trace 87b128aa5573942c ]---
Comment 2 Pryka 2011-04-14 08:23:04 UTC
No such thing in my dsmg log.

But thanks anyway.
Comment 3 Vitalik 2011-04-14 14:57:00 UTC
Have the same thing. Syslog-ng is waiting for iptables, and iptables are waiting for syslog-ng. Started after updating to openrc-8.1. Deleting iptables from default runlevel fixed problem.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2011-04-14 15:37:12 UTC
sounds like a bug in openrc then
Comment 5 William Hubbs gentoo-dev 2011-04-14 16:07:35 UTC
I see that you have parallel startup active.

Are you using network sources or destinations in syslog-ng.conf?
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2011-04-14 16:53:15 UTC
Rather then just answer the question, please actually attach your syslog-ng.conf.
Comment 7 Vitalik 2011-04-14 17:15:53 UTC
Created attachment 269975 [details]
syslog-ng.conf

I commented all lines in files:

/etc/syslog-ng/syslog-ng.conf
/etc/syslog-ng/scl.conf
/etc/syslog-ng/modules.conf

Result was the same.
Downgrading to openrc-0.7 solved the problem.
By the way, i'm not using /etc/init.d/network script for networking. I use /etc/init.d/wicd instead.
Comment 8 William Hubbs gentoo-dev 2011-04-14 18:06:08 UTC
(In reply to comment #7)
> Downgrading to openrc-0.7 solved the problem.

What about using openrc-0.8.1 and setting

rc_parallel="NO"
Comment 9 Vladimír Matěna 2011-04-14 19:38:05 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Downgrading to openrc-0.7 solved the problem.
> 
> What about using openrc-0.8.1 and setting
> 
> rc_parallel="NO"

I think I have same problem. With openrc-0.8.1 iptables and syslog-ng are waiting for each other. Setting rc_parallel="NO" solves the problem.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-04-14 20:36:48 UTC
could you please attach the following:
/lib*/rc/init.d/deptree
rc-status -a output

I don't see any circular deps between the base stuff here at all (listed below)
Could you try with parallel back on, and the wicd service turned off?

iptables:
before net
use logger

syslog-ng:
use clock
need hostname localmount
provide logger
#need net # only if your syslog-ng config has network stuff, which you don't

wicd:
need dbus
after hald

dbus:
need localmount
after bootmisc

hald:
use logger acpid
need dbus consolekit
after coldplug dns nscd

clock, hostname, localmount, syslog-ng
Comment 11 Petr Pisar 2011-04-14 20:49:37 UTC
The same problem on x86. (I have the CAP_SYSLOG kernel warning but that's
problem of syslog-ng not using CAP_SYSLOG capability introduced in recent
Linux.) 

Parallel start, syslog-ng is waiting on ip6tables (or iptables) and on atd
according openrc-0.8.1 messages. openrc-0.8.0 with the same iptables and
syslog-ng version was O.k. Removing iptables and ip6tables from default
runlevel or switching to serial boot makes boot working. I have no tcp/udp
sources/destination in syslog-ng configuration. I also tried to comment `need'
and `use' lines in syslog-ng depend() without success. Even after
/lib/rc/bin/rc-depend --update no success. I use net.lo (boot level) and net.eth0 (default level) as network init scripts with rc_depend_strict="NO".
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-04-14 21:01:29 UTC
Vladimar, Petr: both of you, please do and attach what I noted in comment 10.

Petr: do you have wicd or NetworkManager in your active inits at all?
Comment 13 Vladimír Matěna 2011-04-14 21:10:13 UTC
(In reply to comment #11)
> I use net.lo (boot level) and
> net.eth0 (default level) as network init scripts with rc_depend_strict="NO".

I have rc_depend_strict="NO" and net.lo at boot level too. This should satisfy "net". But removing "before net" from iptables and ip6tables solves the problem. Which is wierd as "net" should be satisfied before this happends.
Comment 14 Pryka 2011-04-14 21:21:22 UTC
Created attachment 269989 [details]
deptree

Maybe mine deptree will help?
Comment 15 Pryka 2011-04-14 21:22:20 UTC
Created attachment 269991 [details]
rc-status

And rc-status
Comment 16 Vladimír Matěna 2011-04-14 21:31:01 UTC
Created attachment 269993 [details]
deptree

As you can see I use NetworkManager for network configuration on my laptop.
Comment 17 Vladimír Matěna 2011-04-14 21:31:45 UTC
Created attachment 269995 [details]
rc-status -a
Comment 18 Vladimír Matěna 2011-04-15 14:23:47 UTC
I think I have solved the problem at last for me. I moved iptables and ip6tables from default runlevel to boot runlevel. Now system boots normaly.

I think the problem is that iptables has "before net" and net is provided by net.lo in boot runlevel. Thus iptables cannot start before net as net is not provided by anything in default runlevel.

Without NetworkManager and wicd there is net.eth0 that provides net so iptables can start before net provided by net.eth0.

I do not understand how openrc works internally so maybe I am completely wrong. Anyway there are 3 ways for me to get it working:

1) move iptables from default to boot runlevel
or
2) revert /etc/init.d/net.lo to openrc-0.8.0
or
3) replace rc_hotplug="!net.eth* !net.wlan*" by rc_hotplug="*" in /etc/rc.conf
Comment 19 William Hubbs gentoo-dev 2011-04-16 01:31:49 UTC
(In reply to comment #18)
> I think I have solved the problem at last for me. I moved iptables and
> ip6tables from default runlevel to boot runlevel. Now system boots normaly.
> I think the problem is that iptables has "before net" and net is provided by
> net.lo in boot runlevel. Thus iptables cannot start before net as net is not
> provided by anything in default runlevel.

I don't think "before" requires whatever it is before to exist. So, in this case, something having "before net" but nothing providing "net" in the current runlevel shouldn't be an issue.

> 2) revert /etc/init.d/net.lo to openrc-0.8.0

I have reverted the dependencies in net.lo to be what they were in 0.8.0 because this change caused another regression as well.

Please update as soon as possible to openrc-0.8.2. Then move iptables/ip6tables back to the default runlevel and let me know if things work again.
Comment 20 Pryka 2011-04-16 04:41:18 UTC
No it's fine, thank you William :)
Comment 21 Vladimír Matěna 2011-04-16 09:48:15 UTC
Updated to openrc-0.8.2 and it works with iptables, either in the boot or default runlevel.
Comment 22 William Hubbs gentoo-dev 2011-04-16 13:17:20 UTC
Thanks for the report.
Comment 23 Petr Pisar 2011-04-18 21:36:35 UTC
0.8.2 works again for me. (Sorry for late response, I forgot to CC me.)
Comment 24 William Hubbs gentoo-dev 2011-05-17 18:49:44 UTC
*** Bug 366635 has been marked as a duplicate of this bug. ***