Bug 719214

Summary: ifup switch leaves NetworkManager running
Product: [openSUSE] openSUSE 12.1 Reporter: Bernhard Wiedemann <bwiedemann>
Component: NetworkAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mt, ralf, ro
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: System Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 696902    
Attachments: restart NM from network initscript
correct patch for network script
Patch on top -- handle the localfs flag correctly too
Complete /etc/init.d/network script

Description Bernhard Wiedemann 2011-09-20 14:33:46 UTC
since Factory Build0270 when systemd was made the default, openQA LiveCD tests showed failing network

Steps To Reproduce:
1. qemu-kvm -cdrom openSUSE-KDE-LiveCD-x86_64-Build0285-Media.iso -m 800
2. let the VM boot up and get a shell
3. run yast2 lan
4. switch to traditional ifup mode
5. change hostname to linuxx
6. save
7. cat /etc/resolv.conf ; ps ax|grep NetworkManager

Actual Results:
NetworkManager is still running
resolv.conf does not have any nameserver entries

Reproducible: Always

Example failing result:
http://openqa.opensuse.org/viewimg/opensuse/testresults/openSUSE-KDE-LiveCD-x86_64-Build0270-live/zypper_in-1.png
Comment 1 Frederic Crozat 2011-09-21 16:14:24 UTC
Created attachment 452281 [details]
restart NM from network initscript

this patch ensure NM is restarted properly when switching network handling, under systemd
Comment 2 Frederic Crozat 2011-09-21 16:15:16 UTC
Marius, could you integrate this patch in sysconfig and push to Factory ?
Comment 3 Marius Tomaschewski 2011-09-21 22:03:04 UTC
/etc/rc.status is in aaa_base and Werner added the redirections...
forwarding to him.
Comment 4 Frederic Crozat 2011-09-22 07:38:57 UTC
Created attachment 452395 [details]
correct patch for network script

sorry, I attached the wrong patch :(
Comment 5 Marius Tomaschewski 2011-09-22 10:50:46 UTC
Ah... OK :-)
Comment 6 Marius Tomaschewski 2011-09-22 16:14:38 UTC
Created attachment 452559 [details]
Patch on top -- handle the localfs flag correctly too

Seems to work fine ... Does it work for you?
Comment 7 Marius Tomaschewski 2011-09-22 16:15:12 UTC
Created attachment 452560 [details]
Complete /etc/init.d/network script
Comment 8 Frederic Crozat 2011-09-22 17:04:01 UTC
hmm, from config "netconfig" to "NM", if I run systemctl reload network.service (or cd /etc/init.d ; ./network reload), eth0 is not being "released" because it is "serves root filesystem", despite /usr being part of / and not using nfs for /usr ..

is it wanted ?
Comment 9 Marius Tomaschewski 2011-09-22 19:12:43 UTC
(In reply to comment #8)
> hmm, from config "netconfig" to "NM", if I run systemctl reload network.service
> (or cd /etc/init.d ; ./network reload), eth0 is not being "released" because it
> is "serves root filesystem", despite /usr being part of / and not using nfs for
> /usr ..
> 
> is it wanted ?

Yes, it is essential for all FCoE and remote /-fs setups. In STARTMODE=nfsroot
you can't stop any interface or remove IPs because you'll lose connection to
the /-fs completely.

There were a bug 677251 in yast2-network -- it configured every interface with
STARTMODE=nfsroot.
You may fix to STARTMODE=auto in all ifcfg files manually (or with fixed yast2)
when you're not on remote /-fs.

BTW: I've reverted to use ./$0 again, that I broke in my last move commit,
     see: http://gitorious.org/opensuse/sysconfig/commit/21c4b70c
Comment 10 Marius Tomaschewski 2011-09-22 19:13:34 UTC
Comment on attachment 452560 [details]
Complete /etc/init.d/network script

A buggy version. Use
 http://gitorious.org/opensuse/sysconfig/blobs/master/scripts/network
instead.
Comment 11 Frederic Crozat 2011-09-23 14:08:21 UTC
tested the version from gitorious, it works fine.

Please push a new sysconfig to Factory.

Thanks for your help.
Comment 12 Bernhard Wiedemann 2011-09-26 11:00:20 UTC
This is an autogenerated message for OBS integration:
This bug (719214) was mentioned in
https://build.opensuse.org/request/show/84820 Factory / sysconfig
Comment 13 Bernhard Wiedemann 2011-09-26 13:00:18 UTC
This is an autogenerated message for OBS integration:
This bug (719214) was mentioned in
https://build.opensuse.org/request/show/84863 Factory / sysconfig
https://build.opensuse.org/request/show/84864 Factory / sysconfig
https://build.opensuse.org/request/show/84865 Factory / sysconfig
Comment 14 Marius Tomaschewski 2011-09-26 13:01:52 UTC
fixed in rq 84865.
84863 and 84864 happened due to an error reported by osc...
Comment 15 Marius Tomaschewski 2011-10-19 12:35:58 UTC
*** Bug 724151 has been marked as a duplicate of this bug. ***