<div dir="ltr">Steve - Great!<div><br></div><div>Given that the instructions for RHEL and SUSE variants already use "connection" in the [database] section and "openstack-config" will create the section, does this issue only affect Ubuntu now?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 7:50 AM, Steve Gordon <span dir="ltr"><<a href="mailto:sgordon@redhat.com" target="_blank">sgordon@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
----- Original Message -----<br>
> From: "Matt Kassawara" <<a href="mailto:mkassawara@gmail.com">mkassawara@gmail.com</a>><br>
> To: "Anne Gentle" <<a href="mailto:annegentle@justwriteclick.com">annegentle@justwriteclick.com</a>><br>
> Cc: "Andreas Jaeger" <<a href="mailto:aj@suse.com">aj@suse.com</a>>, <a href="mailto:openstack-docs@lists.openstack.org">openstack-docs@lists.openstack.org</a><br>
> Sent: Friday, January 10, 2014 9:40:57 AM<br>
> Subject: Re: [Openstack-docs] Cinder and sql_connect/connection<br>
><br>
> On at least Ubuntu and RHEL variants, placing "connection" in the<br>
> [database] section of cinder.conf appears to work. However, the<br>
> base/sample cinder.conf on both distributions lacks the [database] section.<br>
> The Ubuntu version is particularly sparse.<br>
><br>
> For Ubuntu, a previous patch to the installation guide merely moved<br>
> "sql_connection" to the [database] section which isn't supported. For RHEL<br>
> variants, apparently the "openstack-config" command breaks because it can't<br>
> find the [database] section and won't create it. The Havana release of<br>
> Cinder still supports the legacy "sql_connection" in the [default] section<br>
> in both distributions. We could revert the installation guides to use this<br>
> legacy configuration, but it would add an extra step for the upgrade<br>
> procedure to Icehouse.<br>
><br>
> For Ubuntu, I suggest we use the modern configuration with "connection" in<br>
> the [database] section and tell people to create the [database] header if<br>
> it doesn't exist. For RHEL variants, I suggest we mention editing<br>
> cinder.conf to add the [database] header before using the<br>
> "openstack-config" command with "connection" in the [database] section. On<br>
> a side note, I'm also thinking that "openstack-config" should support<br>
> creation of section headers.<br>
<br>
</div></div>It already does:<br>
<br>
-bash-4.1# touch test.conf<br>
-bash-4.1# openstack-config --set test.conf DEFAULT does_this_work True<br>
-bash-4.1# cat test.conf<br>
[DEFAULT]<br>
does_this_work = True<br>
<span class="HOEnZb"><font color="#888888"><br>
-Steve<br>
</font></span></blockquote></div><br></div>