[Bug 764055] New: systemd: interface is not suspended when stopping network service
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c0 Summary: systemd: interface is not suspended when stopping network service Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: mt@suse.com ReportedBy: mfilka@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- initial state: # /etc/init.d/network status redirecting to systemctl network.service - LSB: Configure the localfs depending network interfaces Loaded: loaded (/etc/init.d/network) Active: failed since Fri, 25 May 2012 11:19:42 +0200; 1min 21s ago Process: 657 ExecStart=/etc/init.d/network start (code=exited, status=7/NOTRUNNING) CGroup: name=systemd:/system/network.service ├ 1623 /sbin/dhclient6 -6 -cf /var/lib/dhcp6/dhclient6.eth0.conf -lf /var/lib/dhcp6/dhclient6.eth0.lease -pf /v... └ 4692 /sbin/dhcpcd --netconfig -L -E -c /etc/sysconfig/network/scripts/dhcpcd-hook -t 0 -h linux-td0f eth0 # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:1C:C0:72:28:9E inet addr:10.100.51.69 Bcast:10.100.63.255 Mask:255.255.192.0 inet6 addr: fe80::21c:c0ff:fe72:289e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38323 errors:0 dropped:21 overruns:0 frame:0 TX packets:33458 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25655656 (24.4 Mb) TX bytes:7946095 (7.5 Mb) Interrupt:20 Memory:e0300000-e0320000 then I do: # /etc/init.d/network stop redirecting to systemctl # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:1C:C0:72:28:9E inet addr:10.100.51.69 Bcast:10.100.63.255 Mask:255.255.192.0 inet6 addr: fe80::21c:c0ff:fe72:289e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38785 errors:0 dropped:30 overruns:0 frame:0 TX packets:33576 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25735943 (24.5 Mb) TX bytes:7966455 (7.5 Mb) Interrupt:20 Memory:e0300000-e0320000 I think, that eth0 should be suspended now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c1 --- Comment #1 from Marius Tomaschewski <mt@suse.com> 2012-05-25 09:48:25 UTC --- See bug 727771 comment 53 and 54 -- I think this is a dupplicate... please test systemd package from http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_12... (wait until the date there has been updated to May 23 at minimal, package is in rebuilding state atm), it should fix this issue. A "/etc/init.d/network stop -o" [no systemd redirection] stops it correctly, isn't it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c2 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |fcrozat@suse.com InfoProvider| |mfilka@suse.com --- Comment #2 from Marius Tomaschewski <mt@suse.com> 2012-05-25 09:56:01 UTC --- Does it work with the most recent systemd package referenced above? Most recent sysconfig package will appear soon at (install sysconfig package only!): http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/ope... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c3 --- Comment #3 from Michal Filka <mfilka@suse.com> 2012-05-25 11:04:52 UTC --- systemd-37-3.164.1.x86_64 no change -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c4 Michal Filka <mfilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mfilka@suse.com | --- Comment #4 from Michal Filka <mfilka@suse.com> 2012-05-25 11:05:30 UTC --- build 24-May-2012 19:47 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2012-05-25 11:15:43 UTC --- Michal, could you test Marius suggestion from comment 1 ? I also see: Active: failed since Fri, 25 May 2012 11:19:42 +0200; 1min 21s ago Process: 657 ExecStart=/etc/init.d/network start (code=exited, status=7/NOTRUNNING) so for systemd, network wasn't started properly, so calling systemctl stop network.service / rcnetwork stop won't anything.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c6 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mfilka@suse.com --- Comment #6 from Marius Tomaschewski <mt@suse.com> 2012-05-25 12:32:14 UTC --- Yes... network reports code 7 when a) NetworkManager is running but not configured or NetworkManager is configured but rcnetwork running (NETWORKMANAGER=yes/no in /etc/sysconfig/network/config). b) ifup returned some unusual code It would be required to reproduce how you exactly reached this state. Did you changed to NETWORKMANAGER=yes and tried to start network? And please attach /etc/sysconfig/network/ifcfg-eth0 and config or better a supportconfig (supportutils). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c7 --- Comment #7 from Michal Filka <mfilka@suse.com> 2012-05-25 12:59:20 UTC --- (In reply to comment #5)
Michal, could you test Marius suggestion from comment 1 ?
workaround (no systemd redirection) works fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c8 --- Comment #8 from Michal Filka <mfilka@suse.com> 2012-05-28 08:36:27 UTC --- (In reply to comment #6)
network reports code 7 when a) NetworkManager is running but not configured or NetworkManager is configured but rcnetwork running (NETWORKMANAGER=yes/no in /etc/sysconfig/network/config). b) ifup returned some unusual code
It would be required to reproduce how you exactly reached this state. Did you changed to NETWORKMANAGER=yes and tried to start network?
originally NETWORKMANAGER was set to "no". When I set NETWORKMANAGER to "yes" then it works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c9 --- Comment #9 from Michal Filka <mfilka@suse.com> 2012-05-28 08:38:58 UTC --- Created an attachment (id=492635) --> (http://bugzilla.novell.com/attachment.cgi?id=492635) ifcfg for eth0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c10 Michal Filka <mfilka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mfilka@suse.com | --- Comment #10 from Michal Filka <mfilka@suse.com> 2012-05-28 08:39:48 UTC --- Created an attachment (id=492636) --> (http://bugzilla.novell.com/attachment.cgi?id=492636) network config -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-24 21:00:08 CET --- This is an autogenerated message for OBS integration: This bug (764055) was mentioned in https://build.opensuse.org/request/show/149830 Factory / sysconfig -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-28 15:00:08 CET --- This is an autogenerated message for OBS integration: This bug (764055) was mentioned in https://build.opensuse.org/request/show/150166 Factory / sysconfig https://build.opensuse.org/request/show/150169 Factory / sysconfig -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-29 10:00:41 CET --- This is an autogenerated message for OBS integration: This bug (764055) was mentioned in https://build.opensuse.org/request/show/150265 Factory / NetworkManager -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764055 https://bugzilla.novell.com/show_bug.cgi?id=764055#c14 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #14 from Marius Tomaschewski <mt@suse.com> 2013-03-12 16:06:42 UTC --- A fix would require a similar switch logic changeset to yast2(-network) as done for 12.3 in bnc#798348 and this is IMO definitively too error prone and touches too many packages for a maintenance update. Instead of "set NETWORKAMANAGER=yes or no; rcnetwork restart" use: stop running network; set NETWORKAMANAGER=yes or no; start network as the stop has to be done for a different service than start to work under systemd. That is, it needs something like this: rcnetwork stop sed -i -e "s/NETWORKAMANAGER=.*/NETWORKAMANAGER='$yes_or_no'/g" \ /etc/sysconfig/network /bin/mountpoint -q /sys/fs/cgroup/systemd && \ systemctl --system daemon-reload rcnetwork start to be done by yast2/yast2-network. Note, that under systemd there is a NetworkManager.service file; under systemv both services are handled by /etc/init.d/network. => closing this as WONTFIX for 12.1 / 12.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com