Bug 677716

Summary: Routes should be created with FQDN
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-qmfAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 1.3CC: iboverma
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Matousek 2011-02-15 16:36:50 UTC
Description of problem:

When using 'localhost' as a <src-broker> input string for qpid-route command, the route is not created with FQDN of the given server. The route is created incorrectly when command is executed from remote server.

Moreover  'qpid-route route map' command displays two static routes with the same meaning. See Additional info.


Version-Release number of selected component (if applicable):
python-qpid-0.7.946106-15.el5
qpid-cpp-client-0.7.946106-28.el5
qpid-cpp-client-devel-0.7.946106-28.el5
qpid-cpp-client-devel-docs-0.7.946106-28.el5
qpid-cpp-client-ssl-0.7.946106-28.el5
qpid-cpp-mrg-debuginfo-0.7.946106-28.el5
qpid-cpp-server-0.7.946106-28.el5
qpid-cpp-server-cluster-0.7.946106-28.el5
qpid-cpp-server-devel-0.7.946106-28.el5
qpid-cpp-server-ssl-0.7.946106-28.el5
qpid-cpp-server-store-0.7.946106-28.el5
qpid-cpp-server-xml-0.7.946106-28.el5
qpid-java-client-0.7.946106-15.el5
qpid-java-common-0.7.946106-15.el5
qpid-java-example-0.7.946106-15.el5
qpid-tools-0.7.946106-12.el5

How reproducible:
100%

Steps to Reproduce:
1. server1# service qpidd start
2. server1# qpid-config add queue myQueue
2. server2# service qpidd start
3. server2# qpid-config add exchange replication replication
5. server1# qpid-route queue add <server2 FQDN> localhost myExchange myQueue
6. server2# qpid-route route list
  
Actual results:
When using 'localhost' as a <src-broker> input string for qpid-route command, the route is not created correctly.

Expected results:
The route is created with FQDN of the given server.

SERVER 1:
Additional info:
# service qpidd start
Starting Qpid AMQP daemon:                                 [  OK  ]
# qpid-config add queue myQueue
# qpid-route queue add dhcp-37-229.lab.eng.brq.redhat.com localhost myExchange myQueue

SERVER 2:
# service qpidd start
Starting Qpid AMQP daemon:                                 [  OK  ]
# qpid-config add exchange direct myExchange
# qpid-route route list
# qpid-route route list
dhcp-37-229.lab.eng.brq.redhat.com:5672 localhost:5672 myExchange 
# qpid-route route map

Finding Linked Brokers:
    dhcp-37-229.lab.eng.brq.redhat.com:5672... Ok
    localhost:5672... Ok

Dynamic Routes:
  none found

Static Routes:

  dhcp-37-229.lab.eng.brq.redhat.com:5672(ex=myExchange) <= localhost:5672(queue=myQueue)
  localhost:5672(ex=myExchange) <= localhost:5672(queue=myQueue)