Bug 1417988
| Summary: | [abrt] [faf] rhts: read_file(): /usr/bin/rhts-db-submit-result killed by IOError | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Martin Kyral <mkyral> |
| Component: | general | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dan Callaghan <dcallagh> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | dcallagh, mjia, rjoost |
| Target Milestone: | 24.3 | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/c16ec4540576e813603d8034d3f03cb4bcec2027/ | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-05-30 07:07:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Tagged rhts 4.73. Beaker 24.3 has been released. |
To summarize in a public comment: Passing a non-existing file to rhts-db-submit-result (perhaps indirectly via rhts-report-result or report_result) results in an unhandled Python exception, which will be picked up by abrt: Traceback (most recent call last): File "/usr/bin/rhts-db-submit-result", line 747, in <module> main() File "/usr/bin/rhts-db-submit-result", line 649, in main log = read_file(logfile) File "/usr/bin/rhts-db-submit-result", line 195, in read_file FH = open(filename, "r") IOError: [Errno 2] No such file or directory: '/somefile' Arguably this is a user-triggered error so it should be reported with a non-zero exit status but not an unhandled exception.