Bug #30353
closedCompliance reports are not being uploaded to Foreman.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1854397
Description of problem:
Compliance reports are not being uploaded to Foreman.
How reproducible:
- Always
Steps to Reproduce:
1. Register a host to Foreman.
2. Assign OpenSCAP proxy, 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 Foreman 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.
Updated by Ondřej Pražák almost 5 years ago
- Subject changed from Compliance reports are not being uploaded to Foreman. to Compliance reports are not being uploaded to Foreman.
- Assignee set to Ondřej Pražák
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_openscap/pull/439 added
Updated by The Foreman Bot almost 5 years ago
- Fixed in Releases foreman_openscap 4.1.0 added
Updated by The Foreman Bot almost 5 years ago
- Pull request https://github.com/theforeman/foreman_openscap/pull/442 added
Updated by The Foreman Bot almost 5 years ago
- Pull request https://github.com/theforeman/foreman_openscap/pull/443 added
Updated by Ondřej Pražák almost 5 years ago
- Fixed in Releases foreman_openscap 3.0.1, foreman_openscap 4.0.1 added
- Fixed in Releases deleted (
foreman_openscap 4.1.0)
Updated by Ondřej Pražák almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_openscap|a97c7b3caf5aa4608d62ffe6257badf3ae5b9286.