keystone与barbican联调问题

提问于 2016-07-12 20:30:57 -0600

roycyz 图像

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

from keystoneauth1 import session

from barbicanclient import client

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