分享

tempest使用执行时认证报错

zhoumingang 发表于 2015-12-16 17:45:14 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 13825
root@dev:/home/tempest/tempest/api/identity/admin/v2# nosetests test_tenants.py
2015-12-16 09:44:06.678 17981 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2015-12-16 09:44:06.736 17981 INFO tempest.test [-] <class 'tempest_lib.exceptions.InvalidCredentials'> raised in TenantsTestJSON.setUpClass. Invoking tearDownClass.
E
======================================================================
ERROR: test suite for <class 'tempest.api.identity.admin.v2.test_tenants.TenantsTestJSON'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 209, in run
    self.setUp()
raise exceptions.InvalidCredentials(message)
InvalidCredentials: Invalid Credentials
Details: Credentials are: {'username': None, 'tenant_name': None, 'user_id': None, 'tenant_id': None} Password is not defined.
----------------------------------------------------------------------
Ran 0 tests in 0.002s



求大神简答下,去哪里定义user password这些身份认证?

已有(3)人评论

跳转到指定楼层
atsky123 发表于 2015-12-16 18:37:24
Credentials are: {'username': None, 'tenant_name': None, 'user_id': None, 'tenant_id': None}
上面都是空,keystone里添加租户,用户,密码等信息
回复

使用道具 举报

zhoumingang 发表于 2015-12-17 14:54:19
atsky123 发表于 2015-12-16 18:37
Credentials are: {'username': None, 'tenant_name': None, 'user_id': None, 'tenant_id': None}
上面 ...

这在哪个文件里面加啊?
回复

使用道具 举报

atsky123 发表于 2015-12-17 19:56:10
zhoumingang 发表于 2015-12-17 14:54
这在哪个文件里面加啊?

先运行keystone,然后通过keystone命令添加

这是Juno版的,其它版本你找对应的即可
openstack【juno】入门 【keystone篇】五::Keystone部署及介绍
http://www.aboutyun.com/thread-11404-1-1.html



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条