Bug 2232392

Summary: kdump system role fails if kdump_ssh_user doesn't have a .ssh/authorized_keys file in home directory
Product: Red Hat Enterprise Linux 8 Reporter: Rich Megginson <rmeggins>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: POST --- QA Contact: CS System Management SST QE <rhel-cs-system-management-subsystem-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.9CC: briasmit, djez, jharuda, rhel-cs-system-management-subsystem-qe, spetrosi, vdanek
Target Milestone: rcKeywords: Triaged
Target Release: 8.9Flags: rmeggins: needinfo? (djez)
rmeggins: needinfo? (jharuda)
rmeggins: needinfo? (vdanek)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:kdump
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>
Story Points: ---
Clone Of: 2232231 Environment:
Last Closed: 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:
Bug Depends On: 2232231    
Bug Blocks: