TestMigrations does not work with latest migrate and sqlaclhemy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
Undecided
|
Jason Kölker |
Bug Description
Brand new virtual env:
=======
ERROR: test_walk_versions (nova.tests.
-------
Traceback (most recent call last):
File "/home/
self.
File "/home/
TestMigrati
File "<string>", line 2, in db_version
File "/home/
return f(*a, **kw)
File "/home/
schema = ControlledSchem
File "/home/
self.load()
File "/home/
self.table = Table(tname, self.meta, autoload=True)
File "/home/
table.
File "/home/
self.
File "/home/
self, include_columns, exclude_columns
File "/home/
return conn.run_
File "/home/
return callable_(self, *args, **kwargs)
File "/home/
return insp.reflecttab
File "/home/
raise exc.NoSuchTable
DatabaseNotCont
Jason Kölker (jason-koelker) wrote : | #1 |
Changed in nova: | |
assignee: | nobody → Jason Kölker (jason-koelker) |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Fix proposed to branch: master
Review: https:/
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: master
commit a7df90089557516
Author: Jason Kölker <email address hidden>
Date: Fri Feb 24 10:10:21 2012 -0600
Monkey patch migrate < 0.7.3
* Works around migrate issue 72 [1] by monkey patching migrate prior
to import.
* Removes previous workaround
* Refactor test config to work under nosetests directly
* Fixes LP940407
1: https:/
Change-Id: I219e4cecf8bb2e
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → essex-4 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-4 → 2012.1 |
It appears that its creating one sqlite memory db applying the version to it, and then testing a new sqlite memory db for version control.