yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69501
[Bug 1734913] Re: password with hash sign in URL in nova.conf crashes /usr/lib/python2.7/dist-packages/oslo_messaging/transport.py
It should be "rabbit://openstack:pwd%23morepwd@controller"
'#' should be escaped.
See the following bug report in oslo.messaging. (Comment #2)
* TransportURL.parse fails when passwords contain '#'
https://bugs.launchpad.net/oslo.messaging/+bug/1693967
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1734913
Title:
password with hash sign in URL in nova.conf crashes /usr/lib/python2.7
/dist-packages/oslo_messaging/transport.py
Status in OpenStack Compute (nova):
Invalid
Bug description:
Description:
- Following https://docs.openstack.org/ocata/install-guide-ubuntu/nova-controller-install.html at step "Install and configure components: 3" running "su -s /bin/sh -c "nova-manage api_db sync" nova" crashes in /usr/lib/python2.7/dist-packages/oslo_messaging/transport.py if a URL in nova.conf contains a password with the hash sign (#).
Steps to reproduce:
- follow https://docs.openstack.org/ocata/install-guide-ubuntu/nova-controller-install.html using e.g. a password of pwd#morepwd for RabbitMQ, i.e. in nova.conf: transport_url=rabbit://openstack:pwd#morepwd@controller
- at step "Install and configure components: 3" run "su -s /bin/sh -c "nova-manage api_db sync" nova" as instructed
Expected result:
- url should be parsed resulting use user "openstack" with password "pwd#morepwd" and server "controller"
Actual result:
- parsing will fail with crash of /usr/lib/python2.7/dist-packages/oslo_messaging/transport.py parse function as url string content after "rabbit://openstack:pwd" is interpreted as fragment "morepwd@controller"
Environment:
- as resulting from following https://docs.openstack.org/ocata/install-guide-ubuntu/nova-controller-install.html with Ubuntu 16.04.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1734913/+subscriptions
References