Bug 390271
Summary: | endless loop in ifdown-eth, OS freeze | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stas <stas_k_spam> | ||||||
Component: | initscripts | Assignee: | Bill Nottingham <notting> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | rawhide | CC: | mglantz, rvokal | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-11-26 18:39:52 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Stas
2007-11-19 12:51:16 UTC
Created attachment 263461 [details]
proposed patch to avoid endless loop
Steps to Reproduce on Fedora Core 8 Live CD: 1. Use computer with 2 ethernet cards, both up 2. Swap HWADDR values between ifcfg-eth0 and ifcfg-eth1 3. Run "/etc/init.d/network stop" 4. See how it never ends Created attachment 266091 [details]
simpler patch
Here's what I'm proposing - I'm trying to think of a case where you'd want to
continue when the device names don't match, and I can't think of one.
This patch works. And I agree, it's much better to bail out in case of inconsistency instead of trying to guess which interface user was willing to shut down. Thank you. Added in CVS, will be in rawhide. May make a F8 update. BTW, that backquote in the patch seems to break things. It's typo, I guess. I didn't notice that before because I was applying your patch using cut-n-paste. I don't even test it now when I see it because patch adds odd number of backquotes. Whoops, thanks. Now it hangs when MAC address is wrong (and NEWCONFIG is empty because of that, and grep takes 1 argument and waits for input on stdin). It can be fixed merely by adding [ -n "${NEWCONFIG}" ] && right before eval $(LANG=C fgrep "DEVICE=" $NEWCONFIG) Something similar added in git. *** Bug 669728 has been marked as a duplicate of this bug. *** |