Activity log for bug #1355684

Date Who What changed Old value New value Message
2014-08-12 09:30:26 RedBaron bug added bug
2014-08-12 09:31:06 RedBaron description The documentation for the classmethod `parse` states that The last parsed username and password will be propagated to the rest of hosts specified:: user:pass@host1:port1,host2:port2 [ {"username": "user", "password": "pass", "host": "host1:port1"}, {"username": "user", "password": "pass", "host": "host2:port2"} ] However, in parctice one needs to specify the usernames and passwords individually with every host. Otherwise no authentication credentials are set for that host. The test cases in the test_url.py file are also written keeping that behaviour in mind. >>> TransportURL.parse(oslo.config.cfg.ConfigOpts(),"rabbit://admin:pass@127.0.0.1:5672,127.0.0.2:5672//") <TransportURL transport='rabbit', virtual_host='/', hosts=[<TransportHost hostname='127.0.0.1', port=5672, username='admin', password='pass'>, <TransportHost hostname='127.0.0.2', port=5672>]> >>> TransportURL.parse(oslo.config.cfg.ConfigOpts(),"rabbit://admin:pass@127.0.0.1:5672,admin:pass@127.0.0.2:5672//") <TransportURL transport='rabbit', virtual_host='/', hosts=[<TransportHost hostname='127.0.0.1', port=5672, username='admin', password='pass'>, <TransportHost hostname='127.0.0.2', port=5672, username='admin', password='pass'>]> One out of code+tests or documentation needs to be changed. The documentation for the classmethod `parse` states that     The last parsed username and password will be propagated to the rest     of hosts specified::     user:pass@host1:port1,host2:port2     [     {"username": "user", "password": "pass", "host": "host1:port1"},     {"username": "user", "password": "pass", "host": "host2:port2"}     ] However, in practice one needs to specify the usernames and passwords individually with every host. Otherwise no authentication credentials are set for that host. The test cases in the test_url.py file are also written keeping that behaviour in mind. >>> TransportURL.parse(oslo.config.cfg.ConfigOpts(),"rabbit://admin:pass@127.0.0.1:5672,127.0.0.2:5672//") <TransportURL transport='rabbit', virtual_host='/', hosts=[<TransportHost hostname='127.0.0.1', port=5672, username='admin', password='pass'>, <TransportHost hostname='127.0.0.2', port=5672>]> >>> TransportURL.parse(oslo.config.cfg.ConfigOpts(),"rabbit://admin:pass@127.0.0.1:5672,admin:pass@127.0.0.2:5672//") <TransportURL transport='rabbit', virtual_host='/', hosts=[<TransportHost hostname='127.0.0.1', port=5672, username='admin', password='pass'>, <TransportHost hostname='127.0.0.2', port=5672, username='admin', password='pass'>]> One out of code+tests or documentation needs to be changed.
2014-08-12 09:57:54 RedBaron summary Documentation anomaly in TranportURL parse classmethod Documentation anomaly in TransportURL parse classmethod
2014-09-29 14:56:00 Doug Hellmann oslo.messaging: importance Undecided Low
2014-09-29 14:56:00 Doug Hellmann oslo.messaging: status New Confirmed
2014-10-29 14:16:50 Oleksii Zamiatin oslo.messaging: assignee Oleksii Zamiatin (ozamiatin)
2014-10-29 16:18:08 OpenStack Infra oslo.messaging: status Confirmed In Progress
2014-11-21 13:36:29 OpenStack Infra oslo.messaging: status In Progress Fix Committed
2014-12-02 16:57:29 Mehdi Abaakouk oslo.messaging: status Fix Committed Fix Released
2014-12-02 16:57:29 Mehdi Abaakouk oslo.messaging: milestone 1.5.0