[chef] Re: knife bootstrap Command Not Applying the Run List


Chronological Thread 
  • From: sean escriva < >
  • To:
  • Subject: [chef] Re: knife bootstrap Command Not Applying the Run List
  • Date: Tue, 27 Mar 2012 11:41:07 -0700

Hi Ian,


I'm sending this to the mailing list because I have posted a bug on 3/6/2012 and haven't gotten a response. Any help is much appreciated. Here's the ticket:

When running the knife bootstrap command and passing in the -r option to specify the run list, the node installs the chef-client but does not perform a chef-client run and completely ignores the run list. There is also no first-boot.json file present in /etc/chef. We get these results when using the -d option and a distro file to install chef-client from apt packages and we also get these results when not using -d option the chef-client installs through gem. Adding the -VV option gives us no informative error. knife-bootstrap just stops after the chef-client installation. We get this behavior from knife on two different Linux workstations. One in Ubuntu 10.04 Server LTS and the other is Linux Mint 12. Here are the commands that we have used that produce these results:

So the bootstrap completes successfully? Have you verified the client.rb is written correctly? Namely, if you're using a proxy I would image that knife[:bootstrap_proxy] should be properly set.

Also, doing the following (as mentioned in the Knife Bootstrap wiki page) does not resolve the issue as there is no such file /etc/chef/first-boot.json

:~# chef-client -j /etc/chef/first-boot.json
[Mon, 26 Mar 2012 16:53:50 -0400] FATAL: I cannot find /etc/chef/first-boot.json

as far as this is concerned, verify that the contents of first-boot.jason is something like:

{"run_list":["role[base]"]}

You can create this file yourself if it doesn't exist.



Archive powered by MHonArc 2.6.16.

§