Bug 748786 - sqlalchemy-migrate requirement
Summary: sqlalchemy-migrate requirement
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: openstack-glance
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Russell Bryant
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-25 11:28 UTC by David Busby
Modified: 2012-01-03 14:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-03 14:22:07 UTC
Type: ---


Attachments (Terms of Use)

Description David Busby 2011-10-25 11:28:08 UTC
Description of problem:

python-migrate included as dependency, this leads to erros when attempting to create the db.

2011-10-25 13:16:37,740 CRITICAL nova [-] __init__() takes exactly 1 argument (2 given)
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE:   File "/usr/bin/nova-manage", line 2141, in <module>
(nova): TRACE:     main()
(nova): TRACE:   File "/usr/bin/nova-manage", line 2129, in main
(nova): TRACE:     fn(*fn_args, **fn_kwargs)
(nova): TRACE:   File "/usr/bin/nova-manage", line 1148, in sync
(nova): TRACE:     return migration.db_sync(version)
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/nova/db/migration.py", line 35, in db_sync
(nova): TRACE:     return IMPL.db_sync(version=version)
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/nova/utils.py", line 452, in __getattr__
(nova): TRACE:     backend = self.__get_backend()
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/nova/utils.py", line 447, in __get_backend
(nova): TRACE:     self.__backend = __import__(name, None, None, fromlist)
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line 25, in <module>
(nova): TRACE:     from migrate.versioning import api as versioning_api
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/api.py", line 5, in <module>
(nova): TRACE:     from migrate.versioning.repository import *
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/repository.py", line 8, in <module>
(nova): TRACE:     from migrate.versioning import script,exceptions,version
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/script/__init__.py", line 1, in <module>
(nova): TRACE:     from py import *
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/script/py.py", line 2, in <module>
(nova): TRACE:     from logsql import LogsqlFile
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/script/logsql.py", line 2, in <module>
(nova): TRACE:     from migrate.versioning import logengine
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/logengine.py", line 260, in <module>
(nova): TRACE:     LogEngineStrategy()
(nova): TRACE:   File "/usr/lib/python2.6/site-packages/migrate/versioning/logengine.py", line 253, in __init__
(nova): TRACE:     super(LogEngineStrategy,self).__init__('logsql')
(nova): TRACE: TypeError: __init__() takes exactly 1 argument (2 given)
(nova): TRACE: 

Resolution removal of python-migrate and installation of sqlalchemy-migrate via setuptools.
 in short we need python-sqlalchemy-migrate

Comment 1 Pádraig Brady 2011-10-25 11:48:19 UTC
That would diverge from fedora though where we use python-migrate rather than python-sqlalchemy-migrate.

Note RHEL 6.2 has python-sqlalchemy-0.5.5 whereas Fedora 16 has 0.7.3
It was noted on irc that 0.6.3 was required. Perhaps that's the issue?

Comment 2 Russell Bryant 2012-01-03 14:09:43 UTC
Is this still a problem after the update to depend on a newer version of sqlalchemy?

Comment 3 Pádraig Brady 2012-01-03 14:22:07 UTC
Any python-migrate issues should have been handled by this update:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2011-5168/python-migrate-0.6-6.el6

Thanks for triaging these Russell.


Note You need to log in before you can comment on or make changes to this bug.