Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2029548 - Excluding system facts logs as WARN causing log files to increase dramatically
Summary: Excluding system facts logs as WARN causing log files to increase dramatically
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.9.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Ladislav Vasina
URL:
Whiteboard:
Depends On:
Blocks: 2029916
TreeView+ depends on / blocked
 
Reported: 2021-12-06 18:11 UTC by Taft Sanders
Modified: 2022-07-05 14:31 UTC (History)
3 users (show)

Fixed In Version: candlepin-4.1.9-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2029916 (view as bug list)
Environment:
Last Closed: 2022-07-05 14:30:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:31:02 UTC

Description Taft Sanders 2021-12-06 18:11:48 UTC
Description of problem:
When adding the option 'candlepin.consumer.facts.match_regex' /etc/candlepin/candlepin.conf we see all facts that are being excluded logged as WARN. Since this option is not included in the candlepin.conf file by default and it is manually being placed here, I do not believe the exclusions should be or a WARN type. Since this option is also used to exclude systems facts on hosts where the number of these facts are causing long queries or a lot of system resource usage, I believe these should be logged as DEBUG level in the logs to limit the unnecessary logging of INFO+.

Version-Release number of selected component (if applicable):
candlepin-3.1.28-1.el7sat.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Add regex exclusion to the candlepin.conf file for host facts and watch the logs for the matches to appear as WARN level.
2.
3.

Actual results:
Candlepin log files increase in size 3-4x 

Expected results:
This logging should be set on the level of DEBUG as this is an optional parameter to add for systems with a lot of facts.

Additional info:

Comment 1 Ladislav Vasina 2022-06-14 10:44:19 UTC
If debug option is enabled correct message with level:DEBUG will appear:
ie.:
DEBUG org.candlepin.resource.ConsumerResource - Consumer fact "system.certificate_version" does not match pattern "XXX"

VERIFIED with candlepin-4.1.13-1.el8sat.noarch

Comment 4 errata-xmlrpc 2022-07-05 14:30:51 UTC
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 (Moderate: Satellite 6.11 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-2022:5498


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