[Openstack-docs] Cinder and sql_connect/connection
Andreas Jaeger
aj at suse.com
Fri Jan 10 15:00:01 UTC 2014
On 01/10/2014 03:50 PM, Steve Gordon wrote:
>
>
> ----- 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
So, let's do the following for Havana - as Matt suggested:
use "[database] connection" and add a note that in havana the default
cinder.conf does not contain a [database] section. Add for ubuntu: It
needs to be edited manually.
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
More information about the Openstack-docs
mailing list