[chef] Re: Re: SNS Handler Cookbook


Chronological Thread 
  • From: Doug Garstang < >
  • To:
  • Subject: [chef] Re: Re: SNS Handler Cookbook
  • Date: Wed, 23 Sep 2015 11:55:22 -0700

Xabier,

My understanding from the docs at https://github.com/onddo/chef-handler-sns is that if you install the cookbook, as long as you put the relevant sections in the client.rb file, then it should catch errors during the convergence phase:

"This method will not catch errors before the convergence phase"

That won't cover convergence errors on the very first run, after my bootstrap process adds the correct pieces to the client.rb file, but before the cookbook installs all the dependancies for the very first time. Correct?

Doug.

On Wed, Sep 23, 2015 at 11:18 AM, Xabier de Zuazo < " target="_blank"> > wrote:
Hi Doug,

On 2015-09-23 09:37, Doug Garstang wrote:
> Well, if I use a cookbook to install it, how's it going to catch any errors
> during the convergence phase on the initial chef-client run? Will using the
> cookbook allow it to catch errors during the convergence phase os
> subsequent chef-client runs?

No, IIRC the cookbook does not catch convergence phase errors. The cookbook is
to install the gem and its dependencies easily. Then calls the `chef_handler`
resource with all its limitations:

https://github.com/chef-cookbooks/chef_handler#resourceprovider

It's pretty simple.

> Nokogiri, which is a dependency of the sns handler cookbook fails to build.
>
> NoMethodError
> -------------
> chef_gem[chef-handler-sns]
> (/var/chef/cache/cookbooks/chef_handler_sns/providers/default.rb line 93)
> had an error: NoMethodError: undefined method `full_name' for nil:NilClass

Please, open an issue here with all the information you can provide:

https://github.com/onddo/chef_handler_sns-cookbook/issues/new

I will try to have a look at it ASAP.

Regards,

--
Xabier de Zuazo




Archive powered by MHonArc 2.6.16.

§