Bug 2128209 - ssh-async rex job fails with OpenSSL::SSL::SSLError
Summary: ssh-async rex job fails with OpenSSL::SSL::SSLError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.12.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.12.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks: 2048547
TreeView+ depends on / blocked
 
Reported: 2022-09-20 08:30 UTC by Peter Ondrejka
Modified: 2022-11-16 13:36 UTC (History)
2 users (show)

Fixed In Version: smart_proxy_dynflow-0.8.2, smart_proxy_remote_execution_ssh-0.7.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:35:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35540 0 Normal Ready For Testing smart_proxy_dynflow does not construct callaback url properly if the launcher-based api is used 2022-09-20 09:23:15 UTC
Foreman Issue Tracker 35542 0 Normal Ready For Testing async ssh broken in smart_proxy_remote_execution_ssh-0.7.z 2022-09-20 09:23:15 UTC
Red Hat Issue Tracker SAT-13046 0 None None None 2022-09-21 00:24:13 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:36:00 UTC

Description Peter Ondrejka 2022-09-20 08:30:07 UTC
Description of problem:

Follow-up from the discussion in https://bugzilla.redhat.com/show_bug.cgi?id=2124850

"satellite-installer --foreman-proxy-plugin-remote-execution-script-mode=ssh-async" proceeds successfully, but running the actual job against a host didn't succeed -- the job left hanging, /var/log/foreman-proxy/proxy.log showing:

2022-09-19T11:06:32  [E] <OpenSSL::SSL::SSLError> SSL_accept returned=1 errno=0 state=error: http request
	/usr/share/ruby/webrick/server.rb:299:in `accept'
	/usr/share/ruby/webrick/server.rb:299:in `block (2 levels) in start_thread'
	/usr/share/ruby/webrick/utils.rb:263:in `timeout'
	/usr/share/ruby/webrick/server.rb:297:in `block in start_thread'
	/usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'


Version-Release number of selected component (if applicable):
6.12 snap 11

How reproducible:
always

Steps to Reproduce:
1. run satellite-installer --foreman-proxy-plugin-remote-execution-script-mode=ssh-async on the satellite/proxy
2. register host and run script type job against it

Actual results:
Job hanging

Expected results:
Successful execution

Additional info:
Reproducible also on 6.11

Comment 1 Adam Ruzicka 2022-09-20 09:23:15 UTC
This area changed a lot between 6.11, 6.12 and latest upstream so the patches for each of the releases will be slightly different.

6.12 will need:
- https://github.com/theforeman/smart_proxy_dynflow/pull/114
- https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/95

6.11 will need:
- https://github.com/theforeman/smart_proxy_dynflow/pull/114
- https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/94

Comment 2 Bryan Kearney 2022-09-26 16:04:36 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35540 has been resolved.

Comment 4 Peter Ondrejka 2022-10-03 12:57:16 UTC
Verified on satellite 6.12 snap 13 using automation, async-ssh rex job now runs as expected

Comment 8 errata-xmlrpc 2022-11-16 13:35:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506


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