Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 084861859C for ; Wed, 6 Jan 2016 16:14:42 +0000 (UTC) Received: (qmail 46288 invoked by uid 500); 6 Jan 2016 16:14:41 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 46261 invoked by uid 500); 6 Jan 2016 16:14:41 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 46249 invoked by uid 99); 6 Jan 2016 16:14:41 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 16:14:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1BA0FC04F1 for ; Wed, 6 Jan 2016 16:14:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id N5U-dsby7hUV for ; Wed, 6 Jan 2016 16:14:40 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id CED31439D5 for ; Wed, 6 Jan 2016 16:14:39 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id o62so290558602oif.3 for ; Wed, 06 Jan 2016 08:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=b01zH9MwxNePV4Mhk0tCMQzxJ0JUeN+GwLCvbX1a1SE=; b=r/llzmnNg6FabCgv8k+sZg2Oh3R5FNLUF4xKoE1F4JU6dwJ5R0sDKiWnUfg6hqMU62 i8QzBmuohAF7XtTpEbFQbpKTUvmXKpGeGQIXxvE06jaU2C6BqZ/Exw6vyk+qv7fiQYHS c7yfSzuSXJrDrRwTQ1pzWq6++GBWgHUw0xlLQfwaT7XsbmQw52QERvV2Q6zFbMb+V7R9 0Vf1jrlZZfHwiAFBy7ziqCdZg7MCczVhkg70zB8efZ6XPoXJXYL8FQMcwR6W+f4tjRlb HkTJ7GZ/+sz/oaueX0v3KISEJVw/3eZMXIH71WQQiW7yUkEKzkK1P8ekI/tAvShgXdB6 C+kg== MIME-Version: 1.0 X-Received: by 10.202.80.202 with SMTP id e193mr68691106oib.82.1452096879305; Wed, 06 Jan 2016 08:14:39 -0800 (PST) Received: by 10.202.228.138 with HTTP; Wed, 6 Jan 2016 08:14:39 -0800 (PST) In-Reply-To: References: <568D2EC0.5090401@redhat.com> Date: Wed, 6 Jan 2016 11:14:39 -0500 Message-ID: Subject: Re: [C++ Broker] dynamically federated links From: Matt Broadstone To: users Content-Type: multipart/alternative; boundary=001a113b0244abaa690528aca63b --001a113b0244abaa690528aca63b Content-Type: text/plain; charset=UTF-8 On Wed, Jan 6, 2016 at 10:23 AM, Matt Broadstone wrote: > On Wed, Jan 6, 2016 at 10:12 AM, Ted Ross wrote: > >> On 01/06/2016 10:03 AM, Matt Broadstone wrote: >> >>> I'm having some trouble linking two brokers together using the >>> documentation in section 1.4 (Broker Federation), and was looking for >>> some >>> advice. >>> >>> * I currently have two brokers (192.168.1.1, 192.168.1.2) which use PLAIN >>> SASL, and have appropriate ACL files allowing a user "test" access to >>> everything once authenticated. >>> >>> * I then have two previously existing (not sure if this is where the >>> problem starts, very little guiding debug information is printed) durable >>> fanout topics on each broker called `test.fanout` -- this is the >>> "initial" >>> unfederated state. >>> >>> * At this point I run the following command on 192.168.1.2, in order to >>> dynamically federate the `test.fanout` exchange to the "leader": >>> >>> qpid-route -v dynamic add test/password@192.168.1.1:5672 >>>> >>> test/password@localhost:5672 test.fanout >>> >> >> I wonder if you are running into problems because you used "localhost" >> instead of the real address (192.168.1.2). Both systems think of >> themselves as localhost so there may be a collision. > > > Ted, > That looks like it solved the problem! Many thanks. Might I suggest an > update to the documentation to remove all references to localhost. Also > there is a typo in the federation docs about `qpid-route list connections` > which is a command that does not exist, rather it shouldbe `qpid-route link > list` > > Cheers, > Matt > > Just one more question that doesn't seem to be covered in the documentation: is it possible with just `qpid-route` to configure replication of queues across federated brokers? It seems that the `qpid-route queue` related commands all bind a given queue to a remote exchange, where ideally it would be possible to federate two brokers and maintain a shared queue between them. Matt > >> >> >>> Link state is Operational >>> Creating inter-broker binding... >>> Bridge method returned: 0 OK >>> >>> * Cool, seems like everything worked. However, on the other side my qpidd >>> log file has the following: >>> >>> 2016-01-06 09:50:58 [Management] error Detected two management objects >>> with >>> the same identifier: >>> >>> 0-3-1--653(org.apache.qpid.broker:session:test@TEST.qpid.bridge_session_qpid.tcp >>> >>> :localhost:5672!test.fanout!test.fanout!_25c065aa-5b1b-465a-a6d2-510666f89248) >>> >>> which seems problematic, however the link is operational and there are no >>> other errors. >>> >>> * Now I try to use the fanout by connecting to the local broker on >>> 192.168.1.2 and sending some data. The data is indeed sent to the local >>> fanout and I'm able to pick up those messages, but nothing is sent to the >>> federated broker. >>> >>> Any hints as to where I'm going wrong here would be much appreciated! >>> >>> Matt >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >> For additional commands, e-mail: users-help@qpid.apache.org >> >> > --001a113b0244abaa690528aca63b--