Comment 4 for bug 1540234

Revision history for this message
weiyu (weiyu) wrote : Re:[Bug 1540234] Re: rabbitmq cluster is not work

you can set three hosts for rabbitmq clusterer.
------------------ Original ------------------
From: "Sam Yaple"<email address hidden>
Date: Thu, Feb 4, 2016 07:54 PM
To: "weiyu"<email address hidden>;
Subject: [Bug 1540234] Re: rabbitmq cluster is not work

This patch needs to be reverted as it breaks clusterer on ubuntu. Also,
the behavior you are describing I cannot reproduce and I have a - in my
hostname. The initial config is correct and clusterer should not be
quoted like this, there is another issue at play

====================

Working on ubuntu:

[
  {version, 1},
  {nodes, [
    {rabbit@y-work-laptop01, disc}
  ]},
  {gospel, {node, rabbit@y-work-laptop01}}
].

====================

Broken on ubuntu:

[
  {version, 1},
  {nodes, [
    {'rabbit@y-work-laptop01', disc}
  ]},
  {gospel, {node, 'rabbit@y-work-laptop01'}}
].

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1540234

Title:
  rabbitmq cluster is not work

Status in kolla:
  Confirmed

Bug description:
  rabbitmq cluster is not work

  bash-4.2$ rabbitmqctl cluster_status
  Cluster status of node 'rabbit@openstack-2' ...
  [{nodes,[{disc,['rabbit@openstack-2']}]},
   {running_nodes,['rabbit@openstack-2']},
   {cluster_name,<<"rabbit@openstack-2">>},
   {partitions,[]}]

  bash-4.2$ cat /etc/rabbitmq/rabbitmq_clusterer.config
  [
    {version, 1},
    {nodes, [
      {rabbit@openstack-1, disc},
      {rabbit@openstack-2, disc},
      {rabbit@openstack-3, disc}
    ]},
    {gospel, {node, rabbit@openstack-1}}
  ].

  bash-4.2$ rpm -q rabbitmq-server
  rabbitmq-server-3.5.5-3.noarch
  bash-4.2 rabbitmq-plugins list
   Configured: E = explicitly enabled; e = implicitly enabled
   | Status: * = running on rabbit@openstack-1
   |/
  [e*] amqp_client 3.5.5
  [ ] cowboy 0.5.0-rmq3.5.5-git4b93c2d
  [e*] mochiweb 2.7.0-rmq3.5.5-git680dba8
  [ ] rabbitmq_amqp1_0 3.5.5
  [ ] rabbitmq_auth_backend_ldap 3.5.5
  [ ] rabbitmq_auth_mechanism_ssl 3.5.5
  [E*] rabbitmq_clusterer 3.5.x-189b3a81
  [ ] rabbitmq_consistent_hash_exchange 3.5.5
  [ ] rabbitmq_federation 3.5.5
  [ ] rabbitmq_federation_management 3.5.5
  [E*] rabbitmq_management 3.5.5
  [e*] rabbitmq_management_agent 3.5.5
  [ ] rabbitmq_management_visualiser 3.5.5
  [ ] rabbitmq_mqtt 3.5.5
  [ ] rabbitmq_shovel 3.5.5
  [ ] rabbitmq_shovel_management 3.5.5
  [ ] rabbitmq_stomp 3.5.5
  [ ] rabbitmq_test 3.5.5
  [ ] rabbitmq_tracing 3.5.5
  [e*] rabbitmq_web_dispatch 3.5.5
  [ ] rabbitmq_web_stomp 3.5.5
  [ ] rabbitmq_web_stomp_examples 3.5.5
  [ ] sockjs 0.3.4-rmq3.5.5-git3132eb9
  [e*] webmachine 1.10.3-rmq3.5.5-gite9359c7

To manage notifications about this bug go to:
https://bugs.launchpad.net/kolla/+bug/1540234/+subscriptions