RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1258652 - RFE: Add an option to kdump.conf to change the action taken after successfully saving a vmcore
Summary: RFE: Add an option to kdump.conf to change the action taken after successfull...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kexec-tools
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: kdump team
QA Contact: Qiao Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1295826 1296180 1313485
TreeView+ depends on / blocked
 
Reported: 2015-08-31 22:52 UTC by nyelle@redhat.com
Modified: 2020-06-11 12:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 01:20:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description nyelle@redhat.com 2015-08-31 22:52:25 UTC
Add an option to kdump.conf to change the action taken after successfully saving a vmcore file.  Currently the kdump.conf "default" directive allows the administrator to choose an action to take if kdump fails to save a vmcore.  If a vmcore is successfully saved there is no similar option and the system performs a reboot.  Customer requests a new kdump.conf directive to specify the action to take after a vmcore file is successfully saved.  Similar to the "default" directive it should allow reboot, halt, poweroff.  The current workaround is to use:

        "kdump_post /sbin/shutdown"   (or specify an admin-created script)

to power-off the system after saving a vmcore.

Comment 4 Dave Young 2016-04-19 03:28:07 UTC
Hi,

kdump_post is designed for such purpose, one can write a script to check the return value (the first argument) for dumping status.

We tend not to add new options to kdump.conf, could you use the workaround for the use case?

Thanks
Dave

Comment 5 Carsten Grohmann 2016-05-09 10:57:16 UTC
Hi Dave,

I'm answering your question because I've requested this change via HPE last year. 

I'm a Unix admin and my question is: Is kdump an application or a framework?

If it's a framework, you can drop most of existing features because you can handle all those steps in customer scripts and use "kdump_pre" resp. "kdump_post" to run these scripts.

If it's an application, you should implement an option to control the behaviour after vmcore has saved successfully.

I see kdump as an application. Thereby I ask you to implement this RFE.

Regards,
Carsten

Comment 6 Dave Young 2016-05-10 01:10:41 UTC
Hi, Carsten

Kdump contains several different parts including kernel and userspace tools, it  it can be regarded as an application, but we also allow user to specify their own scripts to handle issues we do not support by default. 

Kdump scripts take care of all kinds of things in 2nd kernel based on all kinds of different setup in 1st kernel, it is rather complicated, we would like less bugs, easier to maintain, and more reliable for one to collect vmcores so we need balance these things.

In this case I think let user to do it is a better choice because we have provided the kdump_post functionality.  The "default" action in /etc/kdump.conf is introduced for only vmcore saving failure cases, it has been there from the very beginning, adding another default action for different purpose seems not a good choice. Thus I would like user to do it instead of introduce the new option.


Thanks
Dave

Comment 7 Carsten Grohmann 2016-05-10 13:02:37 UTC
Hi Dave,

we use the suggested workaround already. Finally you are the application owner and you can decide about development direction.

Your argumentation within this topic is the direct opposite to systemd. There eliminates all shell scripts.

I'm the user and the simple script increased the complexity as well as additional dependencies of my kdump configuration. Thereby a simple configurable action for success would be a real be benefit. The most code for the new option is probably already written as code for the default option.

I still kindly ask to to implement this option. Additionally I'd suggest renaming of the "default" option to "onfailure". I always associate a default action with success, but never with a failure. Maybe the renaming is a option for a later release.

Regards,
Carsten

Comment 8 Dave Young 2016-05-11 02:38:28 UTC
Hi, Carsten

Thanks for your understanding.

I do not know if it is proper to compare with systemd, for your case I think
"kdump_post /sbin/shutdown" is simple enough without extra scripts needed?

I agree that your suggestion about "onfailure" and "default" sounds better then current name. Problem is "default" has been used for long time from the very beginning so that I'm afraid it is hard to change, it will break customer old configuration, they will still assume original meanings.


Thanks
Dave

Comment 9 Carsten Grohmann 2016-05-11 10:42:29 UTC
Hi David,

Thank you for the discussion. You may close this RFE.

Kind regards,
Carsten

Comment 10 Dave Young 2016-05-12 01:20:06 UTC
Hi, Carsten

Ok, thanks a lot. Let's keep it in mind, when there are strong reasons in the future we can reopen and discuss it again.

Dave


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