incorrect ImportError message raised
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Mark Hamzy |
Bug Description
Logs show:
2018-03-05 20:50:01.665 35 WARNING stevedore.named [-] Could not load uuid
2018-03-05 20:50:01.666 35 CRITICAL keystone [-] Unhandled error: ImportError: (u'Unable to find %(name)r driver in %(namespace)r.',
{'namespace': 'keystone.
2018-03-05 20:50:01.666 35 ERROR keystone Traceback (most recent call last):
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
2018-03-05 20:50:01.666 35 ERROR keystone sys.exit(main())
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
in main
2018-03-05 20:50:01.666 35 ERROR keystone cli.main(
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
n main
2018-03-05 20:50:01.666 35 ERROR keystone CONF.command.
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
main
2018-03-05 20:50:01.666 35 ERROR keystone klass = cls()
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
__init__
2018-03-05 20:50:01.666 35 ERROR keystone self.load_
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
load_backends
2018-03-05 20:50:01.666 35 ERROR keystone drivers = backends.
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
53, in load_backends
2018-03-05 20:50:01.666 35 ERROR keystone drivers = {d._provides_api: d() for d in managers}
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
53, in <dictcomp>
2018-03-05 20:50:01.666 35 ERROR keystone drivers = {d._provides_api: d() for d in managers}
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
65, in __init__
2018-03-05 20:50:01.666 35 ERROR keystone super(Manager, self)._
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
181, in __init__
2018-03-05 20:50:01.666 35 ERROR keystone self.driver = load_driver(
2018-03-05 20:50:01.666 35 ERROR keystone File "/var/lib/
81, in load_driver
2018-03-05 20:50:01.666 35 ERROR keystone raise ImportError(msg, {'name': driver_name, 'namespace': namespace})
2018-03-05 20:50:01.666 35 ERROR keystone ImportError: (u'Unable to find %(name)r driver in %(namespace)r.', {'namespace': 'keystone
.token.provider', 'name': 'uuid'})
2018-03-05 20:50:01.666 35 ERROR keystone
which is misleading. The correct error should be:
2018-03-05 20:50:25.517 47 ERROR keystone ImportError: Unable to find 'uuid' driver in 'keystone.
Changed in keystone: | |
milestone: | none → rocky-1 |
Fix proposed to branch: master /review. openstack. org/549870
Review: https:/