yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04633
[Bug 1208382] Re: Migrate script 203 doesn't work with SQLAlchemy 0.8.x
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => havana-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1208382
Title:
Migrate script 203 doesn't work with SQLAlchemy 0.8.x
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Using SQLAlchemy 0.8.x I get the following traceback when migrate
script 203 is applied:
Traceback (most recent call last):
File "/home/rpodolyaka/src/nova/nova/tests/api/ec2/test_cloud.py", line 112, in setUp
super(CloudTestCase, self).setUp()
File "/home/rpodolyaka/src/nova/nova/test.py", line 235, in setUp
sqlite_clean_db=CONF.sqlite_clean_db)
File "/home/rpodolyaka/src/nova/nova/test.py", line 94, in __init__
db_migrate.db_sync()
File "/home/rpodolyaka/src/nova/nova/db/migration.py", line 33, in db_sync
return IMPL.db_sync(version=version)
File "/home/rpodolyaka/src/nova/nova/db/sqlalchemy/migration.py", line 75, in db_sync
return versioning_api.upgrade(get_engine(), repository, version)
File "/home/rpodolyaka/src/nova/.tox/py27/local/lib/python2.7/site-packages/migrate/versioning/api.py", line 186, in upgrade
return _migrate(url, repository, version, upgrade=True, err=err, **opts)
File "<string>", line 2, in _migrate
File "/home/rpodolyaka/src/nova/nova/db/sqlalchemy/migration.py", line 40, in patched_with_engine
return f(*a, **kw)
File "/home/rpodolyaka/src/nova/.tox/py27/local/lib/python2.7/site-packages/migrate/versioning/api.py", line 366, in _migrate
schema.runchange(ver, change, changeset.step)
File "/home/rpodolyaka/src/nova/.tox/py27/local/lib/python2.7/site-packages/migrate/versioning/schema.py", line 91, in runchange
change.run(self.engine, step)
File "/home/rpodolyaka/src/nova/.tox/py27/local/lib/python2.7/site-packages/migrate/versioning/script/py.py", line 145, in run
script_func(engine)
File "/home/rpodolyaka/src/nova/nova/db/sqlalchemy/migrate_repo/versions/203_make_user_quotas_key_and_value.py", line 39, in upgrade
_warn_on_bytestring=False))
TypeError: __init__() got an unexpected keyword argument 'assert_unicode'
Keyword argument 'assert_unicode' had been deprecated for a long
time and was removed in 0.8 release.
According to the changelog message
(http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html
#change-ad44af79c886d1bb283042deb64f9cbe) and corresponding commit
message
(https://bitbucket.org/dimonji/sqlalchemy/commits/d576b5fd0cb9fc7928d77aa3411b5b1efab36c07)
this keyword argument was non-functional, so it can be safely removed
from the existing migrations script to make it work correctly for both
SQLAlchemy 0.7.x and 0.8.x branches
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1208382/+subscriptions