[Bug 795861] New: netconfig running multiple times quickly
https://bugzilla.novell.com/show_bug.cgi?id=795861 https://bugzilla.novell.com/show_bug.cgi?id=795861#c0 Summary: netconfig running multiple times quickly Classification: openSUSE Product: openSUSE 12.2 Version: RC 2 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Scott.Simpson@computer.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11 I'm getting messages like Dec 23 10:56:35 madhatter netconfig: open lock for netconfig failed. Abort. in my messages file. I put the following debugging in /etc/sysconfig/network/scripts/functions.netconfig: function openLock() { test -z "$1" && return 1 PRGNAME=$1 PID=$$ PIDPATH="/var/run/$PRGNAME.pid" date >> /tmp/netconfig_debug echo "PRGNAME=$PRGNAME, PID=$PID, PIDPATH=$PIDPATH" >> /tmp/netconfig_debug if [ -e $PIDPATH ]; then # check if the process is still running OLDPID=`cat $PIDPATH` echo "OLDPID=$OLDPID" >> /tmp/netconfig_debug if [ ! -e "/proc/$OLDPID/cmdline" ]; then debug "pid does not exists; remove lock" # pid does not exists; remove lock rm $PIDPATH echo "Removing lock" >> /tmp/netconfig_debug else if grep "$PRGNAME" /proc/$OLDPID/cmdline >/dev/null 2>&1 ; then debug "process still running" echo "process still running" >> /tmp/netconfig_debug # process still running return 1; else debug "this pid is a different process; remove the lock" # this pid is a different process; remove the lock echo "pid is different process. Removing lock" >> /tmp/netconfig_debug rm $PIDPATH fi fi fi echo "lockfile created" >> /tmp/netconfig_debug echo -n "$PID" > $PIDPATH debug "lockfile created ($PIDPATH) for PID $PID" return 0 } and I get the following debug lines: Sun Dec 23 08:52:17 PST 2012 PRGNAME=netconfig, PID=25741, PIDPATH=/var/run/netconfig.pid lockfile created Sun Dec 23 08:52:17 PST 2012 PRGNAME=netconfig, PID=25737, PIDPATH=/var/run/netconfig.pid Sun Dec 23 08:52:17 PST 2012 PRGNAME=netconfig, PID=25745, PIDPATH=/var/run/netconfig.pid OLDPID=25741 OLDPID=25741 process still running process still running Sun Dec 23 08:52:22 PST 2012 Sun Dec 23 08:52:22 PST 2012 PRGNAME=netconfig, PID=25737, PIDPATH=/var/run/netconfig.pid lockfile created PRGNAME=netconfig, PID=25745, PIDPATH=/var/run/netconfig.pid OLDPID=25737 process still running Sun Dec 23 08:52:28 PST 2012 PRGNAME=netconfig, PID=25745, PIDPATH=/var/run/netconfig.pid lockfile created Notice how it is starting up a bunch of netconfig in parallel. Why is this happening? (I'm using NetworkManager for my interfaces, not ifup/ifdown). Reproducible: Always Steps to Reproduce: Don't know. What is spawning this? Actual Results: Dec 25 18:17:32 madhatter netconfig: open lock for netconfig failed. Abort. Dec 25 18:17:41 madhatter netconfig: last message repeated 36 times Dec 25 18:17:41 madhatter netconfig: cannot remove the lockfile. PIDs do not match. Dec 25 18:17:42 madhatter netconfig: open lock for netconfig failed. Abort. Dec 25 18:18:22 madhatter netconfig: last message repeated 35 times Dec 25 18:20:53 madhatter netconfig: open lock for netconfig failed. Abort. Dec 25 18:22:22 madhatter netconfig: last message repeated 3 times Dec 25 18:24:48 madhatter netconfig: open lock for netconfig failed. Abort. Dec 25 18:25:52 madhatter netconfig: last message repeated 3 times Dec 25 18:27:23 madhatter netconfig: open lock for netconfig failed. Abort. Dec 25 18:28:23 madhatter netconfig: last message repeated 7 times -- 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=795861
https://bugzilla.novell.com/show_bug.cgi?id=795861#c
Jiaying ren
https://bugzilla.novell.com/show_bug.cgi?id=795861
https://bugzilla.novell.com/show_bug.cgi?id=795861#c1
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=795861
https://bugzilla.novell.com/show_bug.cgi?id=795861#c2
Scott Simpson
https://bugzilla.novell.com/show_bug.cgi?id=795861
https://bugzilla.novell.com/show_bug.cgi?id=795861#c3
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=795861
https://bugzilla.novell.com/show_bug.cgi?id=795861#c4
--- Comment #4 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=795861
https://bugzilla.novell.com/show_bug.cgi?id=795861#c5
Marius Tomaschewski
participants (1)
-
bugzilla_noreply@novell.com