Bug #28251
closed500 Internal Server Error while uploading report from proxy to satellite
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1770433
Description of problem:
2019-11-09T00:11:27 [I|app|85ceb50b] Started POST "/api/v2/compliance/arf_reports/5bb15393-2e2d-4dd4-b8b5-743423a7cae2/1/1573276285" for IP at 2019-11-09 00:11:27 -0500
2019-11-09T00:11:28 [I|app|85ceb50b] Processing by Api::V2::Compliance::ArfReportsController#create as JSON
2019-11-09T00:11:28 [I|app|85ceb50b] Parameters: {"logs"=>"[FILTERED]", "digest"=>"ab63b6bc631f9e1efa7207699ac034ebfb6187094c8fa9678b91dc3388514f91", "metrics"=>{"passed"=>18, "failed"=>31, "othered"=>0}, "openscap_proxy_name"=>"satellite.example.com", "openscap_proxy_url"=>"https://satellite.example.com:9090", "apiv"=>"v2", "cname"=>"5bb15393-2e2d-4dd4-b8b5-743423a7cae2", "policy_id"=>"1", "date"=>"1573276285", "arf_report"=>{"logs"=>"[FILTERED]", "digest"=>"ab63b6bc631f9e1efa7207699ac034ebfb6187094c8fa9678b91dc3388514f91", "metrics"=>{"passed"=>18, "failed"=>31, "othered"=>0}, "openscap_proxy_name"=>"satellite.example.com", "openscap_proxy_url"=>"https://satellite.example.com:9090"}}
2019-11-09T00:11:28 [W|app|85ceb50b] Action failed
2019-11-09T00:11:28 [I|app|85ceb50b] Rendering api/v2/errors/custom_error.json.rabl within api/v2/layouts/error_layout
2019-11-09T00:11:28 [I|app|85ceb50b] Rendered api/v2/errors/custom_error.json.rabl within api/v2/layouts/error_layout (0.7ms)
2019-11-09T00:11:28 [I|app|85ceb50b] Completed 500 Internal Server Error in 64ms (Views: 1.5ms | ActiveRecord: 0.9ms)
Version-Release number of selected component (if applicable):
Satellite 6.7 snap 1
How reproducible:
always
Steps to Reproduce:
1. # foreman_scap_client 1
DEBUG: running: oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard_customized --tailoring-file /var/lib/openscap/tailoring/0d87960defa6a38ec0ccbb32f317eb18950e29db3a5487ed08edac915c358405.xml --results-arf /tmp/d20191109-12473-98ibid/results.xml /var/lib/openscap/content/96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d.xml
WARNING: This content points out to the remote resources. Use `--fetch-remote-resources' option to download them.
WARNING: Skipping https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2 file which is referenced from XCCDF content
DEBUG: running: /usr/bin/env bzip2 /tmp/d20191109-12473-98ibid/results.xml
Uploading results to https://satellite.example.com:9090/compliance/arf/1
Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: 500 "Internal Server Error"
Actual results:
Failed with: 500 "Internal Server Error"
Expected results:
Successful upload of arf reports.
Additional info:
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman_openscap/pull/425 added
Updated by Ondřej Pražák almost 5 years ago
- Related to Bug #28262: Internal Server Error while creating scap policy using hammer added
Updated by The Foreman Bot almost 5 years ago
- Fixed in Releases foreman_openscap 2.0.2 added
Updated by Ondřej Pražák almost 5 years ago
- Has duplicate Bug #28010: 500 Error uploading reports from proxy added
Updated by Ondřej Pražák almost 5 years ago
- Subject changed from 500 Internal Server Error while uploading report from proxy to satellite to 500 Internal Server Error while uploading report from proxy to satellite
- Status changed from Ready For Testing to Closed
Updated by Tomer Brisker almost 5 years ago
- Related to Bug #28547: don't try to assign lone taxonomies for reports added
Updated by Ondřej Pražák almost 5 years ago
- Related to Refactor #28609: Remove fix for skipping lone taxonomies assignment added