<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 22, 2016 at 8:47 AM, Mike Bayer <span dir="ltr"><<a href="mailto:mbayer@redhat.com" target="_blank">mbayer@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class=""><br>
<br>
On 07/22/2016 04:02 AM, Kevin Benton wrote:<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
Now that we have switched to oslo.db for test provisioning the<br>
responsibility of choosing a location lands<br>
here: <a href="https://github.com/openstack/oslo.db/blob/a79479088029e4fa51def91cb36bc652356462b6/oslo_db/sqlalchemy/provision.py#L505" rel="noreferrer" target="_blank">https://github.com/openstack/oslo.db/blob/a79479088029e4fa51def91cb36bc652356462b6/oslo_db/sqlalchemy/provision.py#L505</a><br>
<br>
The problem is that when you specify OS_TEST_DBAPI_ADMIN_CONNECTION it<br>
does end up creating the file, but then the logic above chooses a URL<br>
based on the random ident. So you can find an sqlite file in your tmp<br>
dir, it just won't be the one you asked for.<br>
<br>
It seems like a bug in the oslo.db logic, but the commit that added it<br>
was part of a much larger refactor so I'm not sure if it was intentional<br>
to ensure that no two tests used the same db.<br>
</blockquote>
<br></span>
it is, the testr system runs tests in multiple subprocesses and I think neutron has it set to four.  if they all shared the same sqlite database file you'd have failed tests.<br></blockquote><div><br></div><div>A potential improvement might be to replace OS_TEST_DBAPI_ADMIN_CONNECTION with another environment variable which could be used to provide a template for generating multiple unique database names. That would make it a little more intuitive. But, I can work with this for now.</div><div><br></div><div>Car</div></div></div></div>