Issue #9167 has been updated by John Sellens.
We were seeing this as well, and I dodged the problem by making a local change
to puppet/reports/tagmail.rb (on the puppet server) to throw those lines away.
A terrible kludge, but my mailbox was happier. Hope someone finds this useful.
Thanks - cheers! John
% diff -c ./puppet-2.7.5/lib/puppet/reports/tagmail.rb.orig
./puppet-2.7.5/lib/puppet/reports/tagmail.rb
*** ./puppet-2.7.5/lib/puppet/reports/tagmail.rb.orig Fri Sep 30
13:51:10 2011
--- ./puppet-2.7.5/lib/puppet/reports/tagmail.rb Thu Oct 6 14:45:01
2011
***************
*** 59,64 ****
--- 59,70 ----
true if neg.detect do |tag| log.tagged?(tag) end
end
+ # Now remove any lines like this
+ # Puppet (notice): Finished catalog run in 14.14 seconds
+ messages = messages.reject do |log|
+ true if log.to_s =~ /Finished catalog run in .* seconds/
+ end
+
if messages.empty?
Puppet.info "No messages to report to #{emails.join(",")}"
next
----------------------------------------
Bug #9167: tagmail report sends email when nothing happens
https://projects.puppetlabs.com/issues/9167
Author: Spencer Rinehart
Status: In Topic Branch Pending Review
Priority: Low
Assignee: Kelsey Hightower
Category: reports
Target version:
Affected Puppet version: 2.6.9
Keywords: tagmail
Branch: https://github.com/khightower/puppet/commits/bug/master/9167
Since upgrading to the 2.7 series (2.6.8 -> 2.7.3), the tagmail report will
send an email with 1 line, shown below, after every run. Before the upgrade,
it would only send emails when something occurred during the puppet run.
Steps to reproduce:
Enable tagmail report
Execute a puppet run that produces no updates
Expected result:
No email sent
Actual result:
Email sent with line below
Email body:
Tue Aug 23 13:11:59 -0400 2011 Puppet (notice): Finished catalog run in 16.60
seconds
tagmail.conf:
all: [email protected]
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.