当我使用 keystone 命令时,使用 devstack 部署 openstack 时遇到了这个错误。
[2014 年 11 月 27 日星期四 09:20:59] [错误] [客户端 172.20.14.15] 回溯(最后一次通话):
[2014 年 11 月 27 日星期四 09:20:59] [错误] [客户端 172.20.14.15] 文件“ /var/www/keystone/main",第 51 行,在
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] drivers = service.load_backends()
[Thu Nov 27 09:20:59 2014] [错误] [客户端 172.20.14.15] 文件“/opt/stack/keystone/keystone/service.py”,第 58 行,在 load_backends
[Thu Nov 27 09:20:59 2014] [错误] [客户端 172.20. 14.15] token_api=token.Manager(),
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] 文件“/opt/stack/keystone/keystone/common/dependency.py”,第 166 行,在包装器中
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] self. Wrapped_init(*args, **kwargs)
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] 文件“/opt/stack/keystone/keystone/common/dependency.py”,第 106 行,在Wrapped_init
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] init(self, *args, **kwargs)
[Thu Nov 27 09:20:59 2014] [error] [client 172.20. 14.15] 文件“/opt/stack/keystone/keystone/token/core.py”,第 113 行,在init
[Thu Nov 27 09:20:59 2014] [错误] [客户端 172.20.14.15] 超级(经理,自我)。init (CONF.token.driver)
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] 文件“/opt/stack/keystone/keystone/common/manager.py”,第 70 行,在在里面
[2014 年 11 月 27 日星期四 09:20:59] [错误] [客户端 172.20.14.15] self.driver = importutils.import_object(driver_name)
[2014 年 11 月 27 日星期四 09:20:59] [错误] [客户端 172.20.14.15]文件“/opt/stack/keystone/keystone/openstack/common/importutils.py”,第 38 行,在 import_object
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] return import_class(import_str) (*args, **kwargs)
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] 文件“/opt/stack/keystone/keystone/openstack/common/importutils.py”,第 28 行, 在 import_class
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] import (mod_str)
[Thu Nov 27 09:20:59 2014] [error] [client 172.20.14.15] ImportError: No名为 persistence.backends.sql 的模块