Bug 2221835 - The command "foreman-rake reports:expire report_type=ForemanOpenscap::ArfReport" does not cleanup the SCAP reports from the Capsule server
Summary: The command "foreman-rake reports:expire report_type=ForemanOpenscap::ArfRepo...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-11 01:18 UTC by Jayant Bhatia
Modified: 2023-08-03 17:09 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19019 0 None None None 2023-07-18 11:32:58 UTC

Description Jayant Bhatia 2023-07-11 01:18:15 UTC
Description of problem:

The command "foreman-rake reports:expire report_type=ForemanOpenscap::ArfReport" only cleans the Openscap report files from Satellite and not from Capsule.

Version-Release number of selected component (if applicable): Satellite-6.14 and below


How reproducible: Always


Steps to Reproduce:
1. Ensure OpenScap is configured and there are reports generated on both Satellite and external capsule server.

2. Run the following commands on Satellite to clear the Openscap reports older than 90 days 

       # foreman-rake reports:expire report_type=ForemanOpenscap::ArfReport days=90

Actual results: The OpenSCAP reports listed for the last 90 days on Satellite under compliance reports. The report files on the Capsule server under "/var/lib/foreman-proxy/openscap/reports/arf/" have not cleaned up and the report files > 90 days old are present.  The above command cleaned up the links to the report files in Satellite but did not clean up the report files in the filesystem on the Capsule.


Expected results: The above command should also clean the report files from Capsule along with Satellite.


Additional info: This behavior is observed on all Satellite versions.


Note You need to log in before you can comment on or make changes to this bug.