You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by zhengxie <zh...@icloud.com> on 2014/07/15 07:51:00 UTC
How can I configure dynamic route
Hi,
I have some problems about qpid dynamic route. I am using quid 0.28 on
linux 2.6.
The problem is like this:
I want to configure a dynamic route among host A, B, C like this :
A<=>B<=>C, I suppose message sent to A should be received in C, however,
the result is not, I can only receive on B. However, if I open 3 ports on
one host, each instance on each port, the result is what I supposed to be.
This is how I configure on one host, my 3 hosts is 10.1.253.203,
10.1.253.230, 10.1.252.165. (below is abbreviate)
qpid-route dynamic add 203 230 amq.direct
qpid-route dynamic add 230 203 amq.direct
qpid-route dynamic add 230 165 amq.direct
qpid-route dynamic add 165 230 amq.direct
This is how I test:
qpid-send -b 10.1.253.203 -a amq.direct/key230 --content-string "Hi,key230"
--durable no
qpid-receive -b 10.1.252.165 -a amq.direct/key230 --timeout 200
(no result)
Is there something wrong? I hunger for your answer. Thanks!
--
View this message in context: http://qpid.2158936.n2.nabble.com/How-can-I-configure-dynamic-route-tp7610336.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: How can I configure dynamic route
Posted by Gordon Sim <gs...@redhat.com>.
On 07/22/2014 02:41 AM, 郑勰 wrote:
>> Well, when qpidd -h, the result is different between 0.28 and 0.29
> qpidd 0.29: --auth yes | no (1)
> qpidd 0.28: --auth yes | no (0)
>>
> Does it mean 0.29 --auth no is default, 0.28 is the opposite?
As Chuck points out, the default is true providing SASL support was
found when building (on linux this is cyrus sasl). It looks like your
build of the 0.28 version did not find SASL. (My build of 0.28 has
authentication enabled by default).
Did you build the 0.28 release yourself and do you have the
CMakeCache.txt for it still available? If so you can check the value of
BUILD_SASL within that.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: How can I configure dynamic route
Posted by Chuck Rolke <cr...@redhat.com>.
The default for --auth is 'SaslAuthenticator::available()'. On my linux systems Sasl has always been available and auth has been on by default.
Starting with release 0.22 (May 2013) interbroker link creation is qualified by an ACL. Pseudo code is:
CreateLink() {
if (auth) {
// Running with auth requires explicit CREATE LINK rights
if (ACL CREATE LINK is allowed) {
create interbroker link;
} else {
deny interbroker link;
}
} else {
// Running with no auth allows any user to create links
create interbroker link;
}
----- Original Message -----
> From: "郑勰" <zh...@icloud.com>
> To: users@qpid.apache.org
> Sent: Monday, July 21, 2014 9:41:35 PM
> Subject: Re: How can I configure dynamic route
>
> > Well, when qpidd -h, the result is different between 0.28 and 0.29
> qpidd 0.29: --auth yes | no (1)
> qpidd 0.28: --auth yes | no (0)
> >
> Does it mean 0.29 --auth no is default, 0.28 is the opposite?
>
>
>
> 在 2014年7月21日,下午11:58,Alan Conway <ac...@redhat.com> 写道:
>
> > On Tue, 2014-07-15 at 16:47 +0800, 郑勰 wrote:
> >> Hi,
> >> I have fixed this problem a few minutes ago, I must start qpidd with
> >> --auth no, although -auto no is default, it does seem not effect, if
> >> without —auth no, type link list showing that B->C is not
> >> connected.
> >
> > Actually the default is auth=yes, so that would explain the problem.
> >
> >
> >>
> >>
> >>
> >> 在 2014年7月15日,下午4:37,Gordon Sim <gs...@redhat.com> 写道:
> >>
> >>> On 07/15/2014 06:51 AM, zhengxie wrote:
> >>>> Hi,
> >>>>
> >>>> I have some problems about qpid dynamic route. I am using quid
> >>>> 0.28 on
> >>>> linux 2.6.
> >>>>
> >>>> The problem is like this:
> >>>>
> >>>> I want to configure a dynamic route among host A, B, C like
> >>>> this :
> >>>> A<=>B<=>C, I suppose message sent to A should be received in C,
> >>>> however,
> >>>> the result is not, I can only receive on B. However, if I open
> >>>> 3 ports on
> >>>> one host, each instance on each port, the result is what I
> >>>> supposed to be.
> >>>>
> >>>> This is how I configure on one host, my 3 hosts is 10.1.253.203,
> >>>> 10.1.253.230, 10.1.252.165. (below is abbreviate)
> >>>>
> >>>> qpid-route dynamic add 203 230 amq.direct
> >>>> qpid-route dynamic add 230 203 amq.direct
> >>>> qpid-route dynamic add 230 165 amq.direct
> >>>> qpid-route dynamic add 165 230 amq.direct
> >>>>
> >>>> This is how I test:
> >>>>
> >>>> qpid-send -b 10.1.253.203 -a amq.direct/key230 --content-string
> >>>> "Hi,key230"
> >>>> --durable no
> >>>>
> >>>> qpid-receive -b 10.1.252.165 -a amq.direct/key230 --timeout 200
> >>>> (no result)
> >>>>
> >>>> Is there something wrong? I hunger for your answer. Thanks!
> >>>
> >>> This is probably a stupid question, but just to confirm, you are
> >>> starting qpid-receive before qpid-send right? And allowing a little
> >>> time for the subscription to propagate?
> >>>
> >>> There routes you set up above are as they should be.
> >>>
> >>> Are there any errors in the broker logs (especially B and C? Can you
> >>> receive at C if you send to B (instead of A)?
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> >>> For additional commands, e-mail: users-help@qpid.apache.org
> >>>
> >>
> >>
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: How can I configure dynamic route
Posted by 郑勰 <zh...@icloud.com>.
> Well, when qpidd -h, the result is different between 0.28 and 0.29
qpidd 0.29: --auth yes | no (1)
qpidd 0.28: --auth yes | no (0)
>
Does it mean 0.29 --auth no is default, 0.28 is the opposite?
在 2014年7月21日,下午11:58,Alan Conway <ac...@redhat.com> 写道:
> On Tue, 2014-07-15 at 16:47 +0800, 郑勰 wrote:
>> Hi,
>> I have fixed this problem a few minutes ago, I must start qpidd with
>> --auth no, although -auto no is default, it does seem not effect, if
>> without —auth no, type link list showing that B->C is not
>> connected.
>
> Actually the default is auth=yes, so that would explain the problem.
>
>
>>
>>
>>
>> 在 2014年7月15日,下午4:37,Gordon Sim <gs...@redhat.com> 写道:
>>
>>> On 07/15/2014 06:51 AM, zhengxie wrote:
>>>> Hi,
>>>>
>>>> I have some problems about qpid dynamic route. I am using quid
>>>> 0.28 on
>>>> linux 2.6.
>>>>
>>>> The problem is like this:
>>>>
>>>> I want to configure a dynamic route among host A, B, C like
>>>> this :
>>>> A<=>B<=>C, I suppose message sent to A should be received in C,
>>>> however,
>>>> the result is not, I can only receive on B. However, if I open
>>>> 3 ports on
>>>> one host, each instance on each port, the result is what I
>>>> supposed to be.
>>>>
>>>> This is how I configure on one host, my 3 hosts is 10.1.253.203,
>>>> 10.1.253.230, 10.1.252.165. (below is abbreviate)
>>>>
>>>> qpid-route dynamic add 203 230 amq.direct
>>>> qpid-route dynamic add 230 203 amq.direct
>>>> qpid-route dynamic add 230 165 amq.direct
>>>> qpid-route dynamic add 165 230 amq.direct
>>>>
>>>> This is how I test:
>>>>
>>>> qpid-send -b 10.1.253.203 -a amq.direct/key230 --content-string
>>>> "Hi,key230"
>>>> --durable no
>>>>
>>>> qpid-receive -b 10.1.252.165 -a amq.direct/key230 --timeout 200
>>>> (no result)
>>>>
>>>> Is there something wrong? I hunger for your answer. Thanks!
>>>
>>> This is probably a stupid question, but just to confirm, you are
>>> starting qpid-receive before qpid-send right? And allowing a little
>>> time for the subscription to propagate?
>>>
>>> There routes you set up above are as they should be.
>>>
>>> Are there any errors in the broker logs (especially B and C? Can you
>>> receive at C if you send to B (instead of A)?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> For additional commands, e-mail: users-help@qpid.apache.org
>>>
>>
>>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
Re: How can I configure dynamic route
Posted by Alan Conway <ac...@redhat.com>.
On Tue, 2014-07-15 at 16:47 +0800, 郑勰 wrote:
> Hi,
> I have fixed this problem a few minutes ago, I must start qpidd with
> --auth no, although -auto no is default, it does seem not effect, if
> without —auth no, type link list showing that B->C is not
> connected.
Actually the default is auth=yes, so that would explain the problem.
>
> > 郑勰
> >
> >
> >
> >
> > 大数据产品部-商业智能中心-产品研发部
> >
> >
> > 亚信科技(中国)有限公司
> >
> >
> > 手机:186-1233-5012
> > 邮箱:zhengxie@asiainfo-linkage.com
> > 地址:北京市海淀区西北旺东路10号院东区亚信总部研发中心大厦
> > 邮编:100085
> >
> >
>
>
>
> 在 2014年7月15日,下午4:37,Gordon Sim <gs...@redhat.com> 写道:
>
> > On 07/15/2014 06:51 AM, zhengxie wrote:
> > > Hi,
> > >
> > > I have some problems about qpid dynamic route. I am using quid
> > > 0.28 on
> > > linux 2.6.
> > >
> > > The problem is like this:
> > >
> > > I want to configure a dynamic route among host A, B, C like
> > > this :
> > > A<=>B<=>C, I suppose message sent to A should be received in C,
> > > however,
> > > the result is not, I can only receive on B. However, if I open
> > > 3 ports on
> > > one host, each instance on each port, the result is what I
> > > supposed to be.
> > >
> > > This is how I configure on one host, my 3 hosts is 10.1.253.203,
> > > 10.1.253.230, 10.1.252.165. (below is abbreviate)
> > >
> > > qpid-route dynamic add 203 230 amq.direct
> > > qpid-route dynamic add 230 203 amq.direct
> > > qpid-route dynamic add 230 165 amq.direct
> > > qpid-route dynamic add 165 230 amq.direct
> > >
> > > This is how I test:
> > >
> > > qpid-send -b 10.1.253.203 -a amq.direct/key230 --content-string
> > > "Hi,key230"
> > > --durable no
> > >
> > > qpid-receive -b 10.1.252.165 -a amq.direct/key230 --timeout 200
> > > (no result)
> > >
> > > Is there something wrong? I hunger for your answer. Thanks!
> >
> > This is probably a stupid question, but just to confirm, you are
> > starting qpid-receive before qpid-send right? And allowing a little
> > time for the subscription to propagate?
> >
> > There routes you set up above are as they should be.
> >
> > Are there any errors in the broker logs (especially B and C? Can you
> > receive at C if you send to B (instead of A)?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: How can I configure dynamic route
Posted by 郑勰 <zh...@icloud.com>.
Hi,
I have fixed this problem a few minutes ago, I must start qpidd with --auth no, although -auto no is default, it does seem not effect, if without —auth no, type link list showing that B->C is not connected.
Thanks, anyway~
> 郑勰
>
> 大数据产品部-商业智能中心-产品研发部
>
> 亚信科技(中国)有限公司
>
> 手机:186-1233-5012
> 邮箱:zhengxie@asiainfo-linkage.com
> 地址:北京市海淀区西北旺东路10号院东区亚信总部研发中心大厦
> 邮编:100085
>
在 2014年7月15日,下午4:37,Gordon Sim <gs...@redhat.com> 写道:
> On 07/15/2014 06:51 AM, zhengxie wrote:
>> Hi,
>>
>> I have some problems about qpid dynamic route. I am using quid 0.28 on
>> linux 2.6.
>>
>> The problem is like this:
>>
>> I want to configure a dynamic route among host A, B, C like this :
>> A<=>B<=>C, I suppose message sent to A should be received in C, however,
>> the result is not, I can only receive on B. However, if I open 3 ports on
>> one host, each instance on each port, the result is what I supposed to be.
>>
>> This is how I configure on one host, my 3 hosts is 10.1.253.203,
>> 10.1.253.230, 10.1.252.165. (below is abbreviate)
>>
>> qpid-route dynamic add 203 230 amq.direct
>> qpid-route dynamic add 230 203 amq.direct
>> qpid-route dynamic add 230 165 amq.direct
>> qpid-route dynamic add 165 230 amq.direct
>>
>> This is how I test:
>>
>> qpid-send -b 10.1.253.203 -a amq.direct/key230 --content-string "Hi,key230"
>> --durable no
>>
>> qpid-receive -b 10.1.252.165 -a amq.direct/key230 --timeout 200
>> (no result)
>>
>> Is there something wrong? I hunger for your answer. Thanks!
>
> This is probably a stupid question, but just to confirm, you are starting qpid-receive before qpid-send right? And allowing a little time for the subscription to propagate?
>
> There routes you set up above are as they should be.
>
> Are there any errors in the broker logs (especially B and C? Can you receive at C if you send to B (instead of A)?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
Re: How can I configure dynamic route
Posted by Gordon Sim <gs...@redhat.com>.
On 07/15/2014 06:51 AM, zhengxie wrote:
> Hi,
>
> I have some problems about qpid dynamic route. I am using quid 0.28 on
> linux 2.6.
>
> The problem is like this:
>
> I want to configure a dynamic route among host A, B, C like this :
> A<=>B<=>C, I suppose message sent to A should be received in C, however,
> the result is not, I can only receive on B. However, if I open 3 ports on
> one host, each instance on each port, the result is what I supposed to be.
>
> This is how I configure on one host, my 3 hosts is 10.1.253.203,
> 10.1.253.230, 10.1.252.165. (below is abbreviate)
>
> qpid-route dynamic add 203 230 amq.direct
> qpid-route dynamic add 230 203 amq.direct
> qpid-route dynamic add 230 165 amq.direct
> qpid-route dynamic add 165 230 amq.direct
>
> This is how I test:
>
> qpid-send -b 10.1.253.203 -a amq.direct/key230 --content-string "Hi,key230"
> --durable no
>
> qpid-receive -b 10.1.252.165 -a amq.direct/key230 --timeout 200
> (no result)
>
> Is there something wrong? I hunger for your answer. Thanks!
This is probably a stupid question, but just to confirm, you are
starting qpid-receive before qpid-send right? And allowing a little time
for the subscription to propagate?
There routes you set up above are as they should be.
Are there any errors in the broker logs (especially B and C? Can you
receive at C if you send to B (instead of A)?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org