Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2128209

Summary: ssh-async rex job fails with OpenSSL::SSL::SSLError
Product: Red Hat Satellite Reporter: Peter Ondrejka <pondrejk>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: aruzicka, pcreech
Target Milestone: 6.12.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:35:50 UTC 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:    
Bug Blocks: 2048547    

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