<div dir="ltr"><div>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.<br>
</div><div><br></div><div>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.</div>

<div><br></div><div>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.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Andreas - Do you know what SUSE supports in cinder.conf?<br><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 7:10 AM, Anne Gentle <span dir="ltr"><<a href="mailto:annegentle@justwriteclick.com" target="_blank">annegentle@justwriteclick.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Fri, Jan 10, 2014 at 6:10 AM, Andreas Jaeger <span dir="ltr"><<a href="mailto:aj@suse.com" target="_blank">aj@suse.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">One thing that caused many bug reports in the guide, is the usage of<br>



connection in cinder. It moved during Havana development from<br>
sql_connection in DEFAULT section to connection in database section but<br>
the cinder.conf file was not properly regenerated.<br>
<br>
And some people had problems with setting connection like:<br>
<a href="https://bugs.launchpad.net/openstack-manuals/+bug/1245880" target="_blank">https://bugs.launchpad.net/openstack-manuals/+bug/1245880</a><br>
<br>
And thus a patch was added (<a href="https://review.openstack.org/#/c/63301/" target="_blank">https://review.openstack.org/#/c/63301/</a>) and<br>
backported that changed some places to use connection but did not update<br>
everything - and now we get bug reports about this brokenness. I just<br>
marked another bug as duplicate and thus decided to write this to find a<br>
solution.<br>
<br>
For Icehouse, we should document the "connection" variant since this<br>
just got fixed in cinder.conf - and those revert the patch<br>
<br>
For the Havana version of the install guide, we have two options:<br>
* Use sql_connection in DEFAULT and cleanup the documentation.<br>
* Revert the broken patch and use connection for all distributions<br>
<br>
<br>
Bug report about cinder at:<br>
<a href="https://bugs.launchpad.net/cinder/+bug/1260322" target="_blank">https://bugs.launchpad.net/cinder/+bug/1260322</a><br>
<br>
this was just approved for fixing:<br>
<a href="https://review.openstack.org/#/c/61736/" target="_blank">https://review.openstack.org/#/c/61736/</a><br>
<br>
I'm now going to send a reversal patch for 63301 for the master branch.<br>
<br>
But I'd like to know what to do about Havana:<br>
Revert - or update as well?<br></blockquote><div><br></div></div><div>Hm, toughie, thanks for bringing it up. I think we should explain the issue on ubuntu (as reported in 1245880, it requires sql_connection in DEFAULT) and cleanup. </div>
<div class="im">

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Chandan, will you take care of Havana? The bug is currently assigned to you,<br>
<br></blockquote><div><br></div></div><div>Much appreciated if you can do it!</div><div>Thanks,</div><div>Anne</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



Andreas<br>
<span><font color="#888888">--<br>
 Andreas Jaeger aj@{<a href="http://suse.com" target="_blank">suse.com</a>,<a href="http://opensuse.org" target="_blank">opensuse.org</a>} Twitter/Identica: jaegerandi<br>
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany<br>
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)<br>
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126<br>
<br>
_______________________________________________<br>
Openstack-docs mailing list<br>
<a href="mailto:Openstack-docs@lists.openstack.org" target="_blank">Openstack-docs@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a><br>
</font></span></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Anne Gentle<br><a href="mailto:annegentle@justwriteclick.com" target="_blank">annegentle@justwriteclick.com</a>
</font></span></div></div>
<br>_______________________________________________<br>
Openstack-docs mailing list<br>
<a href="mailto:Openstack-docs@lists.openstack.org">Openstack-docs@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a><br>
<br></blockquote></div><br></div></div>