rabbitmq-server is always restarted on config-changed hook firing

Bug #1409805 reported by Billy Olsen
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
rabbitmq-server (Juju Charms Collection)
Fix Released
High
Billy Olsen

Bug Description

Whenever a juju config-changed hook is fired on the rabbitmq-server services, the rabbitmq service is restarted - regardless of whether a change was actively made or not.

This causes problems in deployments such as openstack services which are using the rabbitmq-server as they do not have any heartbeating mechanism so it causes various timeouts and random failures of API requests etc when the rabbitmq service is restarted.

One of the notable conditions this is occuring appears to be when a juju backup is performed (see https://bugs.launchpad.net/juju-core/+bug/1403243/comments/5).

Tags: cts

Related branches

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Note: checking the config-changed hook logic - the service is always being restarted in most cases http://bazaar.launchpad.net/~charmers/charms/trusty/rabbitmq-server/trunk/view/head:/hooks/rabbitmq_server_relations.py#L632. I believe the only case it is not being restarted in is when the charm is part of an ha relationship in an active-passive configuration and the current node is not the elected leader, effectively causing a restart for all cases in which the rabbitmq-server is available for use.

Changed in rabbitmq-server (Juju Charms Collection):
assignee: nobody → Billy Olsen (billy-olsen)
status: New → In Progress
Changed in rabbitmq-server (Juju Charms Collection):
status: In Progress → Fix Committed
Revision history for this message
Nobuto Murata (nobuto) wrote :
Changed in rabbitmq-server (Juju Charms Collection):
status: Fix Committed → Fix Released
Changed in rabbitmq-server (Juju Charms Collection):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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