Created
April 25, 2013 13:04
-
-
Save paulczar/5459528 to your computer and use it in GitHub Desktop.
openstack chef broked.
This file contains hidden or 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
using https://github.com/rcbops/chef-cookbooks inside vagrant with a chef 10.x Server and Chef 10.x client/knife etc. | |
vagrant@chef:~/chef-cookbooks$ knife node show allinone | |
Node Name: allinone | |
Environment: example_environment | |
FQDN: allinone | |
IP: 10.0.2.15 | |
Run List: role[allinone] | |
Roles: | |
Recipes: | |
Platform: ubuntu 12.04 | |
Tags: | |
vagrant@chef:~/chef-cookbooks$ | |
root@allinone:~# chef-client | |
[2013-04-25T04:50:44+00:00] INFO: *** Chef 10.24.4 *** | |
[2013-04-25T04:50:44+00:00] INFO: [inet6] no default interface, picking the first ipaddress | |
[2013-04-25T04:50:44+00:00] INFO: ipaddress and ip6address are set from different interfaces (eth0 & eth2), macaddress has been set using the ipaddress interface | |
[2013-04-25T04:50:45+00:00] INFO: Run List is [role[allinone]] | |
[2013-04-25T04:50:45+00:00] INFO: Run List expands to [osops-utils::packages, openssh, ntp, sosreport, rsyslog::default, hardware, osops-utils::default, mysql-openstack::server, erlang::default, rabbitmq-openstack::server, keystone::server, keystone::keystone-api, glance::setup, glance::registry, glance::api, nova::nova-setup, nova-network::nova-controller, nova::scheduler, nova::api-ec2, nova::api-os-compute, nova::volume, nova::nova-cert, nova::vncproxy, mysql::client, mysql::ruby, horizon::server, nova-network::nova-compute, nova::compute] | |
[2013-04-25T04:50:45+00:00] INFO: HTTP Request Returned 404 Not Found: No routes match the request: /reports/nodes/allinone/runs | |
[2013-04-25T04:50:45+00:00] INFO: Starting Chef Run for allinone | |
[2013-04-25T04:50:45+00:00] INFO: Running start handlers | |
[2013-04-25T04:50:45+00:00] INFO: Start handlers complete. | |
[2013-04-25T04:50:45+00:00] INFO: Loading cookbooks [apache2, apt, aws, build-essential, cinder, collectd, collectd-plugins, database, dsh, erlang, glance, hardware, horizon, keepalived, keystone, monit, monitoring, mysql, mysql-openstack, nova, nova-network, ntp, openssh, openssl, osops-utils, postgresql, rabbitmq, rabbitmq-openstack, rsyslog, sosreport, sysctl, xfs, yum] | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/aws/resources/ebs_volume.rb | |
================================================================================ | |
ArgumentError | |
------------- | |
wrong number of arguments (2 for 1) | |
Cookbook Trace: | |
--------------- | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/resource.rb:734:in `const_defined?' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/resource.rb:734:in `build_from_file' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:178:in `load_lwrp_resources' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:230:in `call' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:230:in `foreach_cookbook_load_segment' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:229:in `each' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:229:in `foreach_cookbook_load_segment' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:227:in `each' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:227:in `foreach_cookbook_load_segment' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:175:in `load_lwrp_resources' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:156:in `load_lwrps' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:64:in `load' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/client.rb:198:in `setup_run_context' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/client.rb:418:in `do_run' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/client.rb:176:in `run' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application.rb:140:in `run_chef_client' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application/client.rb:274:in `run_application' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application/client.rb:267:in `loop' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application/client.rb:267:in `run_application' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application.rb:72:in `run' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/chef-client:26 | |
/usr/local/bin/chef-client:19:in `load' | |
/usr/local/bin/chef-client:19 | |
Relevant File Content: | |
---------------------- | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/resource.rb: | |
727: end | |
728: | |
729: def self.build_from_file(cookbook_name, filename, run_context) | |
730: rname = filename_to_qualified_string(cookbook_name, filename) | |
731: | |
732: # Add log entry if we override an existing light-weight resource. | |
733: class_name = convert_to_class_name(rname) | |
734>> if Chef::Resource.const_defined?(class_name, false) | |
735: Chef::Log.info("#{class_name} light-weight resource already initialized -- overriding!") | |
736: old_class = Chef::Resource.send(:remove_const, class_name) | |
737: Chef::Resource.resource_classes.delete(old_class) | |
738: end | |
739: | |
740: new_resource_class = Class.new self do |cls| | |
741: | |
742: # default initialize method that ensures that when initialize is finally | |
743: # wrapped (see below), super is called in the event that the resource | |
[2013-04-25T04:50:46+00:00] ERROR: Running exception handlers | |
[2013-04-25T04:50:46+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json | |
[2013-04-25T04:50:46+00:00] ERROR: Exception handlers complete | |
[2013-04-25T04:50:46+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2013-04-25T04:50:46+00:00] FATAL: ArgumentError: wrong number of arguments (2 for 1) | |
root@allinone:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment