Project

General

Profile

Actions

Bug #34364

closed

Error reporting with

Added by Leos Stejskal almost 3 years ago. Updated almost 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Issue
When REX job fails because of unauthorized ssh key, the error output of the template invocation is only this:

1:
Exit status: EXCEPTION

For the actual error users have to search in the proxy log:

2022-02-01T05:37:25  [E] error while initializing command RuntimeError Unable to create directory on remote system /var/tmp/foreman-ssh-cmd-a808e322-ee12-43b1-b163-5cc5cbed5ad3: exit code: 255
 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

The error from the proxy log should be in the template invocation detail so users don't have to dig it from the proxy log.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman Remote Execution - Bug #34363: Improve ssh error reportingClosedAdam RuzickaActions
Actions

Also available in: Atom PDF