+++ This bug was initially created as a clone of Bug #1536327 +++
Description of problem:
Kdump can be located in Local/nfs/ssh with cockpit WebUI, local file-system is the default. If a user wants to use NFS/SSH for kdump, the location should be changed to "Use the setting in /etc/kdump.conf" with cockpit UI. But now apply changing failed, location still points to "locally in /var/crash", and vmcore files are still created in /etc/crash of localhost.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Clean install redhat-virtualization-host-4.2-20180115.0 with ks
2. Login to cockpit with root account
3. Go to Kernel Dump, open Crash dump location window
4. Apply the location to "Use the setting in /etc/kdump.conf" after setting nfs/ssh kdump in /etc/kdump.conf file
5. Check the setting in cockpit UI
6. Click "Test Configuration", then "Crash system"
After step 5, changing kdump location to"Use the setting in /etc/kdump.conf" failed, location still points to "locally in /var/crash".
After step 6, vmcore files are created in /etc/crash of localhost.
After step 5, the location should point to nfs/ssh address.
After step 6, vmcore files should be created in remote nfs/ssh server.
--- Additional comment from Wei Wang on 2018-01-19 02:20 EST ---
--- Additional comment from Red Hat Bugzilla Rules Engine on 2018-01-19 08:19:45 EST ---
Since this bug report was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
--- Additional comment from Martin Pitt on 2018-10-17 03:59:22 EDT ---
Confirmed, this also affects RHEL 8.
--- Additional comment from Martin Pitt on 2018-10-17 04:10:29 EDT ---
What does work is to edit /etc/kdump.conf, disable "path" and enable "nfs", then the Cockpit display immediately changes to "Remote over NFS". Then it's also possible to change the NFS location in the Cockpit UI.
But this already fails again when enabling "ssh" or "ext4" in kdump.conf, then the UI immediately switches back to "locally in /var/crash".
Also, changing the path in kdump.conf to "path /var/crash2" or something else isn't properly reflected in the UI. This only works in the Cockpit → config file direction.
--- Additional comment from Martin Pitt on 2018-10-17 04:26:29 EDT ---
I created https://projects.engineering.redhat.com/browse/COCKPIT-289 to revamp the design of this.
--- Additional comment from Martin Pitt on 2018-11-20 09:22:16 EST ---
This got fixed in https://github.com/cockpit-project/cockpit/pull/10513