Bug 2071529 - Please improve error message on non-existing NFS target directories: skip local temp path
Summary: Please improve error message on non-existing NFS target directories: skip loc...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kexec-tools
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Lichen Liu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-04 06:32 UTC by Martin Pitt
Modified: 2022-11-30 09:00 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-11-30 09:00:01 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-421 0 None None None 2022-04-04 06:46:19 UTC

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!


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