keystone fails to find template catalog file

Bug #947060 reported by koolhead17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Dolph Mathews

Bug Description

I tried to install/execute/run keystone essex-4 and encountered this issue.
Work around: Add the complete path inside the keystone.conf file.

$ ./keystone-all
2012-03-05 03:04:23 DEBUG [keystone-all] ********************************************************************************
2012-03-05 03:04:23 DEBUG [keystone-all] Configuration options gathered from:
2012-03-05 03:04:23 DEBUG [keystone-all] command line args: []
2012-03-05 03:04:23 DEBUG [keystone-all] config files: ['/home/precious/openstack-keystone-95413dc/etc/keystone.conf']
2012-03-05 03:04:23 DEBUG [keystone-all] ================================================================================
2012-03-05 03:04:23 DEBUG [keystone-all] admin_port = 35357
2012-03-05 03:04:23 DEBUG [keystone-all] admin_token = ADMIN
2012-03-05 03:04:23 DEBUG [keystone-all] compute_port = 8774
2012-03-05 03:04:23 DEBUG [keystone-all] config_file = ['/home/precious/openstack-keystone-95413dc/etc/keystone.conf']
2012-03-05 03:04:23 DEBUG [keystone-all] crypt_strength = 40000
2012-03-05 03:04:23 DEBUG [keystone-all] debug = True
2012-03-05 03:04:23 DEBUG [keystone-all] log_config = None
2012-03-05 03:04:23 DEBUG [keystone-all] log_date_format = %Y-%m-%d %H:%M:%S
2012-03-05 03:04:23 DEBUG [keystone-all] log_dir = None
2012-03-05 03:04:23 DEBUG [keystone-all] log_file = None
2012-03-05 03:04:23 DEBUG [keystone-all] log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
2012-03-05 03:04:23 DEBUG [keystone-all] public_port = 5000
2012-03-05 03:04:23 DEBUG [keystone-all] syslog_log_facility = LOG_USER
2012-03-05 03:04:23 DEBUG [keystone-all] use_syslog = False
2012-03-05 03:04:23 DEBUG [keystone-all] verbose = True
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.password = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.role_id_attribute = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.role_member_attribute = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.role_objectclass = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.role_tree_dn = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.suffix = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.tenant_id_attribute = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.tenant_member_attribute = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.tenant_objectclass = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.tenant_tree_dn = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.url = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.use_dumb_member = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.user = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.user_id_attribute = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.user_objectclass = None
2012-03-05 03:04:23 DEBUG [keystone-all] ldap.user_tree_dn = None
2012-03-05 03:04:23 DEBUG [keystone-all] token.driver = keystone.token.backends.kvs.Token
2012-03-05 03:04:23 DEBUG [keystone-all] catalog.driver = keystone.catalog.backends.templated.TemplatedCatalog
2012-03-05 03:04:23 DEBUG [keystone-all] ec2.driver = keystone.contrib.ec2.backends.kvs.Ec2
2012-03-05 03:04:23 DEBUG [keystone-all] sql.connection = mysql://keystone:keystone@<IP>/keystone
2012-03-05 03:04:23 DEBUG [keystone-all] sql.idle_timeout = 200
2012-03-05 03:04:23 DEBUG [keystone-all] sql.max_pool_size = 10
2012-03-05 03:04:23 DEBUG [keystone-all] sql.min_pool_size = 5
2012-03-05 03:04:23 DEBUG [keystone-all] sql.pool_timeout = 200
2012-03-05 03:04:23 DEBUG [keystone-all] policy.driver = keystone.policy.backends.simple.SimpleMatch
2012-03-05 03:04:23 DEBUG [keystone-all] identity.driver = keystone.identity.backends.kvs.Identity
2012-03-05 03:04:23 DEBUG [keystone-all] ********************************************************************************
Traceback (most recent call last):
  File "./keystone-all", line 68, in <module>
    int(options['admin_port'])))
  File "./keystone-all", line 29, in create_server
    app = deploy.loadapp('config:%s' % conf, name=name)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
    **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory
    app = loader.get_app(app_name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
    name=name, global_conf=global_conf).create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, in invoke
    app = context.app_context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/home/precious/openstack-keystone-95413dc/keystone/service.py", line 547, in admin_app_factory
    return AdminRouter()
  File "/home/precious/openstack-keystone-95413dc/keystone/service.py", line 37, in __init__
    version_controller = VersionController('admin')
  File "/home/precious/openstack-keystone-95413dc/keystone/service.py", line 137, in __init__
    self.catalog_api = catalog.Manager()
  File "/home/precious/openstack-keystone-95413dc/keystone/catalog/core.py", line 44, in __init__
    super(Manager, self).__init__(CONF.catalog.driver)
  File "/home/precious/openstack-keystone-95413dc/keystone/common/manager.py", line 23, in __init__
    self.driver = utils.import_object(driver_name)
  File "/home/precious/openstack-keystone-95413dc/keystone/common/utils.py", line 61, in import_object
    return cls(*args, **kw)
  File "/home/precious/openstack-keystone-95413dc/keystone/catalog/backends/templated.py", line 89, in __init__
    self._load_templates(CONF.catalog.template_file)
  File "/home/precious/openstack-keystone-95413dc/keystone/catalog/backends/templated.py", line 93, in _load_templates
    self.templates = parse_templates(open(template_file))
IOError: [Errno 2] No such file or directory: './etc/default_catalog.templates'
Download as text

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

Looks like the docs don't instruct you to change the default path; will amend docs.

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
importance: Undecided → Low
milestone: none → essex-rc1
status: New → Confirmed
Changed in keystone:
status: Confirmed → In Progress
Revision history for this message
Jesse Andrews (anotherjesse) wrote :

also we should make it so the error is readable - not a traceback

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4941

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/4941
Committed: http://github.com/openstack/keystone/commit/fd4e9616ddca4dbd0c4f0545c376167b966eae8d
Submitter: Jenkins
Branch: master

commit fd4e9616ddca4dbd0c4f0545c376167b966eae8d
Author: Dolph Mathews <email address hidden>
Date: Mon Mar 5 16:47:58 2012 -0600

    Isolating backtraces to DEBUG (bug 947060)

    Debug mode on: http://pastie.org/3529520
      (full backtrace to stdout)

    Debug mode off: http://pastie.org/3529526
      (Just an error message to stdout)

    Change-Id: I1d4e17cf73e7777c3cbaef7c5d7fd18a4f6e53dc

Changed in keystone:
status: In Progress → Fix Committed
Changed in keystone:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/4757
Committed: http://github.com/openstack/keystone/commit/e05bc6a6edeee5e1430e6c36fb38c911821800f5
Submitter: Jenkins
Branch: master

commit e05bc6a6edeee5e1430e6c36fb38c911821800f5
Author: Dolph Mathews <email address hidden>
Date: Thu Mar 1 12:31:53 2012 -0600

    Diablo to Essex migration docs (bug 934328)

    - Also includes notes to address bug 947060

    Change-Id: I2756457861f3e84334a7d37aed31372a3b02dd40

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-rc1 → 2012.1
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.