- From: Peter Norton <
>
- To:
- Subject: [chef] Troubleshooting report/error handlers not appearing to send reports?
- Date: Thu, 26 Jan 2012 22:50:27 -0500
I've enabled the gelf report handler per the instructions in the
chef_handler cookbook and the chef-gelf cookbook.
I've got an odd situation. I'm putting in our syslog server
explicitly, so a host is set. The run starts like this:
:~$
sudo chef-client --once
[Thu, 26 Jan 2012 23:02:46 +0000] INFO: *** Chef 0.10.6 ***[Thu, 26
Jan 2012 23:02:49 +0000] INFO: Run List is [recipe[tuning],
role[knewton_base_u1110], recipe[grover], role[Grover_cluster],
role[Grover_service]
][Thu, 26 Jan 2012 23:02:49 +0000] INFO: Run List expands to [tuning,
chef_handler::gelf, metachef, ubuntu, apt, ntp, knewton_aaa,
rsyslog::client, knewton_package, knewton_package::python,
knewton_package::emacs, knewton_package::isaak_environment,
build-essential, ganglia::knewton_ganglia_monitor, grover
]
[Thu, 26 Jan 2012 23:02:49 +0000] INFO: Starting Chef Run for Grover-service-0
[Thu, 26 Jan 2012 23:02:49 +0000] INFO: Running start handlers
[Thu, 26 Jan 2012 23:02:49 +0000] INFO: Start handlers complete.[Thu,
26 Jan 2012 23:02:50 +0000] INFO: Loading cookbooks [apt,
build-essential, chef_handler, client_authenticators, cron, ganglia,
grover, java, knewto
n_aaa, knewton_defines, knewton_lwrp, knewton_package, metachef, ntp,
rsyslog, runit, tuning, ubuntu]
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/resources/default.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/providers/default.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/recipes/default.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/recipes/gelf.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/recipes/json_file.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/attributes/default.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/metadata.rb in the cache.
[Thu, 26 Jan 2012 23:02:51 +0000] INFO: Storing updated
cookbooks/chef_handler/README.md in the cache.
"log_server is"
"ec2-50-17-46-130.compute-1.amazonaws.com"
It runs, succeeds, and ends like this:
[Thu, 26 Jan 2012 23:03:01 +0000] INFO: Processing service[grover]
action nothing (grover::default line 142)
[Thu, 26 Jan 2012 23:03:02 +0000] INFO: Chef Run complete in
12.951394309 seconds
[Thu, 26 Jan 2012 23:03:02 +0000] INFO: Running report handlers
[Thu, 26 Jan 2012 23:03:02 +0000] INFO: Report handlers complete
and if I run this on the graylog2 host, the gelf message makes it through.
However, if I run it on any other host with the recipe hard-coded to
point to the same host in the same region, I get nada. I have run
tcpdump and the curious part is that no udp traffic seems to be *sent*
on port 12201 when I try to report to the remote host. I have tested
that I can send messages using alternate gelf libraries (e.g. the
PyLog module can send messages to my graylog2 server via the gelf
port) and the messages appear in the web ui so it doesn't appear to be
AWS/EC2 permissions at play.
Can anyone shed some light on this?
Thanks,
-Peter
- [chef] Troubleshooting report/error handlers not appearing to send reports?, Peter Norton, 01/26/2012
Archive powered by MHonArc 2.6.16.