仅安装配置keystone与barbican是否能完成将密钥导入数据库的工作

asked 2016-07-12 20:13:13 -0500

roycyz gravatar image

完成keystone与barbican配置后,启动端口5000,35357与9311后(端口能通过wget连接)。调用barbican api接口代码如下: from keystoneauth1.identity import v2 from keystoneauth1 import session from barbicanclient import client import random import string

username='aaa' password='aaa' tenant_name='aaa' auth_url='http://localhost:35357/v2.0' auth = v2.Password(username=username,password=password,tenant_name=tenant_name, auth_url=auth_url) sess = session.Session(auth=auth) barbican = client.Client(session=sess) my_secret = barbican.secrets.create() my_secret.name = u'Random plain text password' my_secret.payload = random_password(24) my_secret_ref = my_secret.store()

执行返回:keystoneauth1.exceptions.catalog.EmptyCatalog: The service catalog is empty.

请问这是由于组建缺失还是那里环境配置有问题。

edit retag flag offensive close merge delete