From a37377329f121f3022ee53741d4cc1d631f548f8 Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Tue, 12 Mar 2019 13:08:42 +0000 Subject: [PATCH] Allow to disable the rabbitmq management plugin There is a bug in the rabbitmq-server setup for Queens that may cause the cluster to lock up and stop responding[0]. The workaround for this issue is to disable the management plugin, so add an option that allows us to deploy this workaround. [0] https://bugs.launchpad.net/bugs/1783203 Change-Id: I1d0e6c5fb8eeb35e4e966ef102e46c45c357a1ca --- attributes/default.rb | 3 +++ recipes/rabbitmq-server.rb | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 3448303..94fd96a 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -29,3 +29,6 @@ default['openstack']['mq']['search_for_cluster_disk_nodes'] = true if platform_family?('debian', 'suse') override['rabbitmq']['use_distro_version'] = true end + +# Enable the rabbitmq management plugin by default +default['openstack']['mq']['rabbitmq']['enable_mgmt_console'] = true diff --git a/recipes/rabbitmq-server.rb b/recipes/rabbitmq-server.rb index ecb61b5..70967ab 100644 --- a/recipes/rabbitmq-server.rb +++ b/recipes/rabbitmq-server.rb @@ -60,7 +60,13 @@ if node['openstack']['mq']['cluster'] end include_recipe 'rabbitmq' -include_recipe 'rabbitmq::mgmt_console' +if node['openstack']['mq']['rabbitmq']['enable_mgmt_console'] + include_recipe 'rabbitmq::mgmt_console' +else + rabbitmq_plugin 'rabbitmq_management' do + action :disable + end +end rabbitmq_user 'add openstack rabbit user' do user user