Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created June 23, 2016 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burtlo/ccb7ba0483936021864864ce79d700f4 to your computer and use it in GitHub Desktop.
Save burtlo/ccb7ba0483936021864864ce79d700f4 to your computer and use it in GitHub Desktop.
[ec2-user@ip-10-0-0-10 delivery-cluster-master]$ rake setup:cluster
-bash: rake: command not found
[ec2-user@ip-10-0-0-10 delivery-cluster-master]$ chef exec rake setup:cluster
Verifying ChefDK version
Running ChefDK version 0.10.0
Configuring the provisioner node
[2016-06-23T06:48:43+00:00] WARN: chef_gem[chef-provisioning-ssh] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in `block in run_chef_recipe'
[2016-06-23T06:48:43+00:00] WARN: chef_gem[chef-provisioning-ssh] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:25:in `block in run_chef_recipe'
[2016-06-23T06:48:43+00:00] WARN: chef_gem[chef-provisioning-ssh] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe'
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* chef_gem[chef-provisioning-ssh] action installWARN: Unresolved specs during Gem::Specification.reset:
httpclient (>= 2.2.0.2, ~> 2.2)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
(up to date)
[2016-06-23T06:48:45+00:00] WARN: chef_gem[chef-provisioning-vagrant] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in `block in run_chef_recipe'
[2016-06-23T06:48:45+00:00] WARN: chef_gem[chef-provisioning-vagrant] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:25:in `block in run_chef_recipe'
[2016-06-23T06:48:45+00:00] WARN: chef_gem[chef-provisioning-vagrant] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe'
* chef_gem[chef-provisioning-vagrant] action install (up to date)
[2016-06-23T06:48:45+00:00] WARN: chef_gem[chef-provisioning-aws] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in `block in run_chef_recipe'
[2016-06-23T06:48:45+00:00] WARN: chef_gem[chef-provisioning-aws] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:25:in `block in run_chef_recipe'
[2016-06-23T06:48:45+00:00] WARN: chef_gem[chef-provisioning-aws] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe'
* chef_gem[chef-provisioning-aws] action install (up to date)
[2016-06-23T06:48:45+00:00] WARN: chef_gem[knife-push] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:28:in `run_chef_recipe'
[2016-06-23T06:48:45+00:00] WARN: chef_gem[knife-push] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:28:in `run_chef_recipe'
[2016-06-23T06:48:45+00:00] WARN: chef_gem[knife-push] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:28:in `run_chef_recipe'
* chef_gem[knife-push] action install (up to date)
* chef_gem[chef-provisioning-ssh] action install (up to date)
* chef_gem[chef-provisioning-vagrant] action install (up to date)
* chef_gem[chef-provisioning-aws] action install (up to date)
* chef_gem[knife-push] action install (up to date)
Download and vendor the necessary cookbooks locally
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/webagent-cookie.rb:458: warning: already initialized constant HTTPClient::CookieManager
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/cookie.rb:8: warning: previous definition of CookieManager was here
Resolving cookbook dependencies...
Fetching 'chef-server-12' from source at vendor/chef-server-12
Fetching 'delivery-cluster' from source at .
Using apt (4.0.1)
Using build-essential (6.0.0)
Using chef-server-12 (0.1.16) from source at vendor/chef-server-12
Using chef-ingredient (0.18.5)
Using chef-splunk (1.5.0) from https://github.com/chef-cookbooks/chef-splunk.git (at master)
Using chef-sugar (3.3.0)
Using chef-vault (1.3.3)
Using chef_handler (1.4.0)
Using compat_resource (12.10.6)
Using delivery-base (0.2.2) from https://github.com/chef-cookbooks/delivery-base.git (at master)
Using delivery-cluster (0.6.13) from source at .
Using delivery_build (0.4.27) from https://github.com/chef-cookbooks/delivery_build.git (at master)
Using dmg (2.4.0)
Using git (4.5.0)
Using hostsfile (2.4.5)
Using mingw (1.2.0)
Using packagecloud (0.2.3)
Using push-jobs (3.2.0)
Using runit (1.7.7) from https://github.com/afiune/runit.git (at afiune/make-it-work-in-oel)
Using seven_zip (2.0.1)
Using windows (1.44.0)
Using yum (3.11.0)
Using yum-epel (0.7.0)
Vendoring apt (4.0.1) to cookbooks/apt
Vendoring build-essential (6.0.0) to cookbooks/build-essential
Vendoring chef-ingredient (0.18.5) to cookbooks/chef-ingredient
Vendoring chef-server-12 (0.1.16) to cookbooks/chef-server-12
Vendoring chef-splunk (1.5.0) to cookbooks/chef-splunk
Vendoring chef-sugar (3.3.0) to cookbooks/chef-sugar
Vendoring chef-vault (1.3.3) to cookbooks/chef-vault
Vendoring chef_handler (1.4.0) to cookbooks/chef_handler
Vendoring compat_resource (12.10.6) to cookbooks/compat_resource
Vendoring delivery-base (0.2.2) to cookbooks/delivery-base
Vendoring delivery-cluster (0.6.13) to cookbooks/delivery-cluster
Vendoring delivery_build (0.4.27) to cookbooks/delivery_build
Vendoring dmg (2.4.0) to cookbooks/dmg
Vendoring git (4.5.0) to cookbooks/git
Vendoring hostsfile (2.4.5) to cookbooks/hostsfile
Vendoring mingw (1.2.0) to cookbooks/mingw
Vendoring packagecloud (0.2.3) to cookbooks/packagecloud
Vendoring push-jobs (3.2.0) to cookbooks/push-jobs
Vendoring runit (1.7.7) to cookbooks/runit
Vendoring seven_zip (2.0.1) to cookbooks/seven_zip
Vendoring windows (1.44.0) to cookbooks/windows
Vendoring yum (3.11.0) to cookbooks/yum
Vendoring yum-epel (0.7.0) to cookbooks/yum-epel
Current chef environment => environments/test.json
Setup the Chef Delivery cluster
Starting Chef Client, version 12.5.1
[2016-06-23T06:48:49+00:00] WARN: Run List override has been provided.
[2016-06-23T06:48:49+00:00] WARN: Original Run List: []
[2016-06-23T06:48:49+00:00] WARN: Overridden Run List: [recipe[delivery-cluster::setup]]
resolving cookbooks for run list: ["delivery-cluster::setup"]
Synchronizing Cookbooks:
- chef-server-12 (0.1.16)
- delivery-cluster (0.6.13)
- chef-ingredient (0.18.5)
- git (4.5.0)
- apt (4.0.1)
- yum (3.11.0)
- delivery_build (0.4.27)
- chef-splunk (1.5.0)
- hostsfile (2.4.5)
- build-essential (6.0.0)
- dmg (2.4.0)
- windows (1.44.0)
- yum-epel (0.7.0)
- compat_resource (12.10.6)
- chef-sugar (3.3.0)
- delivery-base (0.2.2)
- chef-vault (1.3.3)
- seven_zip (2.0.1)
- mingw (1.2.0)
- chef_handler (1.4.0)
- push-jobs (3.2.0)
- runit (1.7.7)
- packagecloud (0.2.3)
Compiling Cookbooks...
[2016-06-23T06:48:54+00:00] WARN: Cloning resource attributes for machine[chef-server-delivery-demo] from prior resource (CHEF-3694)
[2016-06-23T06:48:54+00:00] WARN: Previous machine[chef-server-delivery-demo]: /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb:31:in `from_file'
[2016-06-23T06:48:54+00:00] WARN: Current machine[chef-server-delivery-demo]: /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb:57:in `from_file'
[2016-06-23T06:48:54+00:00] WARN: Cloning resource attributes for machine[delivery-server-delivery-demo] from prior resource (CHEF-3694)
[2016-06-23T06:48:54+00:00] WARN: Previous machine[delivery-server-delivery-demo]: /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_delivery_server.rb:67:in `from_file'
[2016-06-23T06:48:54+00:00] WARN: Current machine[delivery-server-delivery-demo]: /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_delivery_server.rb:106:in `from_file'
[2016-06-23T06:48:54+00:00] WARN: Cloning resource attributes for machine[chef-server-delivery-demo] from prior resource (CHEF-3694)
[2016-06-23T06:48:54+00:00] WARN: Previous machine[chef-server-delivery-demo]: /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb:57:in `from_file'
[2016-06-23T06:48:54+00:00] WARN: Current machine[chef-server-delivery-demo]: /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_delivery_server.rb:177:in `from_file'
Converging 33 resources
Recipe: delivery-cluster::_settings
* link[/home/ec2-user/delivery-cluster-master/.chef/../.chef/delivery-cluster-data] action create (up to date)
Recipe: delivery-cluster::setup_chef_server
* machine[chef-server-delivery-demo] action converge
================================================================================
Error executing action `converge` on resource 'machine[chef-server-delivery-demo]'
================================================================================
NoMethodError
-------------
No resource or method named `delayed_actions' for `Cheffish::BasicChefClient "block"'
Cookbook Trace:
---------------
/home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:34:in `delayed_actions'
/home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
Resource Declaration:
---------------------
# In /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb
31: machine chef_server_hostname do
32: provisioning.specific_machine_options('chef-server').each do |option|
33: add_machine_options(option)
34: end
35: # Transfer any trusted certs
36: Dir.glob("#{Chef::Config[:trusted_certs_dir]}/*").each do |cert_path|
37: file ::File.join('/etc/chef/trusted_certs', ::File.basename(cert_path)), cert_path
38: end
39: action :converge
40: end
41:
Compiled Resource:
------------------
# Declared in /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb:31:in `from_file'
machine("chef-server-delivery-demo") do
action [:converge]
retries 0
retry_delay 2
default_guard_interpreter :default
chef_server {:chef_server_url=>"chefzero://localhost:8890", :options=>{:client_name=>"delivery", :signing_key_filename=>nil, :api_version=>"0"}}
driver "ssh"
machine_options #<Cheffish::MergedConfig:0x00000005335b80 @configs=[{:transport_options=>{:ip_address=>"10.0.0.11"}}, {:convergence_options=>{:bootstrap_proxy=>nil, :chef_config=>"no_proxy", :chef_version=>nil, :install_sh_path=>nil}, :transport_options=>{:username=>"ubuntu", :ssh_options=>{:user=>"ubuntu", :password=>nil, :keys=>["/home/ec2-user/.ssh/training-ec2-keypair.pem"]}, :options=>{:prefix=>nil}}}], @merge_arrays={}>
declared_type :machine
cookbook_name "delivery-cluster"
recipe_name "setup_chef_server"
end
Running handlers:
[2016-06-23T06:48:54+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-06-23T06:48:54+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 05 seconds
[2016-06-23T06:48:54+00:00] FATAL: Stacktrace dumped to /home/ec2-user/delivery-cluster-master/.chef/local-mode-cache/cache/chef-stacktrace.out
[2016-06-23T06:48:54+00:00] ERROR: machine[chef-server-delivery-demo] (delivery-cluster::setup_chef_server line 31) had an error: NoMethodError: No resource or method named `delayed_actions' for `Cheffish::BasicChefClient "block"'
[2016-06-23T06:48:54+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
rake aborted!
Failed executing ChefZero run
/home/ec2-user/delivery-cluster-master/Rakefile:128:in `chef_zero'
/home/ec2-user/delivery-cluster-master/Rakefile:390:in `block (2 levels) in <top (required)>'
Tasks: TOP => setup:cluster
(See full trace by running task with --trace)
[ec2-user@ip-10-0-0-10 delivery-cluster-master]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment