Tim Uckun
2009-Sep-24 23:37 UTC
[Puppet Users] Puppet client running into an error but not reporting it.
I have a situation where there is a problem with one of my manifests. The puppet client throws up an error but does not report. I don''t get an email notification of the problem even though I have all: setting on the tagmail and I don''t see any trace of a report on the syslog either. This is the output from the client puppetd --verbose --no-daemon notice: Starting Puppet client version 0.25.0 info: Retrieving plugin info: Caching catalog for ubuntu.panztel.local err: Could not run Puppet configuration client: Parameter unless failed: ''grep -qFx ''#include </etc/asterisk/manager.conf.d/*.conf>'' ''/etc/asterisk/manager.conf'''' is both unqualifed and specified no search path at /etc/puppet/modules/common/manifests/defines/line.pp:32 I think I know what is causing the problem but at this time I am not concerned about that at all. I don''t care what the problem is. I want to make sure I get notified everytime there is a problem. Here is the log on the server. Sep 25 11:27:04 nzvoip1 puppetmasterd[11320]: Reopening log files Sep 25 11:27:04 nzvoip1 puppetmasterd[11320]: Starting Puppet server version 0.25.0 Sep 25 11:27:31 nzvoip1 puppetmasterd[11320]: (Module common(/etc/puppet/modules/common)) using the deprecated ''plugins'' directory for ruby extensions; please move to ''lib'' Sep 25 11:27:31 nzvoip1 puppetmasterd[11320]: (Module common(/etc/puppet/modules/common)) using the deprecated ''plugins'' directory for ruby extensions; please move to ''lib'' Sep 25 11:27:35 nzvoip1 puppetmasterd[11320]: (/File[/var/puppet/storeconfigs.sqlite]/owner) Cannot manage ownership unless running as root Sep 25 11:27:35 nzvoip1 puppetmasterd[11320]: (/File[/var/puppet/log/rails.log]/owner) Cannot manage ownership unless running as root Sep 25 11:27:37 nzvoip1 puppetmasterd[11320]: Compiled catalog for ubuntu.panztel.local in 1.35 seconds Sep 25 11:30:01 nzvoip1 /USR/SBIN/CRON[13961]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null) No report, nothing in the log file. No indication that anything went wrong. If this was in production I would never know there was a problem. The only reason I know there is a problem is because I am running the client manually with the --no-daemon option. What can I do to make sure I always get notified when something goes wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2009-Sep-25 01:18 UTC
[Puppet Users] Re: Puppet client running into an error but not reporting it.
Assuming that the client breaks (e.g. stops its run), the best way you could indicate that something is wrong, is by seeing that the client did not send a report. you can also parse the client log files, but I usually get a notification (or see it in Foreman) when a client did not send a report in the last XX minutes, than I can look into the client and see whats wrong. nevertheless, if you can avoid this kind of errors by having some tests before you apply a new manliest, that''s always better.. cheers, Ohad On Fri, Sep 25, 2009 at 7:37 AM, Tim Uckun <timuckun@gmail.com> wrote:> > I have a situation where there is a problem with one of my manifests. > The puppet client throws up an error but does not report. I don''t get > an email notification of the problem even though I have all: setting > on the tagmail and I don''t see any trace of a report on the syslog > either. > > This is the output from the client > > puppetd --verbose --no-daemon > notice: Starting Puppet client version 0.25.0 > info: Retrieving plugin > info: Caching catalog for ubuntu.panztel.local > err: Could not run Puppet configuration client: Parameter unless > failed: ''grep -qFx ''#include </etc/asterisk/manager.conf.d/*.conf>'' > ''/etc/asterisk/manager.conf'''' is both unqualifed and specified no > search path at /etc/puppet/modules/common/manifests/defines/line.pp:32 > > > I think I know what is causing the problem but at this time I am not > concerned about that at all. I don''t care what the problem is. I want > to make sure I get notified everytime there is a problem. > > Here is the log on the server. > > Sep 25 11:27:04 nzvoip1 puppetmasterd[11320]: Reopening log files > Sep 25 11:27:04 nzvoip1 puppetmasterd[11320]: Starting Puppet server > version 0.25.0 > Sep 25 11:27:31 nzvoip1 puppetmasterd[11320]: (Module > common(/etc/puppet/modules/common)) using the deprecated ''plugins'' > directory for ruby extensions; please move to ''lib'' > Sep 25 11:27:31 nzvoip1 puppetmasterd[11320]: (Module > common(/etc/puppet/modules/common)) using the deprecated ''plugins'' > directory for ruby extensions; please move to ''lib'' > Sep 25 11:27:35 nzvoip1 puppetmasterd[11320]: > (/File[/var/puppet/storeconfigs.sqlite]/owner) Cannot manage ownership > unless running as root > Sep 25 11:27:35 nzvoip1 puppetmasterd[11320]: > (/File[/var/puppet/log/rails.log]/owner) Cannot manage ownership > unless running as root > Sep 25 11:27:37 nzvoip1 puppetmasterd[11320]: Compiled catalog for > ubuntu.panztel.local in 1.35 seconds > Sep 25 11:30:01 nzvoip1 /USR/SBIN/CRON[13961]: (root) CMD ([ -x > /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null) > > > No report, nothing in the log file. No indication that anything went wrong. > > If this was in production I would never know there was a problem. The > only reason I know there is a problem is because I am running the > client manually with the --no-daemon option. > > > What can I do to make sure I always get notified when something goes wrong? > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Tim Uckun
2009-Sep-25 09:54 UTC
[Puppet Users] Re: Puppet client running into an error but not reporting it.
> you can also parse the client log files, but I usually get a notification > (or see it in Foreman) when a client did not send a report in the last XX > minutes, than I can look into the client and see whats wrong.I was thinking I would might like to write my own report "engine" but I can''t seem to find any documentation as to how to do that or what comes in during the report. Is there any documentation on that? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2009-Sep-25 12:23 UTC
[Puppet Users] Re: Puppet client running into an error but not reporting it.
I didnt find docs either, but hopefully this simple example which I use in Foreman can give you all the info you need :) http://theforeman.org/repositories/entry/foreman/extras/puppet/reports/foreman.rb Ohad On Fri, Sep 25, 2009 at 5:54 PM, Tim Uckun <timuckun@gmail.com> wrote:> > > you can also parse the client log files, but I usually get a notification > > (or see it in Foreman) when a client did not send a report in the last XX > > minutes, than I can look into the client and see whats wrong. > > > I was thinking I would might like to write my own report "engine" but > I can''t seem to find any documentation as to how to do that or what > comes in during the report. > > Is there any documentation on that? > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---