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 #1

Updated by Ondřej Pražák almost 7 years ago

  • File err.html err.html added
  • Subject changed from smart_proxy_openscap does not rescue Errno::ECONNREFUSED to smart_proxy_openscap does not rescue Errno::ECONNREFUSED
Actions #2

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
Actions #3

Updated by Marek Hulán almost 7 years ago

  • Translation missing: en.field_release set to 341
Actions #4

Updated by Ondřej Pražák almost 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF