ImportError: No module named migrate.versioning

Bug #1208425 reported by Hua Zhang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned
devstack
Invalid
Undecided
Unassigned

Bug Description

I failed to use the latest devstack code (today, Aug 5, 2013) to install openstack in RHEL6.4.

2013-08-05 18:22:30 + mysql -uroot -ppassword -h172.16.1.122 -e 'DROP DATABASE IF EXISTS keystone;'
2013-08-05 18:22:30 + mysql -uroot -ppassword -h172.16.1.122 -e 'CREATE DATABASE keystone CHARACTER SET utf8;'
2013-08-05 18:22:30 + /bak/openstack/keystone/bin/keystone-manage db_sync
2013-08-05 18:22:30 Traceback (most recent call last):
2013-08-05 18:22:30 File "/bak/openstack/keystone/bin/keystone-manage", line 16, in <module>
2013-08-05 18:22:30 from keystone import cli
2013-08-05 18:22:30 File "/bak/openstack/keystone/keystone/cli.py", line 27, in <module>
2013-08-05 18:22:30 from keystone.common.sql import migration
2013-08-05 18:22:30 File "/bak/openstack/keystone/keystone/common/sql/migration.py", line 23, in <module>
2013-08-05 18:22:30 from migrate.versioning import api as versioning_api
2013-08-05 18:22:30 ImportError: No module named migrate.versioning
2013-08-05 18:22:30 + [[ PKI == \P\K\I ]]
2013-08-05 18:22:30 + rm -rf /etc/keystone/ssl
2013-08-05 18:22:30 + /bak/openstack/keystone/bin/keystone-manage pki_setup
2013-08-05 18:22:30 Traceback (most recent call last):
2013-08-05 18:22:30 File "/bak/openstack/keystone/bin/keystone-manage", line 16, in <module>
2013-08-05 18:22:30 from keystone import cli
2013-08-05 18:22:30 File "/bak/openstack/keystone/keystone/cli.py", line 27, in <module>
2013-08-05 18:22:30 from keystone.common.sql import migration
2013-08-05 18:22:30 File "/bak/openstack/keystone/keystone/common/sql/migration.py", line 23, in <module>
2013-08-05 18:22:30 from migrate.versioning import api as versioning_api
2013-08-05 18:22:30 ImportError: No module named migrate.versioning

Noted that there is a similiar bug https://answers.launchpad.net/nova/+question/146204, but it doesn't work for me, bellow is sqlalchemy-migrate info.
$ sudo pip-2.6 show sqlalchemy-migrate
---
Name: sqlalchemy-migrate
Version: 0.7.2
Location: /usr/lib/python2.6/site-packages
Requires: SQLAlchemy, decorator, Tempita, setuptools

from migrate.versioning import api as versioning_api

Bob Ball (bob-ball)
Changed in devstack:
status: New → Confirmed
Revision history for this message
Bob Ball (bob-ball) wrote :

[stack@rbobo keystone]$ pip show sqlalchemy-migrate
---
Name: sqlalchemy-migrate
Version: 0.7.2
Location: /usr/lib/python2.6/site-packages
Requires: SQLAlchemy, decorator, Tempita, setuptools

which matches requirements.txt

affects: devstack → keystone
Revision history for this message
Bob Ball (bob-ball) wrote :

Sorry - meant to add keystone, not replace devstack!

Revision history for this message
Dolph Mathews (dolph) wrote :

This must have been fixed elsewhere.

Changed in devstack:
status: New → Invalid
Changed in keystone:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.