Hello:
I’m attempting to set up federation but I’m running into a wall with
logging. My setup isn’t working, as shown by "rabbitmqctl eval
'rabbit_federation_status:status().’". However, more concerningly, it
isn’t logging anything about any errors. This is making it
extraordinarily difficult to troubleshoot as I have no clues as to why it
isn¹t working. Starting from Rabbit servers with the sensu vhost already
set up my steps are as follows:
On Both Upstream and Downstream
------------------------------
# Set federation logging to debug level
echo "[{rabbit, [ {log_levels, [{connection,
info},{federation,debug}]}]}]." >> /etc/rabbitmq/rabbitmq.config
# Enable federation plugin
rabbitmq-plugins enable rabbitmq_federation
# Restart Rabbit wiping the logs
/etc/init.d/rabbitmq-server stop
rm /var/log/rabbitmq/*
/etc/init.d/rabbitmq-server start
On the downstream node
---------------------
# Define the upstream
rabbitmqctl set_parameter federation-upstream upstreamA
'{"uri":"amqp://sensu:password@host:5672","max-hops":1}'
# Define the policy
rabbitmqctl set_policy -p /sensu --apply-to exchanges sensu-result
"^(results|keepalives)" '{"federation-upstream-set":"all"}'
The first block works as expected. The plugin enable prints a message to
the logs that it is enabled. The downstream commands report success on the
command line, but don't seem to do anything. No login attempt is seen on
the upstream, and neither rabbit server logs anything related to
federation.
Can someone please advise as to what I¹m doing wrong and why it isn¹t
logging anything? I¹m unable to figure this out on my own without logs.
Here is the log off the downstream node:
root@56c4b544d8f8:/# cat /var/log/rabbitmq/rabbit\@56c4b544d8f8.log
=INFO REPORT==== 10-Feb-2016::23:05:03 ===
Starting RabbitMQ 3.6.0 on Erlang 17.3
Copyright (C) 2007-2015 Pivotal Software, Inc.
Licensed under the MPL. See
http://www.rabbitmq.com/
=INFO REPORT==== 10-Feb-2016::23:05:03 ===
node : rabbit@56c4b544d8f8
home dir : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/rabbitmq.config
cookie hash : 5y7SA4yuUvTkkwRXSBGkUw==
log : /var/log/rabbitmq/rab...@56c4b544d8f8.log
sasl log : /var/log/rabbitmq/rab...@56c4b544d8f8-sasl.log
database dir : /var/lib/rabbitmq/mnesia/rabbit@56c4b544d8f8
=INFO REPORT==== 10-Feb-2016::23:05:03 ===
Memory limit set to 95MB of 238MB total.
=INFO REPORT==== 10-Feb-2016::23:05:04 ===
Disk free limit set to 50MB
=INFO REPORT==== 10-Feb-2016::23:05:04 ===
Limiting to approx 524188 file handles (471767 sockets)
=INFO REPORT==== 10-Feb-2016::23:05:04 ===
FHC read buffering: OFF
FHC write buffering: ON
=INFO REPORT==== 10-Feb-2016::23:05:04 ===
Priority queues enabled, real BQ is rabbit_variable_queue
=INFO REPORT==== 10-Feb-2016::23:05:05 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 10-Feb-2016::23:05:05 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 10-Feb-2016::23:05:05 ===
started TCP Listener on [::]:5672
=INFO REPORT==== 10-Feb-2016::23:05:05 ===
Server startup complete; 2 plugins started.
* rabbitmq_federation
* amqp_client
=INFO REPORT==== 10-Feb-2016::23:05:09 ===
accepting AMQP connection <0.280.0> (
192.168.253.197:50469 ->
172.17.0.5:5672)
=INFO REPORT==== 10-Feb-2016::23:05:09 ===
accepting AMQP connection <0.277.0> (
172.17.0.1:41230 ->
172.17.0.5:5672)
=INFO REPORT==== 10-Feb-2016::23:19:56 ===
accepting AMQP connection <0.392.0> (
192.168.253.159:48544 ->
172.17.0.5:5672)
=INFO REPORT==== 10-Feb-2016::23:22:10 ===
accepting AMQP connection <0.416.0> (
192.168.253.182:56361 ->
172.17.0.5:5672)
=INFO REPORT==== 10-Feb-2016::23:24:25 ===
accepting AMQP connection <0.441.0> (
192.168.253.233:41257 ->
172.17.0.5:5672)
=INFO REPORT==== 10-Feb-2016::23:26:40 ===
accepting AMQP connection <0.466.0> (
192.168.253.219:42905 ->
172.17.0.5:5672)
=INFO REPORT==== 10-Feb-2016::23:28:56 ===
accepting AMQP connection <0.496.0> (
192.168.253.192:41494 ->
172.17.0.5:5672)
Tom Noonan II | Corvisa, a ShoreTel company | DevOps Engineer
1610 N. Second Street, Suite 101, Milwaukee, WI 53212
p:
720.966.8896 | w:
www.corvisa.com <
http://www.corvisa.com/>