Project

General

Profile

Actions

Bug #22245

closed

smart_proxy_openscap does not rescue Errno::ECONNREFUSED

Added by Ondřej Pražák almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:
We do not rescue from Errno::ECONNREFUSED exception on proxy, so when proxy tries to upload Arf report to server, connection is refused and exception is raised, which is not handled gracefully.

How reproducible:
always

Steps to Reproduce:
1. Stop satellite server: systemctl stop httpd
2. generate a report by running foreman_scap_client manually, proxy should save it to spool since server is not available
3. Observe the error

Actual results:
Error from proxy gets printed as a response to client, see the attachment

Expected results:
No error gets printed on stdout, proxy saves the report to spool


Files

err.html err.html 227 KB Ondřej Pražák, 01/11/2018 10:17 AM
Actions

Also available in: Atom PDF