[rabbitmq-discuss] Shovel authentication question (possible bug)

john.hayden at nokia.com john.hayden at nokia.com
Fri May 31 16:29:38 BST 2013


I am very new to rabbitmq and shovel but I may have found a bug:

My setup:

I am running Rabbit 3.1.1 and have shovel plugin enabled.
I have sense clients that communicate with this rabbit broker successfully to vhost /sensu with sensu and mypass as username and password.

The shovel plugin (loaded on the first Rabbit) with talk to a 2nd Rabbit which is also serving sense clients using the same vhost, username and password.

Here is my shovel config file:

[
    {rabbitmq_shovel,
      [{shovels, [ {test_shovel,
        [ {sources, [{broker, "amqp://sensu:mypass@/sensu"}]}
        , {destinations, [{broker, "amqp://sensu:mypass@ec2-54-245-126-50.us-west-2.compute.amazonaws.com/sensu"}]}
        , {queue, <<"rabbitmq-us-west-2">>}
        ]
      }]}]
    }
].

As you can see, my source (which is Rabbit1) is being connected to by the shovel by the non network method and has the username, password and vhost
The destination is set up as a network connection

Here is the error is get after a restart of Rabbit1 server:

=INFO REPORT==== 31-May-2013::15:13:10 ===
accepting AMQP connection <0.387.0> (10.73.3.20:39733 -> 10.40.215.251:5672)

=ERROR REPORT==== 31-May-2013::15:13:24 ===
** Generic server <0.400.0> terminating
** Last message in was {'$gen_cast',init}
** When Server state == {state,undefined,undefined,undefined,undefined,
                         test_shovel,
                         {shovel,
                          {endpoint,
                           [{amqp_params_direct,<<"sensu">>,none,<<"sensu">>,
                             'rabbit at ip-10-40-215-251',none,[]}],
                           []},
                          {endpoint,
                           [{amqp_params_network,<<"sensu">>,<<"mypass">>,
                             <<"sensu">>,
                             "ec2-54-245-126-50.us-west-2.compute.amazonaws.com",
                             undefined,0,0,0,infinity,none,
                             [#Fun<amqp_uri.7.123484526>,
                              #Fun<amqp_uri.7.123484526>],
                             [],[]}],
                           []},
                          0,on_confirm,
                          #Fun<rabbit_shovel_config.15.100604638>,
                          #Fun<rabbit_shovel_config.15.100604638>,
                          <<"rabbitmq-us-west-2">>,5},
                         undefined,undefined,undefined,undefined,undefined}
** Reason for termination ==
** {{badmatch,{error,access_refused}},
    [{rabbit_shovel_worker,make_conn_and_chan,1},
     {rabbit_shovel_worker,handle_cast,2},
     {gen_server2,handle_msg,2},
     {proc_lib,init_p_do_apply,3}]}


Notice this line:
[{amqp_params_direct,<<"sensu">>,none,<<"sensu">>,
                             'rabbit at ip-10-40-215-251',none,[]}],

If I read this correctly, the password is not being passed and THUS authentication is being denied.

Is this a bug?

John Hayden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130531/a2022eb3/attachment.htm>


More information about the rabbitmq-discuss mailing list