Bug 807521

Summary: /usr/bin/kdumpctl didn't respect nfs-server dump option in /etc/kdump.conf
Product: [Fedora] Fedora Reporter: WANG Chao <chaowang>
Component: kexec-toolsAssignee: Baoquan He <bhe>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: ccui, chaowang, nhorman, qcai, ruyang, xiyou.wangcong
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 807522 (view as bug list) Environment:
Last Closed: 2013-02-25 09:26:16 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: 807522    

Description WANG Chao 2012-03-28 03:32:02 UTC
Description of problem:
When configure kdump to dump vmcore to a nfs server, we append such a line like `net nfs.server:/mnt/testarea/nfs` to /etc/kdump.conf.
And run `kdumpctl restart`, this nfs dump config is treated as ssh dump.

In /usr/bin/kdumpctl line 201:
local SSH_TARGET=`echo -n $DUMP_TARGET|sed '/.*@/p'`

sed should be called with option -n to remain slience when DUMP_TARGET is a nfs server like 'nfs.server:/mnt/testarea/nfs'.
Then nfs function check_ssh_config will return 1 to not to config nfs like a ssh dump

Version-Release number of selected component (if applicable):
kexec-tools-2.0.3-41.fc17.x86_64

How reproducible:
100%

Steps to Reproduce:
1.sed -i 's;\(/bin/sh\);\1 -x;' /usr/bin/kdumpctl
2.echo nfs.server:/mnt/testarea/nfs > /etc/kdump.conf
3.kdumpctl restart
  
Actual results:
kdumpctl didn't respect nfs dump option in /etc/kdump.conf

Expected results:
nfs is treated its own way.

Additional info:

Comment 1 Dave Young 2012-03-28 05:14:14 UTC
Thanks for the good catch
Chao, Can you send out a patch to kdump list?

Comment 2 WANG Chao 2012-03-28 08:29:07 UTC
Post

Comment 3 Fedora Update System 2012-03-30 03:55:37 UTC
kexec-tools-2.0.3-42.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/kexec-tools-2.0.3-42.fc17

Comment 4 Fedora Update System 2012-03-30 17:58:44 UTC
Package kexec-tools-2.0.3-42.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kexec-tools-2.0.3-42.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4916/kexec-tools-2.0.3-42.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-04-11 11:44:35 UTC
kexec-tools-2.0.3-43.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/kexec-tools-2.0.3-43.fc17

Comment 6 Fedora Admin XMLRPC Client 2012-04-16 06:13:03 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2013-02-25 08:06:08 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.