Bug 202847

Summary: Client initscript doesn't work for netconsole
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: netdumpAssignee: Neil Horman <nhorman>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rcoker, 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: 2006-10-02 19:13:56 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:
Bug Depends On:    
Bug Blocks: 150224    
Attachments:
Description Flags
initscript fixup
none
patch that makes it start and work for me none

Description Bill Nottingham 2006-08-16 19:01:22 UTC
Description of problem:

Intial problems found:
1) [ "mac_ip" .. on line 130 ... shouldn't that be [ "$mac_ip" ..
2) still doesn't resolve the address/arp right
3) when I hardcode it in the initscript:
initializing netconsole: netconsole: Unknown parameter 'netlog'

Version-Release number of selected component (if applicable):

netdump-0.7.16-5

Comment 1 Neil Horman 2006-10-02 18:10:50 UTC
the mac_ip line should definately have a $ in front of it, and there also needs
to be an extra equals sign.  Thats fixed in release -6.  As for your other
problems, those sounds like they might be config related.  Please give the
attached patch a try and see if it fixes your problem.  If not, please reply
with your netdump setup, as well as a details description of your network
topology (including mac and ip addresses) between your client and server. 

Thank you!

Comment 2 Neil Horman 2006-10-02 18:12:05 UTC
Created attachment 137580 [details]
initscript fixup

Comment 3 Bill Nottingham 2006-10-02 18:48:18 UTC
(Aside from this, the fact is that most of the netdump package is obsolete. :) )

[root@apone ~]# grep -v "^#" /etc/sysconfig/netdump
NETLOGADDR=nostromo.devel.redhat.com
NETLOGPORT=6666
[root@apone ~]# service netdump start
netdump: cannot arp  on eth0
inicializuji netconsole FATAL: Error inserting netconsole
(/lib/modules/2.6.18-1.2708.fc6/kernel/drivers/net/netconsole.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
                                                           [SELHALO]

(ignore the czech)

So, looking some more:
- the parameter to the kernel is netconsole; the script has netlog
- the traceroute awk line is:

    trc_output="$(traceroute -i $DEV -n -m 1 $host_ip 2> /dev/null)"
    if [ $? -eq 0 ]; then
        trc_output="$(echo $trc_output | grep '^1 ' | awk '{print $2}')"

except that the '1' in the traceroute output has a space preceeding it.
Oh, and the whole sequence is probably better replaced with something like:
ip -o route get to $host_ip dev $DEV | awk '{ print $1 }' :)

Patch attached.


Comment 4 Bill Nottingham 2006-10-02 18:50:58 UTC
Created attachment 137585 [details]
patch that makes it start and work for me

Comment 5 Neil Horman 2006-10-02 19:13:56 UTC
bill makes a good point in that FC6 will be using kdump moving forward, but I'll
check this in just to make sure we have the fix in place should we need it.

Comment 6 Neil Horman 2007-03-23 13:39:08 UTC
*** Bug 174431 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2007-03-23 22:18:06 UTC
netdump-0.7.16-13 has been pushed for fc6, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.