Bug 239788 - kdump (scp, NFS) fail if you don't set Default Gateway
kdump (scp, NFS) fail if you don't set Default Gateway
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kexec-tools (Show other bugs)
5.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Neil Horman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-11 08:00 EDT by masanari iida
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-05-11 08:38:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
serial console ouput of kdump without default gateway setting (3.20 KB, text/plain)
2007-05-11 08:06 EDT, masanari iida
no flags Details

  None (edit)
Description masanari iida 2007-05-11 08:00:42 EDT
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 08:06:34 EDT
Created attachment 154532 [details]
serial console ouput of kdump without default gateway setting
Comment 2 Neil Horman 2007-05-11 08:38:36 EDT
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. 

Note You need to log in before you can comment on or make changes to this bug.