Hi,
actually I got much further in my provisioning of a swift cluster. My first step - when I do understand that correctly - is to install a management-Server. While the installing, I get the following error in the step that tries to generate the rings.
TypeError: openstack_object_storage_ring_script[/etc/Swift/ring-Workspace/generate-rings.sh] (openstack-object-storage::ring-repo line 162) had an error: TypeError: no implicit conversion of Symbol into integer
I yet have only created the secret data bags as follows (very secret data :-)):
mkdir data_bags\secrets
echo { “id”: “swift_hash_path_prefix”, “swift_hash_path_prefix”: “SOME_PREFIX” } > data_bags\secrets\swift_hash_path_prefix.json
echo { “id”: “swift_hash_path_suffix”, “swift_hash_path_suffix”: “SOME_SUFFIX” } > data_bags\secrets\swift_hash_path_suffix.json
echo { “id”: “swift_authkey”, “swift_authkey”: “Key4All” } > data_bags\secrets\swift_authkey.json
echo { “id”: “dispersion_auth_user”, “dispersion_auth_user”: “user” } > data_bags\secrets\dispersion_auth_user.json
echo { “id”: “dispersion_auth_key”, “dispersion_auth_key”: “key” } > data_bags\secrets\dispersion_auth_key.json
start chef exec knife data bag create secrets
sleep 15
start chef exec knife data bag from file secrets swift_hash_path_prefix.json --secret-file .chef/openstack_data_bag_secret
start chef exec knife data bag from file secrets swift_hash_path_suffix.json --secret-file .chef/openstack_data_bag_secret
start chef exec knife data bag from file secrets swift_authkey.json --secret-file .chef/openstack_data_bag_secret
start chef exec knife data bag from file secrets dispersion_auth_user.json --secret-file .chef/openstack_data_bag_secret
start chef exec knife data bag from file secrets dispersion_auth_key.json --secret-file .chef/openstack_data_bag_secret
What do I miss to get a management-Server running?
Is there another order required in the nodes (and their roles)?
Here is the stacktrace for the failing script:
Generated at 2016-03-01 06:48:32 -0800
TypeError: openstack_object_storage_ring_script[/etc/swift/ring-workspace/generate-rings.sh] (openstack-object-storage::ring-repo line 162) had an error: TypeError: no implicit conversion of Symbol into Integer
/var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:79:in []' /var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:79:in
block (2 levels) in generate_script’
/var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:78:in each' /var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:78:in
block in generate_script’
/var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:38:in each' /var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:38:in
generate_script’
/var/chef/cache/cookbooks/openstack-object-storage/providers/ring_script.rb:272:in block in class_from_file' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/provider/lwrp_base.rb:87:in
instance_eval’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/provider/lwrp_base.rb:87:in block in action' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/provider.rb:144:in
run_action’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource.rb:596:in run_action' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/runner.rb:73:in
run_action’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/runner.rb:105:in block (2 levels) in converge' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/runner.rb:105:in
each’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/runner.rb:105:in block in converge' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/resource_list.rb:83:in
block in execute_each_resource’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/stepable_iterator.rb:116:in
call_iterator_block’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/stepable_iterator.rb:104:in
iterate’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/resource_collection/resource_list.rb:81:in
execute_each_resource’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/runner.rb:104:in converge' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/client.rb:668:in
block in converge’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/client.rb:663:in catch' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/client.rb:663:in
converge’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/client.rb:702:in converge_and_save' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/client.rb:280:in
run’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application.rb:270:in block in fork_chef_client' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application.rb:258:in
fork’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application.rb:258:in fork_chef_client' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application.rb:223:in
block in run_chef_client’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/local_mode.rb:44:in with_server_connectivity' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application.rb:211:in
run_chef_client’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application/client.rb:433:in block in interval_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application/client.rb:423:in
loop’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application/client.rb:423:in interval_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application/client.rb:412:in
run_application’
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/application.rb:58:in run' /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/bin/chef-client:26:in
<top (required)>’
/usr/bin/chef-client:50:in `load’
Thanks, Lothar