Bug 748786

Summary: sqlalchemy-migrate requirement
Product: [Fedora] Fedora EPEL Reporter: David Busby <d.busby>
Component: openstack-glanceAssignee: Russell Bryant <rbryant>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: d.busby, markmc, matt_domsch, pbrady, p, rbryant, rkukura
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-03 14:22:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.