Bug 1334650

Summary: Cron weekly katello-remove-orphans warnings sending mail
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: WebUIAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton, egolov, ehelms, hartsjc, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-3.0.0-12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-14 21:00:29 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2016-05-10 08:46:46 UTC
Description of problem:
The weekly cron is giving output of ruby warnigns. This sends an unneeded cron mail:

/etc/cron.weekly/katello-remove-orphans:

/opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.24/config/routes/overrides.rb:3: warning: already initialized constant Katello::WhitelistConstraint::PATHS
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.24/config/routes/overrides.rb:3: warning: previous definition of PATHS was here


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Run /etc/cron.weekly/katello-remove-orphans from the commandline
2.
3.

Actual results:
output of warnigns to stdout

Expected results:
no output on stdout

Additional info:

Comment 3 Brad Buckingham 2016-07-24 16:21:16 UTC
Created redmine issue http://projects.theforeman.org/issues/15823 from this bug

Comment 4 Bryan Kearney 2016-07-24 18:15:20 UTC
Upstream bug component is WebUI

Comment 5 Bryan Kearney 2016-07-27 22:14:26 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15823 has been closed

Comment 6 jcallaha 2016-09-07 18:40:34 UTC
Verified in Satellite 6.2.2. After running the script multiple times, no output seen in stdout.

Comment 8 errata-xmlrpc 2016-09-14 21:00:29 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/RHBA-2016:1885