Bug 2071529

Summary: Please improve error message on non-existing NFS target directories: skip local temp path
Product: [Fedora] Fedora Reporter: Martin Pitt <mpitt>
Component: kexec-toolsAssignee: Lichen Liu <lichliu>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 35CC: bhe, coxu, jieli, ruyang, ryncsn, xiawu
Target Milestone: ---Flags: fedora-admin-xmlrpc: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-30 09:00:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Pitt 2022-04-04 06:32:45 UTC
Description of problem: This is a spin-off of cockpit bug 2062297. When kdump is configured with some NFS location, like

  nfs 10.111.113.2:/srv/kdump
  path dumps

and the remote directory does not exist on the server (i.e. /srv/kdump/ does not have a "dumps" directory), kdump.service fails with a confusing error message.


Version-Release number of selected component (if applicable):

kexec-tools-2.0.22-7.fc35.x86_64

How reproducible: Always


Steps to Reproduce:
1. Set up NFS location for non-existing directory, see above.
2. Start kdump.service

Actual results: kdump.service fails with error:

    kdumpctl[2172]: kdump: Dump path "/tmp/mkdumprd.ftWhOF/target/dumps" does not exist in dump target "10.111.113.2:/srv/kdump"

This is confusing -- Of course /tmp/mkdumprd.ftWhOF/ does not exist on the server. That's the local temporary mount point.

Expected results: Skip the local mount prefix. Should be like this:

    kdumpctl[2172]: kdump: Dump path "dumps" does not exist in dump target "10.111.113.2:/srv/kdump"

Comment 1 Ben Cotton 2022-11-29 18:41:51 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Martin Pitt 2022-11-30 09:00:01 UTC
This looks better in Fedora 37:

kdumpctl[3583]: mount.nfs: mounting 10.111.113.2:/srv/kdump2 failed, reason given by server: No such file or directory
kdumpctl[3505]: kdump: Failed to mount 10.111.113.2:/srv/kdump2 for kdump preflight check. Please make sure nfs-utils has been installed.

So, closing. Thanks!