Project

General

Profile

Bug #34363

Improve ssh error reporting

Added by Adam Ruzicka 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Smart Proxy - SSH
Difficulty:
Triaged:
No
Bugzilla link:

Description

The way we currently report errors is slightly unfortunate, for example if authentication fails then the user is presented with

Error initializing command: RuntimeError - Unable to create directory on remote system /var/tmp/foreman-ssh-cmd-d6b0bd45-11cb-4cfa-8e76-721548781759: exit code: 255
 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Exit status: EXCEPTION

The first line hints at permissions on the remote system, the second line too unless the user knows what publickey and friends mean.


Related issues

Has duplicate Foreman Remote Execution - Bug #34364: Error reporting with Duplicate

Associated revisions

Revision a2e28ef4 (diff)
Added by Adam Ruzicka 3 months ago

Fixes #34363 - Be more explicit about errors when establishing conn

Revision 7e132f02 (diff)
Added by Adam Ruzicka 3 months ago

Fixes #34363 - Implement basic preflight checks

Checks:
- executing a remote script to check for noexec mounts
- executing a remote script to check if we can change to effective user

Also slightly refactors error handling

Revision 3d83435d (diff)
Added by Adam Ruzicka 3 months ago

Fixes #34363 - s/assert/ensure/g

+ making the error messages consistent

History

#1 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/72 added

#2 Updated by Adam Ruzicka 5 months ago

  • Bugzilla link set to 2051648

#3 Updated by Adam Ruzicka 4 months ago

  • Has duplicate Bug #34364: Error reporting with added

#4 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases smart_proxy_remote_execution_ssh-0.5.3 added

#5 Updated by Adam Ruzicka 3 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Adam Ruzicka 2 months ago

  • Fixed in Releases smart_proxy_remote_execution_ssh-0.6.0 added
  • Fixed in Releases deleted (smart_proxy_remote_execution_ssh-0.5.3)

Also available in: Atom PDF