commit 2472e1ca9fbd68cdd50640eadd071177ddc5968e
Author: David Ames <email address hidden>
Date: Fri Jan 13 20:36:12 2017 -0800
Wait until clustered before running client hooks
RabbitMQ takes some time to fully cluster. The charm was previously
running amqp-relation-changed hooks whenever they were queued even
if the cluster was not yet complete. This led to split brain
scenarios. Client authentication to one or more nodes could fail.
This change confirms the entire cluster is ready before running
client amqp-relation-changed hooks.
min-cluster-size can now be used to attempt to guarantee the cluster
is ready with the expected number of nodes. If min-cluster-size is
not set the charm will still determine based on the information
available if all the cluster nodes are ready. Single node
deployments are still possible.
Reviewed: https:/ /review. openstack. org/422318 /git.openstack. org/cgit/ openstack/ charm-rabbitmq- server/ commit/ ?id=2472e1ca9fb d68cdd50640eadd 071177ddc5968e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2472e1ca9fbd68c dd50640eadd0711 77ddc5968e
Author: David Ames <email address hidden>
Date: Fri Jan 13 20:36:12 2017 -0800
Wait until clustered before running client hooks
RabbitMQ takes some time to fully cluster. The charm was previously changed hooks whenever they were queued even
running amqp-relation-
if the cluster was not yet complete. This led to split brain
scenarios. Client authentication to one or more nodes could fail.
This change confirms the entire cluster is ready before running changed hooks.
client amqp-relation-
min- cluster- size can now be used to attempt to guarantee the cluster
is ready with the expected number of nodes. If min-cluster-size is
not set the charm will still determine based on the information
available if all the cluster nodes are ready. Single node
deployments are still possible.
Partial-Bug: #1657245 e65a3a8764efdf3 5a746278507
Closes-Bug: #1657176
Change-Id: I870df71869c979