iso8601 is required by default on keystone

Bug #1020613 reported by Chmouel Boudjnah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Chmouel Boudjnah

Bug Description

It seems that the module iso8601 is now needed by default on keystone, it is only included in tools/test-requires and I am getting on a clean devstack install (with only keystone installed) :

stack@devstack:~/keystone$ /opt/stack/keystone/bin/keystone-manage db_sync [master]
Traceback (most recent call last):
  File "/opt/stack/keystone/bin/keystone-manage", line 28, in <module>
    cli.main(argv=sys.argv, config_files=config_files)
  File "/opt/stack/keystone/keystone/cli.py", line 164, in main
    return run(cmd, (args[:1] + args[2:]))
  File "/opt/stack/keystone/keystone/cli.py", line 147, in run
    return CMDS[cmd](argv=args).run()
  File "/opt/stack/keystone/keystone/cli.py", line 35, in run
    return self.main()
  File "/opt/stack/keystone/keystone/cli.py", line 54, in main
    driver = importutils.import_object(getattr(CONF, k).driver)
  File "/opt/stack/keystone/keystone/openstack/common/importutils.py", line 39, in import_object
    return import_class(import_str)(*args, **kwargs)
  File "/opt/stack/keystone/keystone/openstack/common/importutils.py", line 34, in import_class
    (class_str, str(exc)))
ImportError: Class Identity cannot be found (No module named iso8601)
Exception KeyError: KeyError(44501392,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

this is because of keystone.token.core include :

from keystone.openstack.common import timeutils

which need iso8601

Changed in keystone:
assignee: nobody → Chmouel Boudjnah (chmouel)
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/9274

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

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

commit f648819f02135b86c4532758972769fdcb01be5e
Author: Chmouel Boudjnah <email address hidden>
Date: Tue Jul 3 15:08:46 2012 +0000

    Set iso8601 module as default dependence.

    - The iso8601 module is needed by the openstack.common.common.timeutils
      module and not just for testing anymore.
    - Fixes bug 1020613.

    Change-Id: Iee535b961cc2ac9530e31f4ff4d8c64a1822643f

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-2 → 2012.2
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.