commit 6a66fd16124c60d056fc710c1f47df6855c8ba1e
Author: Felipe Reyes <email address hidden>
Date: Wed May 24 12:22:37 2017 -0400
Set clustered atrribute in the cluster's leader
When forming the cluster the leader node (defined by
leader_node_hostname) is the one that won't join a cluster, all the
other peers will join this leader, this prevented the leader from
setting the clustered attribute in the cluster relation.
This patch makes all the units to run the cluster_with() function
and cluster_with() skips 'rabbitmqctl join_cluster' for the nodes
already present in the running section of 'rabbitmqctl cluster_status'
and sets the clustered attribute if it hasn't been set already.
Also cluster_with() is called within the upgrade-charm hook to allow
existing deployments set the attribute if needed.
Reviewed: https:/ /review. openstack. org/467684 /git.openstack. org/cgit/ openstack/ charm-rabbitmq- server/ commit/ ?id=6a66fd16124 c60d056fc710c1f 47df6855c8ba1e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6a66fd16124c60d 056fc710c1f47df 6855c8ba1e
Author: Felipe Reyes <email address hidden>
Date: Wed May 24 12:22:37 2017 -0400
Set clustered atrribute in the cluster's leader
When forming the cluster the leader node (defined by node_hostname) is the one that won't join a cluster, all the
leader_
other peers will join this leader, this prevented the leader from
setting the clustered attribute in the cluster relation.
This patch makes all the units to run the cluster_with() function
and cluster_with() skips 'rabbitmqctl join_cluster' for the nodes
already present in the running section of 'rabbitmqctl cluster_status'
and sets the clustered attribute if it hasn't been set already.
Also cluster_with() is called within the upgrade-charm hook to allow
existing deployments set the attribute if needed.
Change-Id: I234046de279e1c 28f7ad640c2cd7c 641e864525b
Closes-Bug: 1691510