keystone workwith barbican store screts to db

asked 2016-07-12 20:27:16 -0600

roycyz gravatar image

I have already finish set up the keystone and barbican.The service 5000,35357,9311 are running now.(I can connect them with wget). Then I running those code :

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()

But it get a mistake about:keystoneauth1.exceptions.catalog.EmptyCatalog: The service catalog is empty.

I want to know.It's have to some more module ,there is something wrong about my keystone.conf or any else error.

Thank you.

edit retag flag offensive close merge delete