Bug 239788 - kdump (scp, NFS) fail if you don't set Default Gateway
Summary: kdump (scp, NFS) fail if you don't set Default Gateway
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kexec-tools   
(Show other bugs)
Version: 5.0
Hardware: All Linux
Target Milestone: ---
: ---
Assignee: Neil Horman
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-05-11 12:00 UTC by masanari iida
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-11 12:38:36 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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 12:06 UTC, masanari iida
no flags Details

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):

How reproducible:

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

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.

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
mount: RPC: Unable to send; errno = Network is unreachable
mount: nfsmount failed: Bad file descriptor
mount: Mounting on /mnt failed: Bad file descriptor
Out of memory: Killed process 1025 (exe).
umount: Couldn't umount /mnt: Invalid argument
Creating root device.
Out of memory: Killed process 1033 (msh).

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
=>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.