Bug 958725 - cinder-manage ignores --sql_connection parameter
Summary: cinder-manage ignores --sql_connection parameter
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.0
Assignee: Flavio Percoco
QA Contact: Giulio Fidente
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-02 10:04 UTC by Martin Magr
Modified: 2016-04-26 15:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-14 09:20:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1175530 0 None None None Never

Description Martin Magr 2013-05-02 10:04:29 UTC
Description of problem:
cinder-manage ignores --sql_connection parameter and uses some default. Not sure from where, because this option is commented in cinder.conf:
[para@virtual-rhel packstack]$ sudo cat /etc/cinder/cinder.conf | grep connection
#connection_type=<None>
#sql_connection=mysql://cinder:cinder@localhost/cinder
#sql_connection_debug=0

I've added "print 'used connection: %s' % FLAGS.sql_connection" to cinder/db/sqlalchemy/session.py:113 and output is following:
[para@virtual-rhel packstack]$ sudo cinder-manage --sql_connection=mysql://cinder:66ff39612f704b01.122.71/cinder db sync
used connection: mysql://cinder:cinder@localhost/cinder
2013-05-02 11:57:48 10457 WARNING cinder.db.sqlalchemy.session [-] SQL connection failed. 10 attempts left.

Version-Release number of selected component (if applicable):
[para@virtual-rhel packstack]$ rpm -qa openstack-cinder
openstack-cinder-2012.2.4-3.el6ost.noarch


Note You need to log in before you can comment on or make changes to this bug.