yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06148
[Bug 1254737] Re: ImportError: cannot import name AddConstraint
Unfortunately, we currently only support 0.7.x and are currently working
on supporting >=0.8.x in icehouse:
https://github.com/openstack/requirements/blob/a0acd133f3a005c81e555eadde9ad0a7f0236c0e
/global-requirements.txt#L94
If you have pip available, you might be able to upgrade with:
pip install --upgrade "SQLAlchemy>=0.7.8,<=0.7.99"
** Changed in: keystone
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1254737
Title:
ImportError: cannot import name AddConstraint
Status in OpenStack Identity (Keystone):
Invalid
Bug description:
[Environment]
OS: RedHat 6.4
[Problems]:
When I install the Identity Service, after I type "openstack-db --init
--service keystone --password KEYSTONE_DBPASS", it will show as
follows:
[root@controller yum.repos.d]# openstack-db --init --service keystone --password KEYSTONE_DBPASS
Please enter the password for the 'root' MySQL user:
Verified connectivity to MySQL.
Creating 'keystone' database.
Updating 'keystone' database password in /etc/keystone/keystone.conf
Initializing the keystone database, please wait...
Traceback (most recent call last):
File "/usr/bin/keystone-manage", line 37, in <module>
from keystone import cli
File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 21, in <module>
from migrate import exceptions
File "/usr/lib/python2.6/site-packages/migrate/__init__.py", line 31, in <module>
from migrate.changeset import *
File "/usr/lib/python2.6/site-packages/migrate/changeset/__init__.py", line 21, in <module>
from migrate.changeset.schema import *
File "/usr/lib/python2.6/site-packages/migrate/changeset/schema.py", line 15, in <module>
from migrate.changeset.databases.visitor import (get_engine_visitor,
File "/usr/lib/python2.6/site-packages/migrate/changeset/databases/visitor.py", line 6, in <module>
from migrate.changeset import ansisql
File "/usr/lib/python2.6/site-packages/migrate/changeset/ansisql.py", line 22, in <module>
from sqlalchemy.schema import AddConstraint, DropConstraint
ImportError: cannot import name AddConstraint
ERROR 1146 (42S02) at line 1: Table 'keystone.migrate_version' doesn't exist
Final sanity check failed.
Please file a bug report on bugzilla.redhat.com against the openstack-keystone package.
Which reason leads to this problem? Can someone help me? Thank you !
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1254737/+subscriptions