Skip to content

Instantly share code, notes, and snippets.

@a13x212
Created February 21, 2015 18:54
Show Gist options
  • Save a13x212/4749f3629814597e2ab7 to your computer and use it in GitHub Desktop.
Save a13x212/4749f3629814597e2ab7 to your computer and use it in GitHub Desktop.
chef openstack error
chef exec rake aio_nova --trace
** Invoke aio_nova (first_time)
** Execute aio_nova
chef exec chef-client -z vagrant_linux.rb aio-nova.rb
[2015-02-21T13:51:37-05:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /Users/a13x212/chef-openstack-testing-stack
One version per cookbook
[2015-02-21T13:51:37-05:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.18.0
[2015-02-21T13:51:37-05:00] INFO: *** Chef 11.18.0 ***
[2015-02-21T13:51:37-05:00] INFO: Chef-client pid: 58398
[2015-02-21T13:51:39-05:00] INFO: Run List is []
[2015-02-21T13:51:39-05:00] INFO: Run List expands to []
[2015-02-21T13:51:39-05:00] INFO: Starting Chef Run for nodienode
[2015-02-21T13:51:39-05:00] INFO: Running start handlers
[2015-02-21T13:51:39-05:00] INFO: Start handlers complete.
[2015-02-21T13:51:39-05:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/nodienode/runs
resolving cookbooks for run list: []
[2015-02-21T13:51:39-05:00] INFO: Loading cookbooks []
Synchronizing Cookbooks:
Compiling Cookbooks...
[2015-02-21T13:51:40-05:00] WARN: Node nodienode has an empty run list.
Converging 3 resources
Recipe: @recipe_files::/Users/a13x212/chef-openstack-testing-stack/vagrant_linux.rb
* vagrant_box[centos7] action create[2015-02-21T13:51:40-05:00] INFO: Processing vagrant_box[centos7] action create (@recipe_files::/Users/a13x212/chef-openstack-testing-stack/vagrant_linux.rb line 3)
(up to date)
* vagrant_box[ubuntu14] action create[2015-02-21T13:51:41-05:00] INFO: Processing vagrant_box[ubuntu14] action create (@recipe_files::/Users/a13x212/chef-openstack-testing-stack/vagrant_linux.rb line 7)
(up to date)
Recipe: @recipe_files::/Users/a13x212/chef-openstack-testing-stack/aio-nova.rb
* machine[controller] action converge[2015-02-21T13:51:42-05:00] INFO: Processing machine[controller] action converge (@recipe_files::/Users/a13x212/chef-openstack-testing-stack/aio-nova.rb line 20)
[2015-02-21T13:51:42-05:00] INFO: Processing vagrant_cluster[/Users/a13x212/chef-openstack-testing-stack/vms] action create (basic_chef_client::block line 212)
[2015-02-21T13:51:42-05:00] INFO: Processing directory[/Users/a13x212/chef-openstack-testing-stack/vms] action create (basic_chef_client::block line 15)
[2015-02-21T13:51:42-05:00] INFO: Processing file[/Users/a13x212/chef-openstack-testing-stack/vms/Vagrantfile] action create (basic_chef_client::block line 16)
[2015-02-21T13:51:42-05:00] INFO: Processing file[/Users/a13x212/chef-openstack-testing-stack/vms/controller.vm] action create (basic_chef_client::block line 232)
[2015-02-21T13:51:42-05:00] INFO: Processing chef_node[controller] action create (basic_chef_client::block line 64)
[2015-02-21T13:51:45-05:00] INFO: Processing chef_node[controller] action create (basic_chef_client::block line 64)
[2015-02-21T13:51:45-05:00] INFO: Executing sudo cp /etc/chef/client.pem /tmp/client.pem.183114637 on vagrant@127.0.0.1
[2015-02-21T13:51:45-05:00] INFO: Completed cp /etc/chef/client.pem /tmp/client.pem.183114637 on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:45-05:00] INFO: Executing sudo chown vagrant /tmp/client.pem.183114637 on vagrant@127.0.0.1
[2015-02-21T13:51:45-05:00] INFO: Completed chown vagrant /tmp/client.pem.183114637 on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:45-05:00] INFO: Executing sudo rm /tmp/client.pem.183114637 on vagrant@127.0.0.1
[2015-02-21T13:51:46-05:00] INFO: Completed rm /tmp/client.pem.183114637 on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:46-05:00] INFO: Processing chef_client[controller] action create (basic_chef_client::block line 134)
[2015-02-21T13:51:46-05:00] INFO: Processing chef_node[controller] action create (basic_chef_client::block line 145)
[2015-02-21T13:51:46-05:00] INFO: Port forwarded: local URL http://localhost:8889 is available to 127.0.0.1 as http::8889 for the duration of this SSH connection.
[2015-02-21T13:51:46-05:00] INFO: Executing sudo ls -d /etc/chef/client.rb on vagrant@127.0.0.1
[2015-02-21T13:51:46-05:00] INFO: Completed ls -d /etc/chef/client.rb on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:46-05:00] INFO: Executing sudo md5sum -b /etc/chef/client.rb on vagrant@127.0.0.1
[2015-02-21T13:51:46-05:00] INFO: Completed md5sum -b /etc/chef/client.rb on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:46-05:00] INFO: Executing sudo chef-client -v on vagrant@127.0.0.1
[2015-02-21T13:51:47-05:00] INFO: Completed chef-client -v on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:47-05:00] INFO: Processing chef_node[controller] action create (basic_chef_client::block line 64)
[2015-02-21T13:51:47-05:00] INFO: Executing sudo ls -d /etc/chef/openstack_data_bag_secret on vagrant@127.0.0.1
[2015-02-21T13:51:47-05:00] INFO: Completed ls -d /etc/chef/openstack_data_bag_secret on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:47-05:00] INFO: Executing sudo md5sum -b /etc/chef/openstack_data_bag_secret on vagrant@127.0.0.1
[2015-02-21T13:51:47-05:00] INFO: Completed md5sum -b /etc/chef/openstack_data_bag_secret on vagrant@127.0.0.1: exit status 0
[2015-02-21T13:51:47-05:00] INFO: Converging controller because 'converge true' is set ...
[2015-02-21T13:51:47-05:00] INFO: Port forwarded: local URL http://localhost:8889 is available to 127.0.0.1 as http::8889 for the duration of this SSH connection.
[2015-02-21T13:51:47-05:00] INFO: Executing sudo chef-client -l info on vagrant@127.0.0.1
[controller] [2015-02-21T18:51:47+00:00] INFO: Forking chef instance to converge...
[2015-02-21T18:51:47+00:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.
To fix this issue add an entry like this to your configuration file:
```
# Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
# OR, Verify only connections to chef-server
verify_api_cert true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /etc/chef/client.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Starting Chef Client, version 12.0.3
[2015-02-21T18:51:48+00:00] INFO: *** Chef 12.0.3 ***
[2015-02-21T18:51:48+00:00] INFO: Chef-client pid: 1843
================================================================================
Chef encountered an error attempting to load the node data for "controller"
================================================================================
Unexpected Error:
-----------------
NoMethodError: undefined method `gsub' for nil:NilClass
[2015-02-21T18:51:49+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.132413216 seconds
[2015-02-21T18:51:49+00:00] ERROR: undefined method `gsub' for nil:NilClass
[2015-02-21T18:51:49+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2015-02-21T13:51:49-05:00] INFO: Completed chef-client -l info on vagrant@127.0.0.1: exit status 1
================================================================================
Error executing action `converge` on resource 'machine[controller]'
================================================================================
RuntimeError
------------
Error: command 'chef-client -l info' exited with code 1.
Resource Declaration:
---------------------
# In /Users/a13x212/chef-openstack-testing-stack/aio-nova.rb
20: machine 'controller' do
21: add_machine_options vagrant_config: controller_config
22: role 'allinone-compute'
23: role 'os-image-upload'
24: recipe 'openstack-common::openrc'
25: chef_environment 'vagrant-aio-nova'
26: file('/etc/chef/openstack_data_bag_secret',
27: "#{File.dirname(__FILE__)}/.chef/encrypted_data_bag_secret")
28: converge true
29: end
Compiled Resource:
------------------
# Declared in /Users/a13x212/chef-openstack-testing-stack/aio-nova.rb:20:in `from_file'
machine("controller") do
action :converge
retries 0
retry_delay 2
guard_interpreter :default
chef_environment "vagrant-aio-nova"
chef_server {:chef_server_url=>"http://localhost:8889", :options=>{:client_name=>"nodienode", :signing_key_filename=>"/Users/a13x212/chef-openstack-testing-stack/.chef/nodienode.pem"}}
driver "vagrant:/Users/a13x212/chef-openstack-testing-stack/vms"
machine_options #<Cheffish::MergedConfig:0x007fee618ce400 @configs=[{:vagrant_config=>" config.vm.network \"forwarded_port\", guest: 443, host: 9443\n config.vm.network \"forwarded_port\", guest: 4002, host: 4002\n config.vm.network \"forwarded_port\", guest: 5000, host: 5000\n config.vm.network \"forwarded_port\", guest: 6080, host: 6080\n config.vm.network \"forwarded_port\", guest: 8773, host: 8773\n config.vm.network \"forwarded_port\", guest: 8774, host: 8774\n config.vm.network \"forwarded_port\", guest: 35357, host: 35357\n config.vm.provider \"virtualbox\" do |v|\n v.memory = 8096\n v.cpus = 2\n v.customize [\"modifyvm\", :id, \"--nicpromisc2\", \"allow-all\"]\n v.customize [\"modifyvm\", :id, \"--natdnshostresolver1\", \"on\"]\n end\n config.vm.network \"private_network\", ip: \"192.168.100.60\"\n"}, {:vagrant_options=>{"vm.box"=>"ubuntu14"}}], @merge_arrays={}>
cookbook_name "@recipe_files"
recipe_name "/Users/a13x212/chef-openstack-testing-stack/aio-nova.rb"
run_list_modifiers [#<Chef::RunList::RunListItem:0x007fee618ce2c0 @version=nil, @type=:role, @name="allinone-compute">, #<Chef::RunList::RunListItem:0x007fee618ce0e0 @version=nil, @type=:role, @name="os-image-upload">, #<Chef::RunList::RunListItem:0x007fee618cdf50 @version=nil, @type=:recipe, @name="openstack-common::openrc">]
files {"/etc/chef/openstack_data_bag_secret"=>"/Users/a13x212/chef-openstack-testing-stack/.chef/encrypted_data_bag_secret"}
converge true
end
[2015-02-21T13:51:49-05:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2015-02-21T13:51:49-05:00] ERROR: Running exception handlers
Running handlers complete
[2015-02-21T13:51:49-05:00] ERROR: Exception handlers complete
[2015-02-21T13:51:49-05:00] FATAL: Stacktrace dumped to /Users/a13x212/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 11.663333 seconds
[2015-02-21T13:51:49-05:00] ERROR: machine[controller] (@recipe_files::/Users/a13x212/chef-openstack-testing-stack/aio-nova.rb line 20) had an error: RuntimeError: Error: command 'chef-client -l info' exited with code 1.
[2015-02-21T13:51:49-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
rake aborted!
Command failed with status (1): [chef exec chef-client -z vagrant_linux.rb ...]
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/file_utils.rb:66:in `block in create_shell_runner'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `call'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `sh'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/a13x212/chef-openstack-testing-stack/Rakefile:5:in `run_command'
/Users/a13x212/chef-openstack-testing-stack/Rakefile:31:in `block in <top (required)>'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/chefdk/embedded/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/opt/chefdk/embedded/bin/rake:23:in `load'
/opt/chefdk/embedded/bin/rake:23:in `<main>'
Tasks: TOP => aio_nova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment