You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Pavel Moravec (JIRA)" <ji...@apache.org> on 2012/08/13 10:53:38 UTC
[jira] [Created] (QPID-4222) qpid-cluster -C ignores credentials
provided
Pavel Moravec created QPID-4222:
-----------------------------------
Summary: qpid-cluster -C ignores credentials provided
Key: QPID-4222
URL: https://issues.apache.org/jira/browse/QPID-4222
Project: Qpid
Issue Type: Bug
Components: Python Tools
Affects Versions: 0.14
Reporter: Pavel Moravec
Priority: Minor
Description of problem:
qpid-cluster -C shall connect to all brokers of the cluster to gather all connections to the brokers. However it ignores credentials from broker URL. So any connection attempt to a broker with authentication fails.
Version-Release number of selected component (if applicable):
any (incl. 0.12)
How reproducible:
100%
Steps to Reproduce:
1. Start clustered broker with authentication enabled (sasl config without anonymous mechanism)
2. SASL database to have default credentials stored (guest/guest for realm QPID)
3. Run:
qpid-cluster -C guest/guest@${HOSTNAME}:5672
Actual results:
Traceback (most recent call last):
File "/usr/bin/qpid-cluster", line 316, in ?
sys.exit(main())
File "/usr/bin/qpid-cluster", line 307, in main
raise Exception("Failed: %s - %s" % (e.__class__.__name__, e))
Exception: Failed: ConnectionFailed - (None, 'No acceptable SASL authentication mechanism available')
Expected results:
list of connections of the cluster to be printed out
Additional info:
Patch to be provided
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Updated] (QPID-4222) qpid-cluster -C ignores credentials
provided
Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Moravec updated QPID-4222:
--------------------------------
Attachment: 0001-qpid-cluster-C-ignores-credentials.patch
Simple patch proposal.
Root cause of the bug:
Method showConnections calls self.qmf.addBroker to host that contains IP:port of the brokers only, but not credentials.
Proposed patch carries on credentials (if present) from self.config._host variable and invokes self.qmf.addBroker with credentials+host.
> qpid-cluster -C ignores credentials provided
> --------------------------------------------
>
> Key: QPID-4222
> URL: https://issues.apache.org/jira/browse/QPID-4222
> Project: Qpid
> Issue Type: Bug
> Components: Python Tools
> Affects Versions: 0.14
> Reporter: Pavel Moravec
> Priority: Minor
> Labels: patch
> Attachments: 0001-qpid-cluster-C-ignores-credentials.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Description of problem:
> qpid-cluster -C shall connect to all brokers of the cluster to gather all connections to the brokers. However it ignores credentials from broker URL. So any connection attempt to a broker with authentication fails.
> Version-Release number of selected component (if applicable):
> any (incl. 0.12)
> How reproducible:
> 100%
> Steps to Reproduce:
> 1. Start clustered broker with authentication enabled (sasl config without anonymous mechanism)
> 2. SASL database to have default credentials stored (guest/guest for realm QPID)
> 3. Run:
> qpid-cluster -C guest/guest@${HOSTNAME}:5672
>
> Actual results:
> Traceback (most recent call last):
> File "/usr/bin/qpid-cluster", line 316, in ?
> sys.exit(main())
> File "/usr/bin/qpid-cluster", line 307, in main
> raise Exception("Failed: %s - %s" % (e.__class__.__name__, e))
> Exception: Failed: ConnectionFailed - (None, 'No acceptable SASL authentication mechanism available')
> Expected results:
> list of connections of the cluster to be printed out
> Additional info:
> Patch to be provided
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Resolved] (QPID-4222) qpid-cluster -C ignores credentials
provided
Posted by "michael j. goulish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
michael j. goulish resolved QPID-4222.
--------------------------------------
Resolution: Fixed
> qpid-cluster -C ignores credentials provided
> --------------------------------------------
>
> Key: QPID-4222
> URL: https://issues.apache.org/jira/browse/QPID-4222
> Project: Qpid
> Issue Type: Bug
> Components: Python Tools
> Affects Versions: 0.14
> Reporter: Pavel Moravec
> Priority: Minor
> Labels: patch
> Attachments: 0001-qpid-cluster-C-ignores-credentials.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Description of problem:
> qpid-cluster -C shall connect to all brokers of the cluster to gather all connections to the brokers. However it ignores credentials from broker URL. So any connection attempt to a broker with authentication fails.
> Version-Release number of selected component (if applicable):
> any (incl. 0.12)
> How reproducible:
> 100%
> Steps to Reproduce:
> 1. Start clustered broker with authentication enabled (sasl config without anonymous mechanism)
> 2. SASL database to have default credentials stored (guest/guest for realm QPID)
> 3. Run:
> qpid-cluster -C guest/guest@${HOSTNAME}:5672
>
> Actual results:
> Traceback (most recent call last):
> File "/usr/bin/qpid-cluster", line 316, in ?
> sys.exit(main())
> File "/usr/bin/qpid-cluster", line 307, in main
> raise Exception("Failed: %s - %s" % (e.__class__.__name__, e))
> Exception: Failed: ConnectionFailed - (None, 'No acceptable SASL authentication mechanism available')
> Expected results:
> list of connections of the cluster to be printed out
> Additional info:
> Patch to be provided
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org