Project

General

Profile

Actions

Bug #30353

closed

Compliance reports are not being uploaded to Foreman.

Added by Ondřej Pražák almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-

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.

Actions #1

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
Actions #2

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
Actions #3

Updated by The Foreman Bot almost 5 years ago

  • Fixed in Releases foreman_openscap 4.1.0 added
Actions #4

Updated by The Foreman Bot almost 5 years ago

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

Updated by The Foreman Bot almost 5 years ago

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

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)
Actions #7

Updated by Ondřej Pražák almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF