yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24160
[Bug 1386562] Re: keystone did not start (ImportError: Class TemplatedCatalog cannot be found)
Here is the traceback:
2014-10-28 14:12:26.324 2176 TRACE keystone Traceback (most recent call last):
2014-10-28 14:12:26.324 2176 TRACE keystone File "/opt/stack_newest/keystone/bin/keystone-all", line 147, in <module>
2014-10-28 14:12:26.324 2176 TRACE keystone backends.load_backends()
2014-10-28 14:12:26.324 2176 TRACE keystone File "/opt/stack_newest/keystone/keystone/backends.py", line 38, in load_backends
2014-10-28 14:12:26.324 2176 TRACE keystone catalog_api=catalog.Manager(),
2014-10-28 14:12:26.324 2176 TRACE keystone File "/opt/stack_newest/keystone/keystone/common/dependency.py", line 110, in __wrapped_init__
2014-10-28 14:12:26.324 2176 TRACE keystone init(self, *args, **kwargs)
2014-10-28 14:12:26.324 2176 TRACE keystone File "/opt/stack_newest/keystone/keystone/catalog/core.py", line 90, in __init__
2014-10-28 14:12:26.324 2176 TRACE keystone super(Manager, self).__init__(CONF.catalog.driver)
2014-10-28 14:12:26.324 2176 TRACE keystone File "/opt/stack_newest/keystone/keystone/common/manager.py", line 70, in __init__
2014-10-28 14:12:26.324 2176 TRACE keystone self.driver = importutils.import_object(driver_name)
2014-10-28 14:12:26.324 2176 TRACE keystone File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 38, in import_object
2014-10-28 14:12:26.324 2176 TRACE keystone return import_class(import_str)(*args, **kwargs)
2014-10-28 14:12:26.324 2176 TRACE keystone File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 33, in import_class
2014-10-28 14:12:26.324 2176 TRACE keystone traceback.format_exception(*sys.exc_info())))
2014-10-28 14:12:26.324 2176 TRACE keystone ImportError: Class TemplatedCatalog cannot be found (['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 29, in import_class\n return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'TemplatedCatalog'\n"])
2014-10-28 14:12:26.324 2176 TRACE keystone
key failed to start
** Also affects: devstack
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1386562
Title:
keystone did not start (ImportError: Class TemplatedCatalog cannot be
found)
Status in devstack - openstack dev environments:
New
Status in OpenStack Identity (Keystone):
New
Bug description:
After the commit ID 1ea9d50a2c828a3eb976e458659008a5461b1418 of Steve
Martinelli (made on Thu Oct 2 12:57:20 2014 -0400), keystone service
can no longer be started.
Root cause:
- At that commit ID, the class "TemplatedCatalog" is removed from the module keystone.catalog.backends.templated. Another class named "Catalog" also in that module is used.
- However, DevStack script is not updated accordingly. Consequently, the file "devstack/lib/keystone" still points to the removed class "TemplatedCatalog".
Proposal:
- Change the file "devstack/lib/keystone" so that it points to the right class that is the "Catalog"
Excerpt of the file "devstack/lib/keystone":
# Configure ``keystone.conf`` to use templates
iniset $KEYSTONE_CONF catalog driver "keystone.catalog.backends.templated.TemplatedCatalog"
iniset $KEYSTONE_CONF catalog template_file "$KEYSTONE_CATALOG"
Excerpt of the commit ID 1ea9d50a2c828a3eb976e458659008a5461b1418:
commit 1ea9d50a2c828a3eb976e458659008a5461b1418
Author: Steve Martinelli <stevemar@xxxxxxxxxx>
Date: Thu Oct 2 12:57:20 2014 -0400
Remove deprecated TemplatedCatalog class
Use keystone.catalog.backends.templated.Catalog instead
implements bp removed-as-of-kilo
Change-Id: I0415852991e504677d1d1a81740c72f0bd8fc8bb
To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/1386562/+subscriptions
References