Missing policy for RabbitMQ

Bug #1589599 reported by Alexey Galkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Fix Released
Critical
Alexey Lebedeff
9.x
Fix Released
Critical
Alexey Lebedeff

Bug Description

RabbitMQ hasn't any policy. By default pacemaker has incorrect configuration for rabbitmq.

Steps to reproduce:

1. Deploy env with 3 controller + 1 compute
2. Make ssh to controller and execute:
 root@node-2:~# file $(pcs resource show p_rabbitmq-server | grep policy_file | awk -F 'policy_file=' '{print $2}')
/usr/sbin/set_rabbitmq_policy: directory
3. And execute:
 root@node-2:~# rabbitmqctl list_policies
 Listing policies ...
 root@node-2:~#

Expected results:

[Step2] Make ssh to controller and execute:
 root@node-2:~# file $(pcs resource show p_rabbitmq-server | grep policy_file | awk -F 'policy_file=' '{print $2}')
/usr/sbin/set_rabbitmq_policy/set_rabbitmq_policy.sh: ASCII text

[Step3] And execute:
root@node-2:~# rabbitmqctl list_policies
Listing policies ...
/ ha-notif all ^(event|metering|notifications)\\. {"ha-mode":"all","ha-sync-mode":"automatic"} 0
/ heat_rpc_expire all ^heat-engine-listener\\. {"expires":3600000} 1
/ results_expire all ^results\\. {"expires":3600000} 1
/ tasks_expire all ^tasks\\. {"expires":3600000} 1
root@node-2:~#

Actual:

[Step 2] Make ssh to controller and execute:
 root@node-2:~# file $(pcs resource show p_rabbitmq-server | grep policy_file | awk -F 'policy_file=' '{print $2}')
/usr/sbin/set_rabbitmq_policy: directory

[Step 3] And execute:
 root@node-2:~# rabbitmqctl list_policies
 Listing policies ...
 root@node-2:~#

Reproducibility:
 Always

Workaround:
 1.Make ssh on one of controllers and execute: crm_resource --resource p_rabbitmq-server --set-parameter policy_file --parameter-value /usr/sbin/set_rabbitmq_policy/set_rabbitmq_policy.sh
 2.Restart rabbitmq cluster with pcs by command: pcs resource restart p_rabbitmq-server

Impact:
 This bug break events replication (Messages(events) are lost when rabbit restarting on one of nodes). May be critical/blocker for celiometers.

Description of the environment:
 iso: 9.0-mos.all #443.
 shotgun2 report: http://paste.openstack.org/show/508416

Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Alexey Galkin (agalkin)
description: updated
tags: removed: need-info
Changed in mos:
assignee: MOS Oslo (mos-oslo) → Alexey Lebedeff (alebedev-a)
Revision history for this message
Dina Belova (dbelova) wrote :
Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Dina Belova (dbelova) wrote :
tags: added: blocker-for-qa
Revision history for this message
Alexey Galkin (agalkin) wrote :

Verifying on MOS 9.0 (iso: 9.0-mos.all #462)

Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :

Verified on Fuel 10 build# 1472:

root@node-2:~# rabbitmqctl list_policies
Listing policies ...
/ ha-notif all ^(event|metering|notifications)\\. {"ha-mode":"all","ha-sync-mode":"automatic"} 0
/ heat_worker_rpc_expire all ^engine_worker\\. {"expires":3600000} 1
/ heat_engine_rpc_expire all ^heat-engine-listener\\. {"expires":3600000} 1
/ results_expire all ^results\\. {"expires":3600000} 1
/ tasks_expire all ^tasks\\. {"expires":3600000} 1
root@node-2:~#

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.