sap-oc / crowbar-openstack

Openstack deployment for Crowbar
3 stars 1 forks source link

Rabbitmq cluster for sap oc #41

Open matelakat opened 7 years ago

matelakat commented 7 years ago

This is the backport of https://github.com/crowbar/crowbar-openstack/pull/887

Also added a commit to avoid migrations happening on the backport.

matelakat commented 7 years ago

First roadblock hit, after installing rabbit successfully, and trying to add keystone:

Failed to apply the proposal to: d52-54-77-77-01-01.virtual.cloud.suse.de 
Most recent logged lines from the Chef run:
116: 
117: if rabbits.empty? 
118: Chef::Log.warn("No RabbitMQ server found!") 
119: else 
120: one_rabbit = rabbits.first 
121>> client_ca_certs = if one_rabbit[:rabbitmq][:ssl][:enabled] && \ 
122: !one_rabbit[:rabbitmq][:ssl][:insecure] 
123: one_rabbit[:rabbitmq][:ssl][:client_ca_certs] 
124: end 
125: 
126: if rabbits.first[:rabbitmq][:cluster] 
127: rabbit_hosts = rabbits.map do |rabbit| 
128: port = if rabbit[:rabbitmq][:ssl][:enabled] 
129: rabbit[:rabbitmq][:ssl][:port] 
130: else 

[2017-05-31T09:30:20+00:00] ERROR: Running exception handlers 
[2017-05-31T09:30:20+00:00] ERROR: Report handler Chef::Handler::ErrorReport raised # 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/resource.rb:530:in `encode' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/resource.rb:530:in `to_json' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/resource.rb:530:in `to_json' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/2.1.0/json/common.rb:285:in `generate' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/2.1.0/json/common.rb:285:in `pretty_generate' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/json_compat.rb:107:in `to_json_pretty' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler/error_report.rb:27:in `report' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler.rb:226:in `run_report_unsafe' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler.rb:214:in `run_report_safely' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler.rb:118:in `block in run_exception_handlers' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler.rb:117:in `each' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler.rb:117:in `run_exception_handlers' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/handler.rb:127:in `block in ' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:119:in `call' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:119:in `block in run_failed' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:118:in `each' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:118:in `run_failed' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:446:in `rescue in do_run' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:455:in `do_run' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/client.rb:184:in `run' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application.rb:133:in `run_chef_client' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application/client.rb:306:in `block in run_application' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application/client.rb:294:in `loop' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application/client.rb:294:in `run_application' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/lib/chef/application.rb:65:in `run' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/lib64/ruby/gems/2.1.0/gems/chef-10.32.2/bin/chef-client:26:in `' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/bin/chef-client:23:in `load' 
[2017-05-31T09:30:20+00:00] ERROR: /usr/bin/chef-client:23:in `' 
[2017-05-31T09:30:20+00:00] ERROR: Exception handlers complete 
[2017-05-31T09:30:20+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out 
[2017-05-31T09:30:20+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass