Bug 734676 - network bonding does not work when used with systemd
Summary: network bonding does not work when used with systemd
Status: RESOLVED NORESPONSE
Alias: None
Product: openSUSE 12.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: x86-64 SUSE Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Marius Tomaschewski
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 696902
  Show dependency treegraph
 
Reported: 2011-12-02 23:17 UTC by Tazio Ceri
Modified: 2012-04-16 11:51 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
/etc/init.d/network -- test script (32.28 KB, application/octet-stream)
2012-02-01 15:48 UTC, Marius Tomaschewski
Details
/etc/init.d/network-remotefs -- test script (2.66 KB, application/octet-stream)
2012-02-01 15:49 UTC, Marius Tomaschewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tazio Ceri 2011-12-02 23:17:31 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!
Comment 1 Alex Savin 2011-12-13 05:40:46 UTC
I have the same problem with Network Bridge
Comment 2 Frederic Crozat 2012-01-19 15:35:43 UTC
please test with latest 12.1 maintenance update for systemd and  sysconfig
Comment 3 Frederic Crozat 2012-01-31 14:41:39 UTC
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/
Comment 4 Martin Vidner 2012-01-31 14:58:03 UTC
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.
Comment 5 Tazio Ceri 2012-01-31 19:35:48 UTC
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.
Comment 6 Marius Tomaschewski 2012-02-01 09:13:33 UTC
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.
Comment 7 Marius Tomaschewski 2012-02-01 09:19:51 UTC
Or also "rcnetwork start -o boot".
Comment 8 Marius Tomaschewski 2012-02-01 15:48:59 UTC
Created attachment 473817 [details]
/etc/init.d/network -- test script
Comment 9 Marius Tomaschewski 2012-02-01 15:49:29 UTC
Created attachment 473818 [details]
/etc/init.d/network-remotefs -- test script
Comment 10 Marius Tomaschewski 2012-02-01 15:59:52 UTC
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
Comment 11 Marius Tomaschewski 2012-02-01 16:00:51 UTC
(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.
Comment 12 Marius Tomaschewski 2012-02-02 16:36:34 UTC
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...
Comment 13 Marius Tomaschewski 2012-02-08 16:07:16 UTC
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.
Comment 14 Marius Tomaschewski 2012-02-16 14:10:58 UTC
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.
Comment 15 Marius Tomaschewski 2012-04-16 11:51:58 UTC
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].