Non-convergence of cookbook on node

Hello,

I would really appreciate some assistance with this…

I’m trying to get a particular cookbook to run on a Ubuntu node. The node is brand new and the first thing I did just after spinning up an instance in AWS, did a chef-client on the command line (which should identify this node to the Chef server) and then did a chef run -r “recipe[cookbook_name::default]”.

I received the following:-
Starting Chef Client, version 11.14.6
resolving cookbooks for run list: [“cookbook_name::default”]
Synchronizing Cookbooks:

  • chef_handler
  • windows
  • logrotate
  • cron
  • chef-client
  • cookbook_name
    Compiling Cookbooks…
    Converging 0 resources

Running handlers:
Running handlers complete
Chef Client finished, 0/0 resources updated in 3.269889693 seconds

Can you please tell me why the default recipe isn’t being run?

Many thanks

Sent from iCloud

On Friday, May 8, 2015 at 8:56 AM, ANGELA EBIRIM wrote:

Hello,

I would really appreciate some assistance with this...

I'm trying to get a particular cookbook to run on a Ubuntu node. The node is brand new and the first thing I did just after spinning up an instance in AWS, did a chef-client on the command line (which should identify this node to the Chef server) and then did a chef run -r "recipe[cookbook_name::default]".

I received the following:-
Starting Chef Client, version 11.14.6
resolving cookbooks for run list: ["cookbook_name::default"]
Synchronizing Cookbooks:

  • chef_handler
  • windows
  • logrotate
  • cron
  • chef-client
  • cookbook_name
    Compiling Cookbooks...
    Converging 0 resources

Running handlers:
Running handlers complete
Chef Client finished, 0/0 resources updated in 3.269889693 seconds

Can you please tell me why the default recipe isn't being run?
Only the cookbook_name::default recipe will be run, unless it uses an include_recipe statement to pull in other recipes. Setting dependencies at the cookbook level will make chef pull them in for the chef-client run (as you can see in your logs), but the run list (and include statement) controls which recipes actually get run.

Many thanks

Sent from iCloud

--
Daniel DeLeo

Hi Daniel,

Thanks for responding.

Yes the default recipe does include teo other recipes from the same cookbook.

I do know that the recipes work because when I do a Chef run with this cookbook on a Vagrant VM, the cookbook executes successfully. I’m attempting to deploy this cookbook to a node in my dev environment.

I’ve checked in the /etc/chef directory and can see the two pem files(i.e validation.pem and client.pem). Is there anywhere else you suggest I might start from to troubleshoot this?
Sent from iCloud

On May 08, 2015, at 09:15 AM, Daniel DeLeo dan@kallistec.com wrote:

On Friday, May 8, 2015 at 8:56 AM, ANGELA EBIRIM wrote:
Hello,

I would really appreciate some assistance with this…

I’m trying to get a particular cookbook to run on a Ubuntu node. The node is brand new and the first thing I did just after spinning up an instance in AWS, did a chef-client on the command line (which should identify this node to the Chef server) and then did a chef run -r “recipe[cookbook_name::default]”.

I received the following:-
Starting Chef Client, version 11.14.6
resolving cookbooks for run list: [“cookbook_name::default”]
Synchronizing Cookbooks:

  • chef_handler
  • windows
  • logrotate
  • cron
  • chef-client
  • cookbook_name
    Compiling Cookbooks…
    Converging 0 resources

Running handlers:
Running handlers complete
Chef Client finished, 0/0 resources updated in 3.269889693 seconds

Can you please tell me why the default recipe isn’t being run?
Only the cookbook_name::default recipe will be run, unless it uses an include_recipe statement to pull in other recipes. Setting dependencies at the cookbook level will make chef pull them in for the chef-client run (as you can see in your logs), but the run list (and include statement) controls which recipes actually get run.

Many thanks

Sent from iCloud


Daniel DeLeo

On Friday, May 8, 2015 at 9:29 AM, ANGELA EBIRIM wrote:

Hi Daniel,

Thanks for responding.

Yes the default recipe does include teo other recipes from the same cookbook.

I do know that the recipes work because when I do a Chef run with this cookbook on a Vagrant VM, the cookbook executes successfully. I'm attempting to deploy this cookbook to a node in my dev environment.

I've checked in the /etc/chef directory and can see the two pem files(i.e validation.pem and client.pem). Is there anywhere else you suggest I might start from to troubleshoot this?
Those pem files only affect authentication to the server. If they’re wrong then you get a HTTP 401 for every request, if they’re right, then you don’t

For troubleshooting your problem, you can try running chef with -ldebug to get much more verbose logging of what’s going on. You can also inspect the cookbooks after the run in var/chef/cache/cookbooks.

--
Daniel DeLeo

Did you upload the cookbook to the Chef server, and if yes, is it at the
correct version?

On Fri, May 8, 2015 at 12:29 PM, ANGELA EBIRIM aebirim@icloud.com wrote:

Hi Daniel,

Thanks for responding.

Yes the default recipe does include teo other recipes from the same
cookbook.

I do know that the recipes work because when I do a Chef run with this
cookbook on a Vagrant VM, the cookbook executes successfully. I'm
attempting to deploy this cookbook to a node in my dev environment.

I've checked in the /etc/chef directory and can see the two pem files(i.e
validation.pem and client.pem). Is there anywhere else you suggest I might
start from to troubleshoot this?

Sent from iCloud

On May 08, 2015, at 09:15 AM, Daniel DeLeo dan@kallistec.com wrote:

On Friday, May 8, 2015 at 8:56 AM, ANGELA EBIRIM wrote:

Hello,

I would really appreciate some assistance with this...

I'm trying to get a particular cookbook to run on a Ubuntu node. The node
is brand new and the first thing I did just after spinning up an instance
in AWS, did a chef-client on the command line (which should identify this
node to the Chef server) and then did a chef run -r
"recipe[cookbook_name::default]".

I received the following:-

Starting Chef Client, version 11.14.6

resolving cookbooks for run list: ["cookbook_name::default"]

Synchronizing Cookbooks:

  • chef_handler

  • windows

  • logrotate

  • cron

  • chef-client

  • cookbook_name

Compiling Cookbooks...

Converging 0 resources

Running handlers:

Running handlers complete

Chef Client finished, 0/0 resources updated in 3.269889693 seconds

Can you please tell me why the default recipe isn't being run?

Only the cookbook_name::default recipe will be run, unless it uses an
include_recipe statement to pull in other recipes. Setting dependencies
at the cookbook level will make chef pull them in for the chef-client run
(as you can see in your logs), but the run list (and include statement)
controls which recipes actually get run.

Many thanks

Sent from iCloud

--
Daniel DeLeo