Bug 902463
Summary: | Unable to stop network service | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | GV <rhel> |
Component: | initscripts | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | iarlyy, jonathan, lnykryn, notting, plautrba, rhel, rvokal, vpavlin |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-26 02:45:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
GV
2013-01-21 18:06:10 UTC
I think I found the problem. There is no DEVICE="eth0" in ifcfg-eth0. This file was generated by the F18 installer. :-( /etc/init.d/network need this: for i in $vpninterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do (. ./ifcfg-$i if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi ..... By pure chance the /etc/init.d/network script works with only one interface because $DEVICE on line 197 (first for) remain set (second for, line 228). Once you add a second interface eth1 (with ONBOOT=no) $DEVICE will become eth1 - which is not started - and eth0 remain up. Hi, you are right - the DEVICE variable should be cleared in every iteration of second cycle. patch commited to upstream -> http://git.fedorahosted.org/cgit/initscripts.git/commit/?h=F18-branch&id=c43e29d76eec6eac857c8774e7fd0fa0a524444f -> post Will be available with next version of initscripts. How about to print/log a message when DEVICE does not exist in ifcfg-XXXX? I don't think it is necessary - variable DEVICE is resolved from ifcfg script name: if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi The only proble there was that in $DEVICE remained old value so that the expression DEVICE="$i"; was not applied. You are right. Thank you. initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2013-1590/initscripts-9.42.2-1.fc18,systemd-197-1.fc18.2 Package initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing initscripts-9.42.2-1.fc18 systemd-197-1.fc18.2' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1590/initscripts-9.42.2-1.fc18,systemd-197-1.fc18.2 then log in and leave karma (feedback). initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |