summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2011-08-24 15:50:46 +0100
committerMark McLoughlin <markmc@redhat.com>2011-08-24 15:50:46 +0100
commitb428ac4c20e44f537b0dedeefcc2637efbc998ea (patch)
treeba24bb21d6fdd466c9d58ead0a2594642d42f0e7 /nova/context.py
parent0873a3c7b9a1a75c6e04bd1b66f8fbe4935585b2 (diff)
downloadnova-b428ac4c20e44f537b0dedeefcc2637efbc998ea.tar.gz
nova-b428ac4c20e44f537b0dedeefcc2637efbc998ea.tar.xz
nova-b428ac4c20e44f537b0dedeefcc2637efbc998ea.zip
Fix quotas migration failure
With sqlalchemy 0.7.2 and migrate 0.7.1, I was seeing: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nova/db/migration.py", line 37, in db_sync ret = IMPL.db_sync(version=version) [..] File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/migrate_repo/versions/016_make_quotas_key_and_value.py", line 189, in upgrade new_quotas.rename('quotas') [..] File "/usr/lib/python2.7/site-packages/migrate/changeset/schema.py", line 479, in deregister del meta.tables[key] File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/_collections.py", line 38, in _immutable raise TypeError("%s object is immutable" % self.__class__.__name__) TypeError: immutabledict object is immutable This is actually a bug in sqlalchemy-migrate: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=128 But it can be worked around by ensuring there isn't a 'quotas' table in the metadata's table hash before renaming.
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions