Project

General

Profile

Actions

Bug #34364

closed

Error reporting with

Added by Leos Stejskal about 2 years ago. Updated about 2 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 #1

Updated by Adam Ruzicka about 2 years ago

  • Is duplicate of Bug #34363: Improve ssh error reporting added
Actions #2

Updated by Adam Ruzicka about 2 years ago

  • Status changed from New to Duplicate
  • Target version deleted (1539)
Actions

Also available in: Atom PDF