[chef] Re: debugging chef-solo in chef-shell


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: debugging chef-solo in chef-shell
  • Date: Tue, 24 Sep 2013 10:16:04 -0700


On Tuesday, September 24, 2013 at 10:04 AM, Igor Serebryany wrote:

Hi Chefs, 

I'm trying to debug a cookbook in chef-shell but I'm running into problems. 

I start chef-shell in solo mode with 'chef-shell -s -j myattr.json'. When I try to expand the runlist (as instructed here, using 'node.run_list.expand('production')', chef-shell still tries to talk to a chef server. It complains about missing client.pem, and after I created a reasonable-looking file at the right location it still says 'ERROR: Connection refused connecting to localhost:4000'.

Is there a way to tell chef-shell to avoid trying to talk to any sort of server? Is this a bug? This is on chef 11.4.0.

Thanks,
--Igor
Try upgrading to 11.6, there were a handful of chef-shell bugs that got fixed.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§