glance.registry.db.api does not support + as a special character for database password
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Wishlist
|
Brian Waldon | ||
Grizzly |
Fix Released
|
Wishlist
|
Brian Waldon |
Bug Description
Here is what I from Glance:
Glance works just fine with password glance_pass
root@control01:~# glance index
ID Name Disk Format Container Format Size
-------
522d08d7-
I change the db password to glance+pass and mysql accepts the new password:
root@control01:~# mysql -h192.168.220.41 -uglance -pglance+pass glance
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 69647
Server version: 5.5.23 Source distribution, wsrep_23.6.r3755
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
I change the password in glance-
root@control01:~# grep mysql /etc/glance/
sql_connection = mysql:/
The service fails to restart
root@control01:~# service glance-registry restart
stop: Unknown instance:
glance-registry start/running, process 5486
root@control01:~# service glance-registry status
glance-registry stop/waiting
The registry log shows the password not being accepted
root@control01:~# tail -f /var/log/
2012-11-06 17:52:36 5545 ERROR [glance.
(OperationalError) (1045, "Access denied for user 'glance'
2012-11-06 17:52:37 5552 ERROR [glance.
Changed in glance: | |
status: | Fix Committed → Fix Released |
I remember seeing this resolved somewhere (maybe the mailing list), but I'll reiterate what the solution was:
you need to urlencode your password before passing it to sqlalchemy
I'll make a note of this in the glance docs