Bootstrap failure to ec2 instances


#1

successfully created servers on ec2 by knife-ec2 but failed to bootstrap. My
chef-server runs on my home laptop, seems ec2 server can not registry towards
the local server for network problem. Have anyone gotten success with such env?

If I ssh to the ec2 instance and remotely run “chef-client”, will got below
output:
ubuntu@ip-10-146-22-150:/etc/chef$ chef-client
[Wed, 25 Jan 2012 10:16:29 +0000] INFO: *** Chef 0.10.8 ***
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin os
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin kernel
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin ruby
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin languages
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin ruby -e "require
’rbconfig’; puts
%Q(host_cpu=#{::Config::CONFIG[‘host_cpu’]},bin_dir=#{::Config::CONFIG[‘bindir’]},host_vendor=#{::Config::CONFIG[‘host_vendor’]},release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG[‘bindir’],
::Config::CONFIG[‘ruby_install_name’])},target=#{::Config::CONFIG[‘target’]},target_cpu=#{::Config::CONFIG[‘target_cpu’]},host_os=#{::Config::CONFIG[‘host_os’]},platform=#{RUBY_PLATFORM},host=#{::Config::CONFIG[‘host’]},target_vendor=#{::Config::CONFIG[‘target_vendor’]},version=#{RUBY_VERSION},target_os=#{::Config::CONFIG[‘target_os’]},)"
STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
host_cpu=i686,bin_dir=/usr/bin,host_vendor=pc,release_date=2010-08-16,ruby_bin=/usr/bin/ruby1.8,target=i686-pc-linux-gnu,target_cpu=i686,host_os=linux-gnu,platform=i686-linux,host=i686-pc-linux-gnu,target_vendor=pc,version=1.8.7,target_os=linux,
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End ruby -e "require ‘rbconfig’;
puts
%Q(host_cpu=#{::Config::CONFIG[‘host_cpu’]},bin_dir=#{::Config::CONFIG[‘bindir’]},host_vendor=#{::Config::CONFIG[‘host_vendor’]},release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG[‘bindir’],
::Config::CONFIG[‘ruby_install_name’])},target=#{::Config::CONFIG[‘target’]},target_cpu=#{::Config::CONFIG[‘target_cpu’]},host_os=#{::Config::CONFIG[‘host_os’]},platform=#{RUBY_PLATFORM},host=#{::Config::CONFIG[‘host’]},target_vendor=#{::Config::CONFIG[‘target_vendor’]},version=#{RUBY_VERSION},target_os=#{::Config::CONFIG[‘target_os’]},)"
STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin ruby -e "require
’rbconfig’; puts
%Q(host_cpu=#{::Config::CONFIG[‘host_cpu’]},bin_dir=#{::Config::CONFIG[‘bindir’]},host_vendor=#{::Config::CONFIG[‘host_vendor’]},release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG[‘bindir’],
::Config::CONFIG[‘ruby_install_name’])},target=#{::Config::CONFIG[‘target’]},target_cpu=#{::Config::CONFIG[‘target_cpu’]},host_os=#{::Config::CONFIG[‘host_os’]},platform=#{RUBY_PLATFORM},host=#{::Config::CONFIG[‘host’]},target_vendor=#{::Config::CONFIG[‘target_vendor’]},version=#{RUBY_VERSION},target_os=#{::Config::CONFIG[‘target_os’]},)"
STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End ruby -e "require ‘rbconfig’;
puts
%Q(host_cpu=#{::Config::CONFIG[‘host_cpu’]},bin_dir=#{::Config::CONFIG[‘bindir’]},host_vendor=#{::Config::CONFIG[‘host_vendor’]},release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG[‘bindir’],
::Config::CONFIG[‘ruby_install_name’])},target=#{::Config::CONFIG[‘target’]},target_cpu=#{::Config::CONFIG[‘target_cpu’]},host_os=#{::Config::CONFIG[‘host_os’]},platform=#{RUBY_PLATFORM},host=#{::Config::CONFIG[‘host’]},target_vendor=#{::Config::CONFIG[‘target_vendor’]},version=#{RUBY_VERSION},target_os=#{::Config::CONFIG[‘target_os’]},)"
STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (ruby -e “require ‘rbconfig’;
puts
%Q(host_cpu=#{::Config::CONFIG[‘host_cpu’]},bin_dir=#{::Config::CONFIG[‘bindir’]},host_vendor=#{::Config::CONFIG[‘host_vendor’]},release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG[‘bindir’],
::Config::CONFIG[‘ruby_install_name’])},target=#{::Config::CONFIG[‘target’]},target_cpu=#{::Config::CONFIG[‘target_cpu’]},host_os=#{::Config::CONFIG[‘host_os’]},platform=#{RUBY_PLATFORM},host=#{::Config::CONFIG[‘host’]},target_vendor=#{::Config::CONFIG[‘target_vendor’]},version=#{RUBY_VERSION},target_os=#{::Config::CONFIG[‘target_os’]},)”)
returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin ruby -e “require
’rbconfig’; require ‘rubygems’; puts ::Gem.default_exec_format % ‘gem’” STDOUT

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: gem1.8
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End ruby -e “require ‘rbconfig’;
require ‘rubygems’; puts ::Gem.default_exec_format % ‘gem’” STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin ruby -e “require
’rbconfig’; require ‘rubygems’; puts ::Gem.default_exec_format % ‘gem’” STDERR

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End ruby -e “require ‘rbconfig’;
require ‘rubygems’; puts ::Gem.default_exec_format % ‘gem’” STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (ruby -e “require ‘rbconfig’;
require ‘rubygems’; puts ::Gem.default_exec_format % ‘gem’”) returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin ruby -e “require
’rbconfig’; puts %x{/usr/bin/ruby1.8 /usr/bin/gem1.8 env gemdir}.chomp!” STDOUT

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: /usr/lib/ruby/gems/1.8
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End ruby -e “require ‘rbconfig’;
puts %x{/usr/bin/ruby1.8 /usr/bin/gem1.8 env gemdir}.chomp!” STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin ruby -e “require
’rbconfig’; puts %x{/usr/bin/ruby1.8 /usr/bin/gem1.8 env gemdir}.chomp!” STDERR

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End ruby -e “require ‘rbconfig’;
puts %x{/usr/bin/ruby1.8 /usr/bin/gem1.8 env gemdir}.chomp!” STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (ruby -e “require ‘rbconfig’;
puts %x{/usr/bin/ruby1.8 /usr/bin/gem1.8 env gemdir}.chomp!”) returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -s STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Linux
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -s STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -s STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -s STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (uname -s) returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -r STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: 2.6.38-11-virtual
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -r STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -r STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -r STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (uname -r) returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -v STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: #50-Ubuntu SMP Mon Sep 12 23:24:19 UTC
2011
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -v STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -v STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -v STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (uname -v) returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -m STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: i686
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -m STDOUT ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -m STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG:
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -m STDERR ----
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (uname -m) returned 0
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin dmi_common
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin mono
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin mono threw exception
#<Ohai::Exceptions::Exec: command mono -V doesn’t exist or is not in the PATH>
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:in
popen4' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:inrun_command_backend’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inchdir’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/mono.rb:27:infrom_file’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:208:in
run_ohai' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:149:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:239:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inloop’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in load' /usr/bin/chef-client:19 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin eucalyptus [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin hostname [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::hostname [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin hostname -s STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ip-10-146-22-150 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End hostname -s STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin hostname -s STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End hostname -s STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (hostname -s) returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin hostname --fqdn STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ip-10-146-22-150.ap-northeast-1.compute.internal [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End hostname --fqdn STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin hostname --fqdn STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End hostname --fqdn STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (hostname --fqdn) returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin network [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::network [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin route -n | grep -m 1 ^0.0.0.0 STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: 0.0.0.0 10.146.22.1 0.0.0.0 UG 100 0 0 eth0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End route -n | grep -m 1 ^0.0.0.0 STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin route -n | grep -m 1 ^0.0.0.0 STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End route -n | grep -m 1 ^0.0.0.0 STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (route -n | grep -m 1 ^0.0.0.0) returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Using default interface for default ip and mac address [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: has_euca_mac? == false [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: has_euca_mac? == false [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: has_euca_mac? == false [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: looks_like_euca? == false [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin cloud [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin ec2 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: has_ec2_mac? == true [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: can_metadata_connect? == true [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: looks_like_ec2? == true [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin rackspace [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin keys [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin java [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin java threw exception #<Ohai::Exceptions::Exec: command java -version doesn't exist or is not in the PATH> /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:inpopen4’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:in
run_command_backend' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:inrun_command’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in chdir' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inrun_command’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/java.rb:24:in
from_file' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:inrequire_plugin’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:in all_plugins' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in all_plugins' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in all_plugins' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:208:inrun_ohai’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:149:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:239:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
loop' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application.rb:67:in
run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26 /usr/bin/chef-client:19:inload’
/usr/bin/chef-client:19
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin php
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin php threw exception
#<Ohai::Exceptions::Exec: command php -v doesn’t exist or is not in the PATH>
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:in
popen4' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:inrun_command_backend’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inchdir’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/php.rb:27:infrom_file’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:208:in
run_ohai' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:149:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:239:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inloop’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in load' /usr/bin/chef-client:19 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin virtualization [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::virtualization [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin chef [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin command [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin c [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin gcc -v STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End gcc -v STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin gcc -v STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/lto-wrapper Target: i686-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/i386-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu Thread model: posix gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End gcc -v STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (gcc -v) returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin c threw exception #<Ohai::Exceptions::Exec: command /lib/libc.so.6 doesn't exist or is not in the PATH> /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:inpopen4’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:in
run_command_backend' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:inrun_command’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in chdir' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inrun_command’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/c.rb:41:in from_file' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/c.rb:40:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/c.rb:40:in from_file' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:inrequire_plugin’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:in all_plugins' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in all_plugins' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in all_plugins' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:208:inrun_ohai’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:149:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:239:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
loop' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application.rb:67:in
run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26 /usr/bin/chef-client:19:inload’
/usr/bin/chef-client:19
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin ip_scopes
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ip_scopes: cannot load gem, plugin
disabled: no such file to load – ipaddr_extensions
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin groovy
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin groovy threw exception
#<Ohai::Exceptions::Exec: command groovy -v doesn’t exist or is not in the
PATH> /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:in
popen4' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:inrun_command_backend’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inchdir’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/groovy.rb:27:infrom_file’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:208:in
run_ohai' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:149:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:239:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inloop’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in load' /usr/bin/chef-client:19 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin python [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin python -c "import sys; print sys.version" STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End python -c "import sys; print sys.version" STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin python -c "import sys; print sys.version" STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End python -c "import sys; print sys.version" STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (python -c "import sys; print sys.version") returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin dmi [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin perl [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin perl -V:version -V:archname STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: version='5.10.1'; archname='i686-linux-gnu-thread-multi'; [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End perl -V:version -V:archname STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin perl -V:version -V:archname STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End perl -V:version -V:archname STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (perl -V:version -V:archname) returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin platform [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::platform [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::lsb [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin erlang [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin erlang threw exception #<Ohai::Exceptions::Exec: command erl +V doesn't exist or is not in the PATH> /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:inpopen4’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:in
run_command_backend' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:inrun_command’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in chdir' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inrun_command’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/erlang.rb:26:in
from_file' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:inrequire_plugin’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:in all_plugins' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in all_plugins' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in all_plugins' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:208:inrun_ohai’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:149:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:239:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
loop' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application.rb:67:in
run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26 /usr/bin/chef-client:19:inload’
/usr/bin/chef-client:19
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin ohai_time
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin passwd
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin uptime
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin lua
[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin lua threw exception
#<Ohai::Exceptions::Exec: command lua -v doesn’t exist or is not in the PATH>
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:336:in
popen4' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:98:inrun_command_backend’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:50:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:inchdir’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:49:in
run_command' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/lua.rb:27:infrom_file’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:208:in
run_ohai' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:149:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:239:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inloop’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in load' /usr/bin/chef-client:19 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin network_listeners [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Plugin network_listeners threw exception #<LoadError: no such file to load -- sigar> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in require' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/plugins/network_listeners.rb:19:infrom_file’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:117:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:110:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/client.rb:208:in
run_ohai' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:149:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:239:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inloop’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in load' /usr/bin/chef-client:19 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin ohai [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::kernel [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -o STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: GNU/Linux [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -o STDOUT ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- Begin uname -o STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: ---- End uname -o STDERR ---- [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Ran (uname -o) returned 0 [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::block_device [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::memory [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::cpu [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::uptime [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::filesystem [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::ssh_host_key [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Loading plugin linux::ps [Wed, 25 Jan 2012 10:16:29 +0000] INFO: Client key /etc/chef/client.pem is not present - registering [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Signing the request as chef-validator [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: String to sign: 'Method:POST Hashed Path:QHL2lW8OR+xoMFLchjio1Mxgw+0= X-Ops-Content-Hash:9UN2niDBoPTNdcySEvHeNILl5U4= X-Ops-Timestamp:2012-01-25T10:16:29Z X-Ops-UserId:chef-validator' Header hash: {"X-Ops-Content-Hash"=>"9UN2niDBoPTNdcySEvHeNILl5U4=", "X-Ops-Authorization-1"=>"pqzMe8Z4ZPINkEBNqsYuRa2UqAP3dhYpyR6vJIbQc6rzqu0yru3MUSFKSwtP", "X-Ops-Userid"=>"chef-validator", "X-Ops-Sign"=>"version=1.0", "X-Ops-Authorization-2"=>"PWSMu4P8cyc+m+433NYHvkUmvgEaERZbAh9IFVPQQ2HC0pEpzgSV+jFWEnMd", "X-Ops-Authorization-3"=>"LRvsAcImvO+9CkQzfd1IUDLSmzZgBKzMLVZNm/rG2wkxfvYYRSMEhfREQEsz", "X-Ops-Authorization-4"=>"+hU4EbtLdofXjH4CJpVvnAu2uVZRzlW+xL1C2vYYulRaBniRYpgfBijKYTzo", "X-Ops-Authorization-5"=>"qZEqPyoqWTCvdH/KWHcV9obF+7r0cWlAAMmOJ3dzv69ofQpsY9p+Dfo6Che2", "X-Ops-Authorization-6"=>"9v5Zky8sz21fWFzFdCiqW+sX1IQatmN5zNa/d0H35A==", "X-Ops-Timestamp"=>"2012-01-25T10:16:29Z"} [Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Sending HTTP Request via POST to 172.16.234.143:4000/clients /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/file_cache.rb:54:ininitialize’: Permission denied - /var/chef/cache/chef-stacktrace.out
(Errno::EACCES)
from
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/file_cache.rb:54:in
open' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/file_cache.rb:54:instore’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application.rb:134:in
debug_stacktrace' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:270:inrun_application’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application/client.rb:229:in
loop' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:inrun_application’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/…/lib/chef/application.rb:67:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26 from /usr/bin/chef-client:19:inload’
from /usr/bin/chef-client:19

I also put log below at my server side:
save the gem installing details…
ec2-175-41-200-254.ap-northeast-1.compute.amazonaws.com Successfully installed
chef-0.10.8
ec2-175-41-200-254.ap-northeast-1.compute.amazonaws.com 1 gem installed
ec2-175-41-200-254.ap-northeast-1.compute.amazonaws.com [Wed, 25 Jan 2012
10:37:50 +0000] INFO: *** Chef 0.10.8 ***
ec2-175-41-200-254.ap-northeast-1.compute.amazonaws.com [Wed, 25 Jan 2012
10:37:50 +0000] INFO: Client key /etc/chef/client.pem is not present -
registering
ec2-175-41-200-254.ap-northeast-1.compute.amazonaws.com [Wed, 25 Jan 2012
10:40:59 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
ec2-175-41-200-254.ap-northeast-1.compute.amazonaws.com [Wed, 25 Jan 2012
10:40:59 +0000] FATAL: Errno::ETIMEDOUT: Error connecting to
http://172.16.234.143:4000/clients - Connection timed out - connect(2)

Any suggestion?


#2

I think you are using a non-routable address for your Chef Server:
172.16.234.143

You need to forward somehow external connections to Chef Server on your
home laptop, and provide external IP of the Chef Server to chef-clients.

On 1/25/12 12:35 PM, miaoxinhuili@gmail.com wrote:

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Sending HTTP Request via POST to
172.16.234.143:4000/clients


Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com


#3

If so, is there light way for me to expose an IP of local laptop to be accessible from AWS? Thanks a lot.

Regards,

Xinhui Li

----- Original Message -----
From: “Vladimir Girnet” vgirnet@tacitknowledge.com
To: chef@lists.opscode.com
Sent: Wednesday, January 25, 2012 7:40:14 PM
Subject: [chef] Re: Bootstrap failure to ec2 instances

I think you are using a non-routable address for your Chef Server:
172.16.234.143

You need to forward somehow external connections to Chef Server on your
home laptop, and provide external IP of the Chef Server to chef-clients.

On 1/25/12 12:35 PM, miaoxinhuili@gmail.com wrote:

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Sending HTTP Request via POST to
172.16.234.143:4000/clients


Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com


#4

You might want to use a reverse SSH tunnel or VPN software such as OpenVPN.

Have you considered using the Hosted Chef platform?

–AJ

On 26 January 2012 14:35, lxinhui@vmware.com wrote:

If so, is there light way for me to expose an IP of local laptop to be accessible from AWS? Thanks a lot.

Regards,

Xinhui Li

----- Original Message -----
From: “Vladimir Girnet” vgirnet@tacitknowledge.com
To: chef@lists.opscode.com
Sent: Wednesday, January 25, 2012 7:40:14 PM
Subject: [chef] Re: Bootstrap failure to ec2 instances

I think you are using a non-routable address for your Chef Server:
172.16.234.143

You need to forward somehow external connections to Chef Server on your
home laptop, and provide external IP of the Chef Server to chef-clients.

On 1/25/12 12:35 PM, miaoxinhuili@gmail.com wrote:

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Sending HTTP Request via POST to
172.16.234.143:4000/clients


Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com


#5

Your issue is not Chef - related, but I will try to answer in more details.

Chef Server is serving clients via HTTP, it’s a web server. There are a
lot of articles on Internet how to make your local (home) web server
accessible via Internet (or to some IP addresses).

Here are some details:

  • you have an external IP address A.B.C.D - what exactly is your
    external IP you can probably find on your home router, or using site
    like http://whatismyip.com
  • you need to configure your router to forward all request to IP
    address A.B.C.D on port 4000 to your local IP 172.16.234.143 port 4000
    additionally, you can restrict from which IP addresses these
    requests are allowed. You need to find out EC2 instances external IP
    addresses, and add them to the list.
  • you need to configure knife to use external IP address as Chef server
    for AWS EC2 instances: http://A.B.C.D:4000
  • in case you do have some local hosts to bootstrap via knife, you will
    have to generate an additional configuration that will use
    http://172.16.234.143:4000 as Chef server.

I would recommend setting up an additional EC2 instance, and
install/configure Chef Server on it. You will only need to open port
4000 for this instance from security groups.

I would recommend reading more articles regarding networking and IP
protocol, firewalls, NAT, forwarding and routing.

-Vova

On 1/26/12 3:35 AM, lxinhui@vmware.com wrote:

If so, is there light way for me to expose an IP of local laptop to be accessible from AWS? Thanks a lot.

Regards,

Xinhui Li

----- Original Message -----
From: “Vladimir Girnet” vgirnet@tacitknowledge.com
To: chef@lists.opscode.com
Sent: Wednesday, January 25, 2012 7:40:14 PM
Subject: [chef] Re: Bootstrap failure to ec2 instances

I think you are using a non-routable address for your Chef Server:
172.16.234.143

You need to forward somehow external connections to Chef Server on your
home laptop, and provide external IP of the Chef Server to chef-clients.

On 1/25/12 12:35 PM, miaoxinhuili@gmail.com wrote:

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Sending HTTP Request via POST to
172.16.234.143:4000/clients


Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com


#6

Thanks, I know this has beyond the scope of chef. Appreciate for the further help and your experienced sharing. Thanks.

Based on ssh tunnel/openvpn suggestions, I set up a successful reverse tunnel from ec2 server to my local chef-server, but wondering how to execute further steps to achieve successful http post to chef-server IP:4000 I am learning networking and appreciate for any hint from your help.

Based on IP forward suggestion, I get the external IP of my local chef-server but can not ping through it from the ec2 server… I wonder if I can build a shortcut by changing my local ubuntu where chef-server runs:
a. change the url-config of my knife from http://externalip:4000 to http://externalip:80…hope this accessible from outside
b. revise the iptables to forward requests to port 80 to port 4000… then I think this request will be process by listener on 4000.

does this make any sense?

Although I can use the hosted mode and set up a ec2 chef-server, but I really hope this can be workable with my local environment for the convenience of plugin dev and freedom of manipulation…

Thanks.

Regards,

Xinhui Li

----- Original Message -----
From: “Vladimir Girnet” vgirnet@tacitknowledge.com
To: chef@lists.opscode.com
Sent: Wednesday, January 25, 2012 11:59:39 PM
Subject: [chef] Re: Re: Re: Bootstrap failure to ec2 instances

Your issue is not Chef - related, but I will try to answer in more details.

Chef Server is serving clients via HTTP, it’s a web server. There are a
lot of articles on Internet how to make your local (home) web server
accessible via Internet (or to some IP addresses).

Here are some details:

  • you have an external IP address A.B.C.D - what exactly is your
    external IP you can probably find on your home router, or using site
    like http://whatismyip.com
  • you need to configure your router to forward all request to IP
    address A.B.C.D on port 4000 to your local IP 172.16.234.143 port 4000
    additionally, you can restrict from which IP addresses these
    requests are allowed. You need to find out EC2 instances external IP
    addresses, and add them to the list.
  • you need to configure knife to use external IP address as Chef server
    for AWS EC2 instances: http://A.B.C.D:4000
  • in case you do have some local hosts to bootstrap via knife, you will
    have to generate an additional configuration that will use
    http://172.16.234.143:4000 as Chef server.

I would recommend setting up an additional EC2 instance, and
install/configure Chef Server on it. You will only need to open port
4000 for this instance from security groups.

I would recommend reading more articles regarding networking and IP
protocol, firewalls, NAT, forwarding and routing.

-Vova

On 1/26/12 3:35 AM, lxinhui@vmware.com wrote:

If so, is there light way for me to expose an IP of local laptop to be accessible from AWS? Thanks a lot.

Regards,

Xinhui Li

----- Original Message -----
From: “Vladimir Girnet” vgirnet@tacitknowledge.com
To: chef@lists.opscode.com
Sent: Wednesday, January 25, 2012 7:40:14 PM
Subject: [chef] Re: Bootstrap failure to ec2 instances

I think you are using a non-routable address for your Chef Server:
172.16.234.143

You need to forward somehow external connections to Chef Server on your
home laptop, and provide external IP of the Chef Server to chef-clients.

On 1/25/12 12:35 PM, miaoxinhuili@gmail.com wrote:

[Wed, 25 Jan 2012 10:16:29 +0000] DEBUG: Sending HTTP Request via POST to
172.16.234.143:4000/clients


Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com