Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 239788

Summary: kdump (scp, NFS) fail if you don't set Default Gateway
Product: Red Hat Enterprise Linux 5 Reporter: masanari iida <masanari_iida>
Component: kexec-toolsAssignee: Neil Horman <nhorman>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 5.0   
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-05-11 12:38:36 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 Flags
serial console ouput of kdump without default gateway setting none

Description masanari iida 2007-05-11 12:00:42 UTC
Description of problem:
kdump (scp,NFS) fail if you don't set Default Gateway.

Version-Release number of selected component (if applicable):
kexec-tools-1.101-164.el5


How reproducible:
100%

Steps to Reproduce:
1. Configure kdump (scp or NFS) on your local LAN.
In this example, I use NFS.

2. Remove Gateway setting from both /etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-ethX

3. Test kdump.
   # echo c > /proc/sysrq-trigger
  
Actual results:
ifup failed to setup network, so the kdump(NFS) failed to mount
NFS share. Following lines are log from serial console.
Full log is attached in next comment.

(snip)
Creating block device ram6
Creating block device ram7
Creating block device ram8
Creating block device ram9
mapping eth0 to eth0
ifup: option with empty value "   gateway"
eth0 failed to come up
Saving to remote location 192.168.1.145:/var/crash
mount: RPC: Unable to send; errno = Network is unreachable
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.1.145:/var/crash on /mnt failed: Bad file descriptor
Out of memory: Killed process 1025 (exe).
Killed
umount: Couldn't umount /mnt: Invalid argument
Creating root device.
Out of memory: Killed process 1033 (msh).
(snip)

Expected results:
a) kdump (scp / NFS) should finish succesfully, even if the 
system doesn't have Default Gateway setting.


Additional info:

Comment 1 masanari iida 2007-05-11 12:06:34 UTC
Created attachment 154532 [details]
serial console ouput of kdump without default gateway setting

Comment 2 Neil Horman 2007-05-11 12:38:36 UTC
In short, don't do that.

Looking at your above description, I'm guessing that you have a step that you
omitted from your recreation:

1) Configure kdump (scp or NFS) on your local LAN.
2) Remove Gateway setting from both /etc/sysconfig/network and
   /etc/sysconfig/network-scripts/ifcfg-ethX
=>3) Issue service kdump [re]start
4) echo c> /proc/sysrq-trigger


If you configure kdump to use a dump target that requires network services to
function, and that in turn requires a correct network configuration (which kdump
queries at service start time).  If you break your network configuration, you
can't expect services that need that configuration to work properly, no more
than you would expect your network to come up if you had removed your router
configuration line and rebooted your system.

I'll add some logic to drop you to a shell prompt in the initramfs if ifup
doesn't succede, so as to avoid the cascade of failures that otherwise results,
but regardless of the resultant behavior, a broken configuration only results in
a non-functional service.  This isn't a bug.