Description of problem: Compliance reports are not being uploaded to satellite. Version-Release number of selected component (if applicable): - Satellite 6.8.0 snap 7 How reproducible: - Always Steps to Reproduce: 1. Register a host to Satellite. 2. Assign OpenSCAP Capsule, theforeman.foreman_scap_client ansible role and compliance policy to host. 3. Run ansible roles for hosts. Actual results: Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: 500 "Internal Server Error" Expected results: Reports are uploaded to Satellite server. Additional info: In /var/log/foreman/production.log: error (ActiveRecord::RecordNotUnique): PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_scaptimony_asset_policies_on_asset_id_and_policy_id" DETAIL: Key (asset_id, policy_id)=(2, 3) already exists.
Created redmine issue https://projects.theforeman.org/issues/30353 from this bug
Upstream bug assigned to oprazak
Verified Verified with: - Satellite 6.8.0 snap 9 - tfm-rubygem-foreman_openscap-4.0.1-1.fm2_1.el7sat.noarch Test steps: 1. Register a host to Satellite. 2. Assign OpenSCAP Capsule, theforeman.foreman_scap_client ansible role and compliance policy to host. 3. Run ansible roles for hosts. 4. Run OpenScap scan Observations: - Reports were successfully uploaded to Satellite server.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.8 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:4366