Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1356432

Summary: Log flooded with message while sending promoted errata mail
Product: Red Hat Satellite 6 Reporter: Ranjan Kumar <rankumar>
Component: EmailAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Daniel Lobato Garcia <dlobatog>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1.9CC: bbuckingham, bkearney, dlobatog, inecas, riehecky, sthirugn
Target Milestone: UnspecifiedKeywords: Patch, Performance, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ranjan Kumar 2016-07-14 06:25:40 UTC
Description of problem:
Log flooded with message while sending promoted errata mail

Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello- (0.5ms)
2016-07-14 11:26:46 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello- (0.5ms)
2016-07-14 11:26:46 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello- (0.5ms)
2016-07-14 11:26:46 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello- (0.5ms)

How reproducible:
Set log level to debug in config/environments/production.rb
Open foreman-rake console and fire below command
> options = {:user => User.find_by_login('admin'), :environment => Katello::KTEnvironment.find(2), :content_view => Katello::ContentView.find(2)}

> Katello::ErrataMailer.promote_errata(options).deliver

Actual results:
Log flood with render message

Comment 2 Bryan Kearney 2016-07-14 08:16:18 UTC
Moving to POST since upstream bug has been closed

Comment 4 Daniel Lobato Garcia 2017-08-30 10:09:20 UTC

Tested on Satellite 6.3 - Snap 13.

2017-08-30 06:07:28  [app] [I]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.4/app/views/katello/errata_mailer/_host_dashboard.html.erb (6.2ms)
2017-08-30 06:07:28  [app] [I]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.4/app/views/katello/errata_mailer/promote_errata.html.erb within layouts/application_mailer (60.9ms)
2017-08-30 06:07:28  [app] [I]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.4/app/views/katello/errata_mailer/promote_errata.text.erb (5.5ms)
2017-08-30 06:07:28  [app] [I] Current user: foreman_admin (administrator)
2017-08-30 06:07:28  [app] [I]
 | Sent mail to (312.9ms)

By using the steps described to verify the issue in the original report, we can see how the logs are not flooded even on debug mode - just the 3 rendered partials are added to the log.

Comment 5 2018-02-21 16:51:07 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.