Bug 1028688

Summary: should use new names in cinder-dist.conf
Product: [Community] RDO Reporter: Pádraig Brady <pbrady>
Component: openstack-cinderAssignee: Lars Kellogg-Stedman <lars>
Status: CLOSED EOL QA Contact: Giulio Fidente <gfidente>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: eharney, lars, srevivo
Target Milestone: Milestone2Keywords: Reopened
Target Release: Icehouse   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:36:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pádraig Brady 2013-11-09 15:43:34 UTC
change 'sql_connection' to 'connection' in the database group etc.
This is good form and also avoids a confusing config issue wrt
overriding config settings, logged at: http://pad.lv/1249620

Comment 1 Lars Kellogg-Stedman 2015-03-20 15:21:14 UTC
This seems to have been resolved in recent releases.

After installing the openstack-cinder package:

# sed -n '/^\[database]/,/^\[/p' /etc/cinder/cinder.conf | 
  grep -v '# ' | grep connection
#connection=<None>
#slave_connection=<None>
#connection_debug=0
#connection_trace=false


After a packstack install:

# crudini --format=lines --get /etc/cinder/cinder.conf  | grep connection
[ database ] connection = mysql://cinder:c05532b830db42ce.122.26/cinder

Comment 2 Lars Kellogg-Stedman 2015-03-20 15:22:07 UTC
Argh, I totally misread the file to check. Yeah, cinder-dist.conf still uses the legacy name:

[DEFAULT]
logdir = /var/log/cinder
state_path = /var/lib/cinder
lock_path = /var/lib/cinder/tmp
volumes_dir = /etc/cinder/volumes
iscsi_helper = lioadm
sql_connection = mysql://cinder:cinder@localhost/cinder
rootwrap_config = /etc/cinder/rootwrap.conf
auth_strategy = keystone

Comment 3 Lars Kellogg-Stedman 2015-03-20 15:25:59 UTC
Change proposed @ https://review.gerrithub.io/#/c/221786/

Comment 5 Chandan Kumar 2016-05-19 15:36:29 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.