fixtures in neutron.tests.base blow away default database config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Kevin Benton |
Bug Description
Really trying to narrow this one down fully, and just putting this up because this is as far as I've gotten.
Basically, the lines in neutron/
line 159: self.addCleanup
line 182: self.useFixture
cause cfg.CONF to get totally wiped out in the "database" config. I don't yet understand why this is the case.
if you then run any test that extends BaseTestCase, and then run neutron/
Traceback (most recent call last):
File "/Users/
self.plugin = importutils.
File "/Users/
return import_
File "/Users/
db.
File "/Users/
register_
File "/Users/
facade = _create_
File "/Users/
_FACADE = session.
File "/Users/
retry_
File "/Users/
**engine_
File "/Users/
if "sqlite" in connection_
AttributeError: 'NoneType' object has no attribute 'drivername'
I'm getting this error running tox on a subset of tests, however it's difficult to reproduce as the subprocesses have to work out just right.
To reproduce, just install nose and do:
.tox/py27/
That is, DbModelTestCase is a harmless test but because it runs base.BaseTestCase first, cfg.CONF gets blown away.
I don't know what the solution should be here, cfg.CONF shouldn't be reset but I don't know what "messaging_
<string>
/Users/
-> from neutron.api import extensions
/Users/
-> from neutron import manager
/Users/
-> from neutron.common import rpc as n_rpc
/Users/
-> from neutron import context
/Users/
-> from neutron import policy
/Users/
-> cfg.CONF.
/Users/
-> __import_
/Users/
-> max_overflow=20, pool_timeout=10)
> /Users/
-> conf.register_
e.g. oslo.db set_defaults() sets it up.
Changed in neutron: | |
milestone: | none → juno-3 |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/108544
Review: https:/