Actions
Bug #22245
closedsmart_proxy_openscap does not rescue Errno::ECONNREFUSED
Difficulty:
Triaged:
No
Bugzilla link:
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
Updated by Ondřej Pražák almost 7 years ago
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/smart_proxy_openscap/pull/58 added
Updated by Marek Hulán almost 7 years ago
- Translation missing: en.field_release set to 341
Updated by Ondřej Pražák almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset smart_proxy_openscap|2117afd36542c8db839668864ead8955f6031268.
Actions