Bug 883548 - Qpid HA's '--ha-public-url' option duplicates the '--known-hosts-url' option but cannot be disabled
Summary: Qpid HA's '--ha-public-url' option duplicates the '--known-hosts-url' option ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: 2.3
: ---
Assignee: Alan Conway
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks: 698367
TreeView+ depends on / blocked
 
Reported: 2012-12-04 20:49 UTC by Jason Dillaman
Modified: 2013-03-19 16:38 UTC (History)
3 users (show)

Fixed In Version: qpid-cpp-0.18-14
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-19 16:38:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jason Dillaman 2012-12-04 20:49:02 UTC
Description of problem:
Qpid HA's '--ha-public-url' option will replace the known broker URL list that is exchanged with all clients / federated peers.  This is the same behavior that '--known-hosts-url' provides with the exception that it cannot be disabled by specifying 'none' as the URL.  

As a result, if you federate two brokers over a NATed link, the NAT URL will be replaced by a potentially non-routable '--ha-public-url', which will prevent recovery of the link.  

Version-Release number of selected component (if applicable):
Qpid 0.18

How reproducible:
100%

Steps to Reproduce:
1. Federate two HA brokers over a NATed IP address -- ensure that the brokers can only connect over the NATed IP address
2. Interrupt the link
  
Actual results:
The destination broker will attempt to re-connect to the published '--ha-public-url' host instead of the original NAT URL.  

Expected results:
The destination broker will attempt to re-connect to the original NAT address if you can disable the '--ha-public-url' option / replace it w/ '--known-hosts-url=none'

Additional info:

Comment 1 Alan Conway 2012-12-14 14:49:47 UTC
Fixed on branch 0.18-mrg-aconway-bz883548-2

http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?h=0.18-mrg-aconway-bz883548-2&id=ddc6ef9102c13f1e8964336fee657177625f963d

Reverts the previous commit and simplifies the semantics of setting --ha-public-url and --ha-brokers-url. There is no longer any over-riding or implicit updating of values. That means you must set --ha-public-url as well as --ha-brokers-url, it will not be defaulted. Likewise if you *dont* set ha-public-url, it will remain empty, which is the use case in this bug. The defaulting was adding complexity without adding much value.


Note You need to log in before you can comment on or make changes to this bug.