← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1159038] Re: Crash on start with SQLalchemy 0.8

 

It appears that we have sqlalchemy and sqlalchemy migrate pinned
appropriately:

  https://github.com/openstack/keystone/blob/master/tools/pip-requires

** Changed in: keystone
       Status: New => 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/1159038

Title:
  Crash on start with SQLalchemy 0.8

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  Running Keystone on Fedora Rawhide (just went to F20) yields this:

  Traceback (most recent call last):
    File "/usr/bin/keystone-all", line 110, in <module>
      int(CONF.admin_port)))
    File "/usr/bin/keystone-all", line 34, in create_server
      app = deploy.loadapp('config:%s' % conf, name=name)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
      return loadobj(APP, uri, name=name, **kw)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
      return context.create()
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
      return self.object_type.invoke(self)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
      **context.local_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
      val = callable(*args, **kw)
    File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 25, in urlmap_factory
      app = loader.get_app(app_name, global_conf=global_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
      name=name, global_conf=global_conf).create()
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 362, in app_context
      APP, name=name, global_conf=global_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 450, in get_context
      global_additions=global_additions)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
      APP, pipeline[-1], global_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 458, in get_context
      section)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
      value = import_string(found_expr)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 22, in import_string
      return pkg_resources.EntryPoint.parse("x=" + s).load(False)
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2017, in load
      entry = __import__(self.module_name, globals(),globals(), ['__name__'])
    File "/usr/lib/python2.7/site-packages/keystone/service.py", line 32, in <module>
      catalog_api=catalog.Manager(),
    File "/usr/lib/python2.7/site-packages/keystone/common/dependency.py", line 32, in __wrapped_init__
      init(self, *args, **kwargs)
    File "/usr/lib/python2.7/site-packages/keystone/catalog/core.py", line 65, in __init__
      super(Manager, self).__init__(CONF.catalog.driver)
    File "/usr/lib/python2.7/site-packages/keystone/common/manager.py", line 36, in __init__
      self.driver = importutils.import_object(driver_name)
    File "/usr/lib/python2.7/site-packages/keystone/openstack/common/importutils.py", line 40, in import_object
      return import_class(import_str)(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/keystone/openstack/common/importutils.py", line 30, in import_class
      __import__(mod_str)
    File "/usr/lib/python2.7/site-packages/keystone/catalog/backends/sql.py", line 21, in <module>
      from keystone.common.sql import migration
    File "/usr/lib/python2.7/site-packages/keystone/common/sql/migration.py", line 23, in <module>
      from migrate.versioning import api as versioning_api
    File "/usr/lib/python2.7/site-packages/migrate/versioning/api.py", line 33, in <module>
      from migrate.versioning import (repository, schema, version,
    File "/usr/lib/python2.7/site-packages/migrate/versioning/schema.py", line 10, in <module>
      from sqlalchemy import exceptions as sa_exceptions
  ImportError: cannot import name exceptions

  Packages:
  python-keystone-2013.1-0.3.g2.fc19.noarch
  python-sqlalchemy-0.8.0-0.2.b1.fc19.x86_64

  Pádraig said by e-mail:
    That's awkward.  0.8.0 is currently incompat with openstack.
    I suggest downgrading python-sqlalchemy to the 0.7 series for now

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1159038/+subscriptions