Add a migration for plugins which added L3 support in Grizzly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Salvatore Orlando |
Bug Description
I am observing the following failure when migrating from folsom to Grizzly:
INFO [alembic.migration] Running upgrade 363468ac592c -> 511471cc46b
INFO [alembic.migration] Running upgrade 511471cc46b -> 3b54bf9e29f7
INFO [alembic.migration] Running upgrade 3b54bf9e29f7 -> 4692d074d587
Traceback (most recent call last):
File "./bin/
main()
File "/opt/stack/
CONF.
File "/opt/stack/
do_
File "/opt/stack/
getattr(
File "/usr/local/
script.
File "/usr/local/
util.
File "/usr/local/
module = imp.load_
File "/opt/stack/
run_
File "/opt/stack/
options=
File "<string>", line 7, in run_migrations
File "/usr/local/
self.
File "/usr/local/
change(**kw)
File "/opt/stack/
sa.
File "<string>", line 7, in create_table
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
conn.
File "/usr/local/
params)
File "/usr/local/
compiled
File "/usr/local/
context)
File "/usr/local/
context)
File "/usr/local/
cursor.
File "/usr/lib/
self.
File "/usr/lib/
raise errorclass, errorvalue
sqlalchemy.
user@nvp-
It looks like the problem is related to the fact that the 'routers' table is not in the database as I am running migrations for the NVP plugin which is not L3 capable in folsom.
Setting to grizzly-rc-1 just to keep it on the radar until it's confirmed or rejected.
summary: |
- Failure in DB migration 4692d074d587 + Add a migration for plugins which added L3 support in Grizzly |
description: | updated |
Changed in quantum: | |
milestone: | none → grizzly-rc1 |
Changed in quantum: | |
importance: | Undecided → High |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | grizzly-rc1 → 2013.1 |
the problem seems actually not to be related to this specific migration.
It's unfortunately a bit tricker.
Basically if a plugin was running folsom without extension 'X', and then it's upgraded to Grizzly where X is supported, the data model changes for including support for the 'X' extension are not executed by alembic, and therefore migrations which refer to bits in the data model pertaining to this extension fail.
In my case, this migration failed because folsom NVP plugin did not support L3 extension, and so there was no 'router' table in the database.