Red Hat Bugzilla – Bug 808396
cluster-url should not allow localhost addresses
Last modified: 2013-02-24 08:23:04 EST
Description of problem:
option cluster-url allows to specify failover address localhost that tells client to failover to his localhost and that is not right.
all localhost variants are allowed:
Domain name resolution may be done for Names like "localhost.localdomain", which could be specified by /etc/hosts.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set up cluster-name and cluster-url to some localhost address in /etc/qpidd.conf
2. start openais/corosync for clustering and broker
3. run qpid-cluster and observer that all localhost addresses are provided as URL
Cluster Name: mycluster
Cluster Status: ACTIVE
Cluster Size: 1
Members: ID=220.127.116.11:5500 URL=amqp:tcp:127.0.0.1:5672,tcp:localhost:5672,tcp:[::1]:5671,tcp:localhost6:5672,tcp:127.1:5672
qpidd fails with error message like: "Localhost addresses is not allowed for cluster-url"
or prints warning, and will not provide such localhost addresses to clients if there is some other correct addresss (Note that second result is subject of disscution)