Skip to content

Instantly share code, notes, and snippets.

@fifthecho
Created October 3, 2014 16:49
Show Gist options
  • Save fifthecho/d51ab46ef5d39afbff36 to your computer and use it in GitHub Desktop.
Save fifthecho/d51ab46ef5d39afbff36 to your computer and use it in GitHub Desktop.
chef-client -z ./recipes/default.rb [12:34:09 PM]
[2014-10-03T12:34:10-04:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /home/jmoody/Code/Chef
One version per cookbook
[2014-10-03T12:34:10-04:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.16.2
[2014-10-03T12:34:10-04:00] INFO: *** Chef 11.16.2 ***
[2014-10-03T12:34:10-04:00] INFO: Chef-client pid: 31058
[2014-10-03T12:34:17-04:00] INFO: Run List is []
[2014-10-03T12:34:17-04:00] INFO: Run List expands to []
[2014-10-03T12:34:17-04:00] INFO: Starting Chef Run for jmoody
[2014-10-03T12:34:17-04:00] INFO: Running start handlers
[2014-10-03T12:34:17-04:00] INFO: Start handlers complete.
[2014-10-03T12:34:17-04:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/jmoody/runs
resolving cookbooks for run list: []
[2014-10-03T12:34:17-04:00] INFO: Loading cookbooks []
Synchronizing Cookbooks:
Compiling Cookbooks...
[2014-10-03T12:34:18-04:00] WARN: Node jmoody has an empty run list.
Converging 4 resources
Recipe: @recipe_files::/home/jmoody/Code/Chef/cookbooks/multiservertest/recipes/default.rb
* machine[mysql1] action converge[2014-10-03T12:34:18-04:00] INFO: Processing machine[mysql1] action converge (@recipe_files::/home/jmoody/Code/Chef/cookbooks/multiservertest/recipes/default.rb line 31)
================================================================================
Error executing action `converge` on resource 'machine[mysql1]'
================================================================================
RuntimeError
------------
Canonical driver fog:CloudStack:http://cloudstack.fifthecho.com:8080/client/api for fog:CloudStack has already been created! Current options {:compute_options=>{:cloudstack_scheme=>"http", :cloudstack_port=>8080, :cloudstack_host=>"cloudstack.fifthecho.com", :cloudstack_path=>"/client/api", :cloudstack_api_key=>"KEY", :cloudstack_secret_access_key=>"KEY"}} would be ignored.
Resource Declaration:
---------------------
# In /home/jmoody/Code/Chef/cookbooks/multiservertest/recipes/default.rb
31: machine "mysql#{server}" do
32: recipe 'mysql::server'
33: tag 'database'
34: converge true
35: end
36: end
Compiled Resource:
------------------
# Declared in /home/jmoody/Code/Chef/cookbooks/multiservertest/recipes/default.rb:31:in `block in from_file'
machine("mysql1") do
action :converge
retries 0
retry_delay 2
guard_interpreter :default
chef_server {:chef_server_url=>"http://localhost:8889", :options=>{:client_name=>"jmoody", :signing_key_filename=>"/home/jmoody/.chef/jmoody.pem"}}
driver "fog:CloudStack"
machine_options {:bootstrap_options=>{:flavor_id=>"d04b4fb7-e0c6-4acc-85da-56437b8b873a", :image_id=>"30aee694-e115-4e94-8553-7e20ff730853", :zone_id=>"b7ee7151-b539-4c82-85d9-841c8c2b405d", :security_group_ids=>"77876e01-44c8-11e4-ad1f-52540080ad25", :key_name=>"jmoody_fifthecho"}}
cookbook_name "@recipe_files"
recipe_name "/home/jmoody/Code/Chef/cookbooks/multiservertest/recipes/default.rb"
run_list_modifiers [#<Chef::RunList::RunListItem:0x0000000452a900 @version=nil, @type=:recipe, @name="mysql::server">]
attribute_modifiers [["tags", #<Proc:0x0000000452a450@/home/jmoody/.rvm/gems/ruby-2.1.3/gems/cheffish-0.8.3/lib/cheffish.rb:149>]]
converge true
end
[2014-10-03T12:34:18-04:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2014-10-03T12:34:18-04:00] ERROR: Running exception handlers
Running handlers complete
[2014-10-03T12:34:18-04:00] ERROR: Exception handlers complete
[2014-10-03T12:34:18-04:00] FATAL: Stacktrace dumped to /home/jmoody/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 7.646414209 seconds
[2014-10-03T12:34:18-04:00] ERROR: machine[mysql1] (@recipe_files::/home/jmoody/Code/Chef/cookbooks/multiservertest/recipes/default.rb line 31) had an error: RuntimeError: Canonical driver fog:CloudStack:http://cloudstack.fifthecho.com:8080/client/api for fog:CloudStack has already been created! Current options {:compute_options=>{:cloudstack_scheme=>"http", :cloudstack_port=>8080, :cloudstack_host=>"cloudstack.fifthecho.com", :cloudstack_path=>"/client/api", :cloudstack_api_key=>"KEY", :cloudstack_secret_access_key=>"KEY"}} would be ignored.
[2014-10-03T12:34:18-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment