Description of problem: The capsule does a ProxyPass up to the Satellite to pass through API calls. By default, the ProxyPass will hold a connection open and re-use it instead of making a new connection each time. However, by default, if the connection is interrupted, ProxyPass will wait 60 seconds before trying a server again since it assumes there are multiple workers in a pool and not just one Satellite. During this time, clients will get a "502 proxy error" from the capsule. The ProxyPass up to the Satellite should likely have the options "retry=0 disablereuse=On". This will make a new connection each time. Version-Release number of selected component (if applicable): 6.4 How reproducible: extremely difficult to repro
Thanks for the extensive analysis, looks sane to add this. However I think this is more Installer component than Capsule which is meant to be for Smart-Proxy (Ruby) codebase rather than configuration things. Switching.
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in one month's time. If you have any concerns about this, please contact your Red Hat Account team. Thank you.
Created redmine issue https://projects.theforeman.org/issues/32161 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32161 has been resolved.
Verified on 6.10 Snap9 Verification points 1- Installed satellite and capsule with 6.10 Snap9 2- Prepared one RHEL7.9 client. 3- Paused the httpd client on the sat (using "systemctl stop httpd") 4- Registered the capsule with the client and it gets failed without any wait time with an "internal server error". [root@xyz ~]# date;curl -sS --insecure 'https://xyz:9090/register?activation_keys=ak_7&lifecycle_environment_id=2&location_id=2&operatingsystem_id=1&organization_id=1' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MjY2Nzk3NjgsImp0aSI6Ijk2ZDY2OTNmNWU0N2JjZTY1ZGVmZWI1NzJjYzk1NDAxZDlkNTBjZTc4MWQwNzA1MjhlYzA5NzI2NDMxYzk1YjIiLCJleHAiOjE2MjY2OTQxNjgsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.HEYGK5R6hkBZ-HvW5Fre7m3mEcW6ui5YgvJt9fEOBCE' | bash;date Mon Jul 19 03:29:50 EDT 2021 Internal Server Error Mon Jul 19 03:29:50 EDT 2021
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 (Moderate: Satellite 6.10 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-2021:4702