Bug 852139 - update_yaml cron job outputs which sends an e-mail to root user
update_yaml cron job outputs which sends an e-mail to root user
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Mrunal Patel
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2012-08-27 13:18 EDT by Thomas Wiest
Modified: 2015-05-14 18:58 EDT (History)
3 users (show)

See Also:
Fixed In Version: devenv_2086+
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-09-17 17:28:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thomas Wiest 2012-08-27 13:18:15 EDT
Description of problem:
The update_yaml minutely cron job sends e-mails to the root user when update_yaml is currently running.

The reason that the e-mail is sent is because the cron job is outputing.

The fix would be to either:
1) not have update_yaml.rb output when another instance is running
2) Change the cron job to redirect output to /dev/null

The e-mails to root look like this:


Script /usr/libexec/mcollective/update_yaml.rb is already running

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

How reproducible:

Steps to Reproduce:
1. Start update_yaml at the same time that the minutely cron job will run
2. Notice an e-mail like the above is sent to the root account on the box

Actual results:
e-mail is sent

Expected results:
The script should silently ignore that fact
Comment 1 Mrunal Patel 2012-08-27 20:07:54 EDT
Comment 2 Jianwei Hou 2012-08-28 03:09:27 EDT
Verified on devenv_2086

1. Launch a devenv instance
2. ssh into instance, check mcollective is running
   /etc/init.d/mcollective status
3. Stay logged in, when /etc/cron.minutely/stickshift-facts is running, root should not receive emails from this cron jbos

root receives no emails sent from cron job

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