Bugzilla – Bug 734676
network bonding does not work when used with systemd
Last modified: 2012-04-16 11:51:58 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 I have network bonding between 2 gigabit ethernet NICs, via YaST2. It does not work when I boot the system selecting the default/systemd init system. Restarting network does not help. I need to modify bonding configuration, apply, modify bonding configuration back to the original, apply, and then bonding network works. If I choose to boot with SystemV I have no problem. Reproducible: Always Steps to Reproduce: 1.Configure Network Bonding. 2.Reboot with systemd 3.Check that network does not work and bond0 does not appear on ifconfig -a output. Actual Results: Networking does not work. Expected Results: Network Working!
I have the same problem with Network Bridge
please test with latest 12.1 maintenance update for systemd and sysconfig
sysconfig maintenance update isn't released yet, in the mean time, use http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/openSUSE:/12.1:/Update:/Test/openSUSE_12.1/
If it works with sysvinit but not with systemd, then I think that yast does nothing wrong with the ifcfg files. Tazio, Alex, if it does not work with with updated sysconfig.rpm, please attach the files /etc/sysconfig/network/ifcfg-* Over to Marius for sysconfig.rpm, reassign back if yast configures it wrong.
With the last updates, Bonding does not work AT ALL. With the updated sysconfig.rpm (and updated dhcp too), I can set up a single NIC and get networking that way. Without those updates, there is NO WAY to set up networking from YaST. I had to run rcnetwork stop and set up everything manually (ifconfig, route add, etc). I think this behaviour is not related with the original bug, but I can't really be sure. Note: systemd got stuck after checking my RAID-1 filesystem. So I can't try how it works. Opening just another bug.
Going to retest with bonding... BTW: For the moment, you can use /./etc/init.d/network <start|restart> This trick aviods the redirection to systemd and back. Can you attach your network config please? Install the "supportutils" package, execute "supportconfig" and attach the resulting archive.
Or also "rcnetwork start -o boot".
Created attachment 473817 [details] /etc/init.d/network -- test script
Created attachment 473818 [details] /etc/init.d/network-remotefs -- test script
I've tried it in KVM only until now, but it seems bonding in the kernel (released few days ago) may be broken... The setup via ifup works AFAIS, but I didn't get any packets through the bond interface. The fixes we've made (comment 3) seem to not solve the start problems; it looks like the exec in network-remotefs confuses systemd... I've attached my work in progress -- please save and try out them: install -m755 bug-734676_network /etc/init.d/network install -m755 bug-734676_network-remotefs /etc/init.d/network-remotefs
(In reply to comment #10) > The fixes we've made (comment 3) seem to not solve the start problems; > it looks like the exec in network-remotefs confuses systemd... See also bug 744293.
Does it help when you add the LINK_READY_WAIT='15' setting to the /etc/sysconfig/network/ifcfg-bond0 file? Can you remove "quiet" and set the following boot time options? : splash=0 showopts systemd.log_level=debug systemd.log_target=kmsg systemd.sysv_console=1 systemd.show_status=1 I've applied my current set of changes to http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/openSUSE:/12.1:/Update:/Test/openSUSE_12.1/ I've also improved the /etc/sysconfig/network/config: DEBUG=EXTRA (bash -vx) tracing to include all ifup args and pid...
Tazio, could you install latest sysconfig update + systemd >= 37-3.146 package from: http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_12.1/ and retest? See also questions above, but do not install the test package from comment 12, but the released sysconfig package.
Any news? Please make sure you have the most recent systemd >= 37-3.151.1 from: http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_12.1/ install the sysconfig package (changelog from today, > 0.75.4-2.8) from: http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/openSUSE:/12.1:/Update:/Test/openSUSE_12.1/ ------------------------------------------------------------------ Thu Feb 16 14:03:59 UTC 2012 - mt@suse.com - Test patch: 0010-network-start-fails-under-systemd.test.patch bnc#734676: network bonding does not work when used with systemd bnc#737636: network is started then stopped right away bnc#745859: network reports failure at start under systemd Set DEBUG=EXTRA, reboot and attach tar of /dev/.sysconfig/network. ------------------------------------------------------------------ Then set DEBUG=EXTRA in /etc/sysconfig/network/config, reboot and attach a tar.bz2 of /dev/.sysconfig/network when it occurs again.
Closing as no response. See also bug 747931 and 727771 [I think it is the same issue; has been reopened as there seem to be still problems].