lp:~thedac/charms/trusty/rabbitmq-server/native-cluster-race-fixes

Created by David Ames and last modified
Get this branch:
bzr branch lp:~thedac/charms/trusty/rabbitmq-server/native-cluster-race-fixes
Only David Ames can upload to this branch. If you are David Ames please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
David Ames
Status:
Development

Recent revisions

112. By David Ames

Get cookie from juju elected leader, update cookie locally and force cluster-relation-changed hooks to run on peers.
leader-election-changed runs only occur when using a version of juju with leader election so there is not the same level of uncertainty in this hook, therefore, force update_cookie to use the leader-get cookie.
peer_echo bails out if we are using LE juju. So we were in a chicken and egg scenario where peers where never clustering. The first attempted fix called cluster_changed() from leader-settings-changed but this had its own problems. Rather poke the cluster relation so that cluster-relation-changed hooks fire which leads to clustering.

111. By David Ames

leader-settings-changed may run before the cluster relation exists.

110. By David Ames

Address race conditions from LP Bug#1486177.
Execute cluster_changed when leader-settings-changed hooks runs.
Re-order peer_echo and peer_retrieve for legacy fall back leadership election. Peer_echo must happen before peer_retrieve.

109. By Billy Olsen

[billy-olsen,r=trivial] Undo last 2 commits which has rabbit in a
bad state.

108. By Billy Olsen

[thedac,r=billy-olsen] Fix clustering race conditions.

For juju >= 1.24 run cluster_changed() when the leader-settings-changed hook executes.
For juju < 1.24 use remote_unit() in relation_get when in a native cluster relation hook

Partially-Closes Bug: 1486177

107. By Billy Olsen

[niedbalski,r=billy-olsen] Fix rabbit clustering when dns resolution is
not available.

106. By Billy Olsen

[1chb1n,r=billy-olsen] Update the collect_rabbitmq_stats script to check for
the updated location of the pid file in >= vivid.

Closes-Bug: #1485722

105. By Liam Young

[gnuoy,trivial] Charmhelper sync (+1'd by mojo)

104. By Edward Hope-Morley

[billy-olsen,r=hopem]

Adds cli to charmhelpers sync to fix amulet
test import issue.

103. By Liam Young

[gnuoy,trivial] Pre-release charmhelper sync to pickup leadership election peer migration fix

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:charms/rabbitmq-server
This branch contains Public information 
Everyone can see this information.

Subscribers