glance-manage ignores --sql_connection parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Flavio Percoco |
Bug Description
glance-manage ignores --sql_connection parameter and uses connection from config file /etc/glance/
[para@virtual-rhel packstack]$ sudo glance-manage --sql_connectio
2013-05-02 13:52:52.543 13954 CRITICAL glance [-] (OperationalError) (2002, "Can't connect to local MySQL server through socket '/var/lib/
[para@virtual-rhel packstack]$ mysql -h 192.168.122.71 -u'glance' -p'4437d490c3cf
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 165
Server version: 5.1.66 Source distribution
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>
Changed in glance: | |
assignee: | nobody → Flavio Percoco (flaper87) |
importance: | Undecided → Medium |
Changed in glance: | |
status: | New → Triaged |
Changed in glance: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-3 → 2013.2 |
Unfortunately, this is not a bug. Oslo currently gives priority to config files instead of cli arguments, which is the expected behavior. I started a discussion on the m-l proposing to invert this behavior.
http:// lists.openstack .org/pipermail/ openstack- dev/2013- May/008551. html