Hi,
I am new to chef and until yet I got up and running a chef server and a developer box using vagrant to spin up machines using chef client.
After forking all git repos that are required for a swift server (cluster) here https://github.com/lollisoft/swift, I was able to upload all cookbooks swift depends on.
After all I was not able to get rid of the following error:
==> default: ===================================================================
==> default: Recipe Compile Error in /var/chef/cache/cookbooks/swift/recipes/man
agement-server.rb
==> default: ===================================================================
==> default: NoMethodError
==> default: -------------
==> default: undefined method []' for nil:NilClass ==> default: Cookbook Trace: ==> default: --------------- ==> default: /var/chef/cache/cookbooks/swift/recipes/common.rb:70:in
block in
from_file’
==> default: /var/chef/cache/cookbooks/swift/recipes/common.rb:64:in from_fil e' ==> default: /var/chef/cache/cookbooks/swift/recipes/management-server.rb:21:i n
from_file’
==> default: Relevant File Content:
==> default: ----------------------
==> default: /var/chef/cache/cookbooks/swift/recipes/common.rb:
==> default: 63: # drop a ring puller script so we can dsh ring pulls
==> default: 64: template “/etc/swift/pull-rings.sh” do
==> default: 65: source “pull-rings.sh.erb”
==> default: 66: owner “swift”
==> default: 67: group “swift”
==> default: 68: mode “0700”
==> default: 69: variables({
==> default: 70>> :builder_ip => git_service[“host”],
==> default: 71: :service_prefix => platform_options[“service_pr
efix”]
==> default: 72: })
==> default: 73: only_if “/usr/bin/id swift”
==> default: 74: end
==> default: 75:
==> default: 76: execute “/etc/swift/pull-rings.sh” do
==> default: 77: cwd “/etc/swift”
==> default: 78: only_if “[ -x /etc/swift/pull-rings.sh ]”
==> default: 79: end
==> default: Running handlers:
==> default: [2016-02-29T02:08:04-08:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2016-02-29T02:08:04-08:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 0 resources updated in 11 seconds
==> default: [2016-02-29T02:08:04-08:00] FATAL: Stacktrace dumped to /var/chef/c
ache/chef-stacktrace.out
==> default: [2016-02-29T02:08:04-08:00] FATAL: Please provide the contents of t
he stacktrace.out file if you file a bug report
==> default: [2016-02-29T02:08:04-08:00] ERROR: undefined method `[]’ for nil:Ni
lClass
==> default: [2016-02-29T02:08:04-08:00] FATAL: Chef::Exceptions::ChildConvergeE
rror: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
As of the maintainer of that swift cookbook mentioned the usage of ansible and do no longer support chef, I am set up.
One solution would propably using another swift cookbook from here:
https://github.com/openstack/cookbook-openstack-object-storage, but I like to understand the
error first.
Do I miss something?
Is there any other swift repo supported by Chef (may be cookbook-openstack-object-storage)?
Any help is welcome!
Thanks, Lothar