Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1596349

Summary: reduce canceljobjob logging
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: CandlepinAssignee: Barnaby Court <bcourt>
Status: CLOSED ERRATA QA Contact: Ondrej Gajdusek <ogajduse>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: bcourt, cduryee, khowell, mmccune, ogajduse, schlupov
Target Milestone: 6.4.0Keywords: FieldEngineering, PrioBumpField, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-2.4.0-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1563225 Environment:
Last Closed: 2018-10-16 19:01:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1563367, 1566217    
Bug Blocks:    

Comment 6 Ondrej Gajdusek 2018-08-30 11:27:01 UTC
Any update on this BZ? Needinfo is still valid.

Comment 7 Barnaby Court 2018-09-05 12:23:23 UTC
In comment 3, setting log4j.logger.org.candlepin=DEBUG & restarting tomcat will enable debug logging. 

The "Deleting # cancelled jobs from scheduler" and the "Finished deleting jobs from scheduler" message is logged at the INFO level.

Comment 8 Ondrej Gajdusek 2018-09-13 08:32:37 UTC
After increasing the log level I can see the following:

$ tail -f /var/log/candlepin/candlepin.log | grep -i -e jobjob -e jobs
2018-09-13 04:29:15,014 [thread=QuartzScheduler_Worker-12] [job=CancelJobJob-f828108d-c6e0-42b6-962b-d0cf2a4eccf7, org=, csid=] DEBUG org.candlepin.audit.EventSinkImpl - Committing ActiveMQ transaction.
2018-09-13 04:29:20,008 [thread=QuartzScheduler_Worker-13] [job=CancelJobJob-f828108d-c6e0-42b6-962b-d0cf2a4eccf7, org=, csid=] DEBUG org.candlepin.audit.EventSinkImpl - Committing ActiveMQ transaction.
2018-09-13 04:29:25,014 [thread=QuartzScheduler_Worker-1] [job=CancelJobJob-f828108d-c6e0-42b6-962b-d0cf2a4eccf7, org=, csid=] DEBUG org.candlepin.audit.EventSinkImpl - Committing ActiveMQ transaction.
2018-09-13 04:29:30,011 [thread=QuartzScheduler_Worker-3] [job=CancelJobJob-f828108d-c6e0-42b6-962b-d0cf2a4eccf7, org=, csid=] DEBUG org.candlepin.audit.EventSinkImpl - Committing ActiveMQ transaction.
2018-09-13 04:29:35,021 [thread=QuartzScheduler_Worker-5] [job=CancelJobJob-f828108d-c6e0-42b6-962b-d0cf2a4eccf7, org=, csid=] DEBUG org.candlepin.audit.EventSinkImpl - Committing ActiveMQ transaction.
2018-09-13 04:29:40,009 [thread=QuartzScheduler_Worker-6] [job=CancelJobJob-f828108d-c6e0-42b6-962b-d0cf2a4eccf7, org=, csid=] DEBUG org.candlepin.audit.EventSinkImpl - Committing ActiveMQ transaction.

These messages are not logged without increasing the log level.

Verified with Satellite 6.4.0 Snap 21.0.

Comment 9 Bryan Kearney 2018-10-16 19:01:39 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, 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-2018:2927