Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1596636 - Callback from smart proxy to Foreman fails with error 403: "No SSL cert with CN supplied"
Summary: Callback from smart proxy to Foreman fails with error 403: "No SSL cert with ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Remote Execution
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-29 11:10 UTC by Radovan Drazny
Modified: 2019-03-27 03:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Radovan Drazny 2018-06-29 11:10:19 UTC
Description of problem:
When running a large number of remote execution tasks, a callback from smart proxy occasionally fails with the following error: 

2018-06-28T13:59:10 [I|app|f60e2] Processing by ForemanTasks::Api::TasksController#callback as */*
2018-06-28T13:59:10 [I|app|f60e2]   Parameters: {"callback"=>{"task_id"=>"709cffa0-74e5-4347-8f72-3b1fb3f77828", "step_id"=>3}, "data"=>{"result"=>[{"output_type"=>"stdout", "output"=>"Thu Jun 28 17:59:09 UTC 2018\r\n", "timestamp"=>1530208750.3636398}], "runner_id"=>"5a586668-6707-4f4f-8c5f-5cafd5c853ac", "exit_status"=>0}, "task"=>{}}
2018-06-28T13:59:10 [W|app|f60e2] No SSL cert with CN supplied - request from 172.25.1.1, 
2018-06-28T13:59:10 [I|app|f60e2]   Rendering api/v2/errors/access_denied.json.rabl within api/v2/layouts/error_layout
2018-06-28T13:59:10 [I|app|f60e2]   Rendered api/v2/errors/access_denied.json.rabl within api/v2/layouts/error_layout (3.3ms)
2018-06-28T13:59:10 [I|app|f60e2] Filter chain halted as #<Proc:0x00000000088e2170@/usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb:14> rendered or redirected
2018-06-28T13:59:10 [I|app|f60e2] Completed 403 Forbidden in 61ms (Views: 31.5ms | ActiveRecord: 10.6ms)

Version-Release number of selected component (if applicable):
Satellite 6.4 Snap 9

How reproducible:
rarely

Steps to Reproduce:
Run many ReX tasks in parallel. My scenario was running simple "date" command on 200 docker containers. 

Actual results:
"No SSL cert with CN supplied", task never marked as successful, even if it was successfully performed on a client.

Expected results:
No error, task is marked as successful.

Comment 1 Brad Buckingham 2018-06-29 15:09:25 UTC
Is this scenario with custom certs or the default certs?

Comment 2 Ivan Necas 2018-06-29 17:07:02 UTC
Additional question: was this one capsule setup, or more of them was involved in the process?

Comment 3 Radovan Drazny 2018-07-02 12:34:32 UTC
Standard install, default certs, just one satellite server and its integrated smartproxy.


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