lp:~thedac/charms/trusty/rabbitmq-server/native-cluster-race-fixes
- Get this branch:
- bzr branch lp:~thedac/charms/trusty/rabbitmq-server/native-cluster-race-fixes
Branch merges
- Liam Young (community): Approve
- Billy Olsen: Needs Resubmitting
- Ryan Beisner (community): Needs Resubmitting
-
Diff: 107 lines (+36/-11)2 files modifiedhooks/rabbit_utils.py (+6/-1)
hooks/rabbitmq_server_relations.py (+30/-10)
Related bugs
Bug #1486177: 3-node native rabbitmq cluster race | Critical | Fix Released |
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. - 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. - 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 hookPartially-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
- 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