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


Chronological Thread 
  • From: < >
  • To: < >
  • Subject: [chef] RE: Re: knife bootstrap Command Not Applying the Run List
  • Date: Wed, 28 Mar 2012 12:30:30 +0000
  • Accept-language: en-US

Hi Sean,

Yes, the bootstrap finishes with no errors, it just doesn't add the run list or perform a chef run. The client.rb file is written properly, except it didn't set the proxy options. Also, sometimes bootstrap fails to start the chef-client daemon. I did this twice for confirmation--the second I reverted to a clean snapshot of the VM. This is the command that produced the aforementioned behavior and the following client.rb:

knife bootstrap 10.116.27.100 -x root -N uscheflabext001.field.jw.org --bootstrap-proxy http://proxy.ourdomain.net:8080 -r 'role[base]' -s https://usmgmtext016.ourdomain.net -d ubuntu10.04-apt -VV

log_level          :info
log_location       STDOUT
ssl_verify_mode    :verify_none
chef_server_url "https://usmgmtext016.field.jw.org"
file_cache_path    "/var/cache/chef"
file_backup_path   "/var/lib/chef/backup"
pid_file           "/var/run/chef/client.pid"
cache_options({ :path => "/var/cache/chef/checksums", :skip_expires => true})
signing_ca_user "chef"
Mixlib::Log::Formatter.show_time = true
node_name "uscheflabext001.field.jw.org"


Ian D. Rossi
CD - Server Infrastructure
Phone 23834

From: sean escriva
Sent: Tuesday, March 27, 2012 2:41 PM
To:
Subject: [chef] Re: knife bootstrap Command Not Applying the Run List

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.

§