Bug 2232392 - kdump system role fails if kdump_ssh_user doesn't have a .ssh/authorized_keys file in home directory [NEEDINFO]
Summary: kdump system role fails if kdump_ssh_user doesn't have a .ssh/authorized_keys...
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.9
Assignee: Rich Megginson
QA Contact: CS System Management SST QE
URL:
Whiteboard: role:kdump
Depends On: 2232231
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-16 16:04 UTC by Rich Megginson
Modified: 2023-08-16 17:41 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The evaluation of `__kdump_authorized_keys is defined` was happening after the evaluation of `(__kdump_authorized_keys.content ...)`. I guess the parentheses cause the evaluation to happen first, regardless of the `if` conditional. Consequence: If authorized_keys were not found, the role would attempt to evaluate the undefined `__kdump_authorized_keys` and fail. Fix: Use the `defined` filter `d` with `__kdump_authorized_keys` to define the value as an empty line, and omit the `if` clause. Result: The role does not fail if authorized_keys are missing. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Clone Of: 2232231
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:
rmeggins: needinfo? (djez)
rmeggins: needinfo? (jharuda)
rmeggins: needinfo? (vdanek)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-165931 0 None None None 2023-08-16 17:41:43 UTC


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