[Openstack-docs] Cinder and sql_connect/connection

Steve Gordon sgordon at redhat.com
Fri Jan 10 14:50:24 UTC 2014



----- Original Message -----
> From: "Matt Kassawara" <mkassawara at gmail.com>
> To: "Anne Gentle" <annegentle at justwriteclick.com>
> Cc: "Andreas Jaeger" <aj at suse.com>, openstack-docs at lists.openstack.org
> Sent: Friday, January 10, 2014 9:40:57 AM
> Subject: Re: [Openstack-docs] Cinder and sql_connect/connection
> 
> On at least Ubuntu and RHEL variants, placing "connection" in the
> [database] section of cinder.conf appears to work.  However, the
> base/sample cinder.conf on both distributions lacks the [database] section.
>  The Ubuntu version is particularly sparse.
> 
> For Ubuntu, a previous patch to the installation guide merely moved
> "sql_connection" to the [database] section which isn't supported.  For RHEL
> variants, apparently the "openstack-config" command breaks because it can't
> find the [database] section and won't create it.  The Havana release of
> Cinder still supports the legacy "sql_connection" in the [default] section
> in both distributions.  We could revert the installation guides to use this
> legacy configuration, but it would add an extra step for the upgrade
> procedure to Icehouse.
> 
> For Ubuntu, I suggest we use the modern configuration with "connection" in
> the [database] section and tell people to create the [database] header if
> it doesn't exist.  For RHEL variants, I suggest we mention editing
> cinder.conf to add the [database] header before using the
> "openstack-config" command with "connection" in the [database] section.  On
> a side note, I'm also thinking that "openstack-config" should support
> creation of section headers.

It already does:

-bash-4.1# touch test.conf
-bash-4.1# openstack-config --set test.conf DEFAULT does_this_work True
-bash-4.1# cat test.conf 
[DEFAULT]
does_this_work = True

-Steve



More information about the Openstack-docs mailing list