clustered qpid: exchanges at 2nd broker not shown by qpid tools
---------------------------------------------------------------

                 Key: QPID-2440
                 URL: https://issues.apache.org/jira/browse/QPID-2440
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
         Environment: Red Hat Enterprise MRG 1.2
            Reporter: Armin Noll


We run the brokers on nodes RGC001 and RGC002, both with the following 
configuration:
 
log-enable=info+
log-to-file=/var/lib/qpidd/data/15399/qpidd.log
log-to-syslog=no
auth=yes
acl-file=qpidd.acl
realm=QPID15399
data-dir=/var/lib/qpidd/data/15399
pid-dir=/var/lib/qpidd/data/15399
port=15399
num-jfiles=4
jfile-size-pgs=1
tpl-num-jfiles=4
tpl-jfile-size-pgs=1
cluster-name=QPID15399
cluster-url=amqp:tcp:RGC001:15399
### on machine RGC002 the URL is amqp:tcp:RGC002:15399
cluster-username=admin
cluster-password=admin
 
I start the broker on RGC001 and add an exchange and a queue:
 
RGC001 $ qpid-config -a admin/ad...@localhost:15399 add exchange direct 
eurex.EXCHANGE --durable
RGC001 $ qpid-config -a admin/ad...@localhost:15399 add queue eurex.QUEUE 
--durable --limit-policy reject --max-queue-count 10
 
These can be listed e.g. by qpid-config:
 
RGC001 $ qpid-config -a admin/ad...@localhost:15399 queues eurex
Queue Name   Attributes
===================================
eurex.QUEUE  --durable --file-size=24 --file-count=8 --max-queue-count=10 
--limit-policy=reject
 
RGC001 $ qpid-config -a admin/ad...@localhost:15399 exchanges eurex
Type      Exchange Name   Attributes
=============================================
direct    eurex.EXCHANGE  --durable
 
Now I start the broker on RGC002 and check whether qpid-config shows me the 
queue and the exchange:
 
RGC002 $ qpid-config -a admin/ad...@localhost:15399 queues eurex
Queue Name   Attributes
===================================
eurex.QUEUE  --durable --file-size=24 --file-count=8 --max-queue-count=10 
--limit-policy=reject
 
RGC002 $ qpid-config -a admin/ad...@localhost:15399 exchanges eurex
Type      Exchange Name   Attributes
=============================================
 
I.e. already in this simple scenario there is a problem with the exchanges.
The exchange is also not shown by qpid-stat and qpid-tool.
 
Now I ran qpid-cluster to check whether the brokers see each other, first on 
RGC001:
 
RGC001 $ qpid-cluster admin/ad...@rgc001:15399
  Cluster Name: QPID15399
Cluster Status: ACTIVE
  Cluster Size: 2
       Members: ID=192.168.178.1:15051 URL=amqp:tcp:RGC001:15399
              : ID=192.168.178.2:24407 URL=amqp:tcp:RGC002:15399
 
Now on RGC002:
 
RGC002 $ qpid-cluster admin/ad...@rgc002:15399
  Cluster Name: QPID15399
Cluster Status: ACTIVE
  Cluster Size: 2
       Members: ID=192.168.178.1:15051 URL=amqp:tcp:RGC001:15399
              : ID=192.168.178.2:24407 URL=amqp:tcp:RGC002:15399
 
Finally, to show that the exchange still exists in broker on RGC002, I try to 
create it but now with type topic:
 
RGC002 $ qpid-config -a admin/ad...@localhost:15399 add exchange topic 
eurex.EXCHANGE --durable
Failed: SessionException - exception(error_code=530, command_id=serial(56), 
class_code=7, command_code=1, field_index=0, description=u'not-allowed: 
Exchange declared to be of type direct, requested topic 
(qpid/broker/SessionAdapter.cpp:116)', error_info={})

This problem has also been reported as Red Hat service request #1960092. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to