From 915d3f12b51d988c322f27f5292b0ada7e3dc617 Mon Sep 17 00:00:00 2001
From: Vikram Hosakote <vhosakot@cisco.com>
Date: Sat, 9 Apr 2016 04:59:12 +0000
Subject: [PATCH] Fix rabbitmq crash in centos gate

Please refer to the Closes-Bug identifier for detailed information
pertaining to this issue.

Closes-Bug: #1562701

Change-Id: I77563930e14e11ea48e7edfef0bff80002279381
---
 ansible/roles/rabbitmq/templates/rabbitmq-env.conf.j2 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ansible/roles/rabbitmq/templates/rabbitmq-env.conf.j2 b/ansible/roles/rabbitmq/templates/rabbitmq-env.conf.j2
index d533b7b91..bb2a47872 100644
--- a/ansible/roles/rabbitmq/templates/rabbitmq-env.conf.j2
+++ b/ansible/roles/rabbitmq/templates/rabbitmq-env.conf.j2
@@ -4,9 +4,11 @@ RABBITMQ_BOOT_MODULE=rabbit_clusterer
 RABBITMQ_LOG_BASE=/var/log/kolla/rabbitmq
 RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="-pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.5.7/plugins/rabbitmq_clusterer-3.5.x-189b3a81.ez/rabbitmq_clusterer-3.5.x-189b3a81/ebin"
 
-{% if kolla_base_distro not in ['ubuntu', 'debian'] %}
+# TODO(sdake, vhosakot) Heisenbugs await if the control services are collocated on
+# one node.  The reason is epmd binds to wildcard (all interfaces) and could
+# potentially interact with the neutron external or tenant networks.
+# unfortunately epmd is broken with ipv6, so yeah, no bueno.
 # See bug https://bugs.launchpad.net/ubuntu/+source/erlang/+bug/1374109
-export ERL_EPMD_ADDRESS={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
-{% endif %}
+# export ERL_EPMD_ADDRESS={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
 
 export ERL_EPMD_PORT={{ rabbitmq_epmd_port }}
-- 
GitLab