Bugzilla – Bug 719214
ifup switch leaves NetworkManager running
Last modified: 2011-10-19 12:35:58 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
Created attachment 452281 [details] restart NM from network initscript this patch ensure NM is restarted properly when switching network handling, under systemd
Marius, could you integrate this patch in sysconfig and push to Factory ?
/etc/rc.status is in aaa_base and Werner added the redirections... forwarding to him.
Created attachment 452395 [details] correct patch for network script sorry, I attached the wrong patch :(
Ah... OK :-)
Created attachment 452559 [details] Patch on top -- handle the localfs flag correctly too Seems to work fine ... Does it work for you?
Created attachment 452560 [details] Complete /etc/init.d/network script
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 ?
(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 on attachment 452560 [details] Complete /etc/init.d/network script A buggy version. Use http://gitorious.org/opensuse/sysconfig/blobs/master/scripts/network instead.
tested the version from gitorious, it works fine. Please push a new sysconfig to Factory. Thanks for your help.
This is an autogenerated message for OBS integration: This bug (719214) was mentioned in https://build.opensuse.org/request/show/84820 Factory / sysconfig
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
fixed in rq 84865. 84863 and 84864 happened due to an error reported by osc...
*** Bug 724151 has been marked as a duplicate of this bug. ***