Project

General

Profile

Bug #30353

Compliance reports are not being uploaded to Foreman.

Added by Ondřej Pražák about 1 month ago. Updated 21 days ago.


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.

Associated revisions

Revision a97c7b3c (diff)
Added by Ondřej Pražák 29 days ago

Fixes #30353 - Fix report uploads

History

#1 Updated by Ondřej Pražák about 1 month ago

  • Assignee set to Ondřej Pražák
  • Subject changed from Compliance reports are not being uploaded to Foreman. to Compliance reports are not being uploaded to Foreman.

#2 Updated by The Foreman Bot about 1 month ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/439 added

#3 Updated by The Foreman Bot 29 days ago

  • Fixed in Releases foreman_openscap 4.1.0 added

#4 Updated by The Foreman Bot 29 days ago

  • Pull request https://github.com/theforeman/foreman_openscap/pull/442 added

#5 Updated by The Foreman Bot 29 days ago

  • Pull request https://github.com/theforeman/foreman_openscap/pull/443 added

#6 Updated by Ondřej Pražák 28 days ago

  • Fixed in Releases foreman_openscap 3.0.1, foreman_openscap 4.0.1 added
  • Fixed in Releases deleted (foreman_openscap 4.1.0)

#7 Updated by Ondřej Pražák 21 days ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF