Created
November 16, 2011 18:58
-
-
Save miketheman/1370978 to your computer and use it in GitHub Desktop.
chef-datadog handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant provision | |
[default] Running provisioner: Vagrant::Provisioners::ChefSolo... | |
[default] Generating chef JSON and uploading... | |
[default] Running chef-solo... | |
[default] stdin: is not a tty | |
[default] [Wed, 16 Nov 2011 13:57:23 -0500] INFO: *** Chef 0.10.4 *** | |
[default] [Wed, 16 Nov 2011 13:57:23 -0500] DEBUG: Building node object for ubuntu-10.04.3-64 | |
[Wed, 16 Nov 2011 13:57:23 -0500] DEBUG: Extracting run list from JSON attributes provided on command line | |
[Wed, 16 Nov 2011 13:57:23 -0500] INFO: Setting the run_list to ["recipe[chef_handler::datadog]", "recipe[dd-agent]", "recipe[nginx]"] from JSON | |
[Wed, 16 Nov 2011 13:57:23 -0500] DEBUG: Applying attributes from json file | |
[Wed, 16 Nov 2011 13:57:23 -0500] DEBUG: Platform is ubuntu version 10.04 | |
[default] [Wed, 16 Nov 2011 13:57:23 -0500] INFO: Run List is [recipe[chef_handler::datadog], recipe[dd-agent], recipe[nginx]] | |
[default] [Wed, 16 Nov 2011 13:57:23 -0500] INFO: Run List expands to [chef_handler::datadog, dd-agent, nginx] | |
[default] [Wed, 16 Nov 2011 13:57:23 -0500] INFO: Starting Chef Run for ubuntu-10.04.3-64 | |
[default] [Wed, 16 Nov 2011 13:57:23 -0500] DEBUG: No chefignore file found at /tmp/vagrant-chef-1/chef-solo-1/chefignore no files will be ignored | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook apt's providers from /tmp/vagrant-chef-1/chef-solo-1/apt/providers/repository.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/apt/providers/repository.rb into a provider named apt_repository defined in Chef::Provider::AptRepository | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook yum's providers from /tmp/vagrant-chef-1/chef-solo-1/yum/providers/key.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/yum/providers/key.rb into a provider named yum_key defined in Chef::Provider::YumKey | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook yum's providers from /tmp/vagrant-chef-1/chef-solo-1/yum/providers/repository.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/yum/providers/repository.rb into a provider named yum_repository defined in Chef::Provider::YumRepository | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook chef_handler's providers from /tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb into a provider named chef_handler defined in Chef::Provider::ChefHandler | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook apt's resources from /tmp/vagrant-chef-1/chef-solo-1/apt/resources/repository.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/apt/resources/repository.rb into a resource named apt_repository defined in Chef::Resource::AptRepository | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook yum's resources from /tmp/vagrant-chef-1/chef-solo-1/yum/resources/key.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/yum/resources/key.rb into a resource named yum_key defined in Chef::Resource::YumKey | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook yum's resources from /tmp/vagrant-chef-1/chef-solo-1/yum/resources/repository.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/yum/resources/repository.rb into a resource named yum_repository defined in Chef::Resource::YumRepository | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook chef_handler's resources from /tmp/vagrant-chef-1/chef-solo-1/chef_handler/resources/default.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-solo-1/chef_handler/resources/default.rb into a resource named chef_handler defined in Chef::Resource::ChefHandler | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Node ubuntu-10.04.3-64 loading cookbook nginx's attribute file /tmp/vagrant-chef-1/chef-solo-1/nginx/attributes/default.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Node ubuntu-10.04.3-64 loading cookbook yum's attribute file /tmp/vagrant-chef-1/chef-solo-1/yum/attributes/default.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Node ubuntu-10.04.3-64 loading cookbook dd-agent's attribute file /tmp/vagrant-chef-1/chef-solo-1/dd-agent/attributes/default.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Node ubuntu-10.04.3-64 loading cookbook chef_handler's attribute file /tmp/vagrant-chef-1/chef-solo-1/chef_handler/attributes/default.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading cookbook nginx's definitions from /tmp/vagrant-chef-1/chef-solo-1/nginx/definitions/nginx_site.rb | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading Recipe chef_handler::datadog via include_recipe | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Found recipe datadog in cookbook chef_handler | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Loading Recipe chef_handler via include_recipe | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Found recipe default in cookbook chef_handler | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: Chef Handlers will be at: /tmp/handlers | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: Processing remote_directory[/tmp/handlers] action create (chef_handler::default line 23) | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: Processing cookbook_file[/tmp/handlers/chef-datadog.rb] action create (dynamically defined) | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: Processing cookbook_file[/tmp/handlers/README] action create (dynamically defined) | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: remote_directory[/tmp/handlers] created | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: Processing gem_package[dogapi] action install (chef_handler::datadog line 7) | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: gem_package[dogapi] found installed gem dogapi version 1.2.3 matching dogapi (>= 0) | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: gem_package[dogapi] is already installed - nothing to do | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] INFO: Processing chef_handler[DataDog] action enable (chef_handler::datadog line 23) | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: DataDog has not been loaded. | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] ERROR: chef_handler[DataDog] (chef_handler::datadog line 23) has had an error | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] ERROR: Running exception handlers | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] ERROR: Exception handlers complete | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: Re-raising exception: NameError - chef_handler[DataDog] (chef_handler::datadog line 23) had an error: uninitialized constant Kernel::DataDog | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `const_get' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `klass' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:32:in `inject' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `each' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `inject' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `klass' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:33:in `class_from_file' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider.rb:104:in `instance_eval' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider.rb:104:in `action_enable' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `send' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `run_action' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/recipes/datadog.rb:28:in `from_file' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:72:in `load' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in `each' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in `load' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:195:in `setup_run_context' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:159:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-solo:25 | |
/opt/ruby/bin/chef-solo:19:in `load' | |
/opt/ruby/bin/chef-solo:19 | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] DEBUG: NameError: chef_handler[DataDog] (chef_handler::datadog line 23) had an error: uninitialized constant Kernel::DataDog | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `const_get' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `klass' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:32:in `inject' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `each' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `inject' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:81:in `klass' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/providers/default.rb:33:in `class_from_file' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider.rb:104:in `instance_eval' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider.rb:104:in `action_enable' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `send' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `run_action' | |
/tmp/vagrant-chef-1/chef-solo-1/chef_handler/recipes/datadog.rb:28:in `from_file' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:72:in `load' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in `each' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in `load' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:195:in `setup_run_context' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:159:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-solo:25 | |
/opt/ruby/bin/chef-solo:19:in `load' | |
/opt/ruby/bin/chef-solo:19 | |
[default] [Wed, 16 Nov 2011 13:57:24 -0500] FATAL: NameError: chef_handler[DataDog] (chef_handler::datadog line 23) had an error: uninitialized constant Kernel::DataDog | |
The following SSH command responded with a non-zero exit status. | |
Vagrant assumes that this means the command failed! | |
chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json | |
The output of the command prior to failing is outputted below: | |
[no output] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment