[openstack-dev] [keystone] keystone client service_catalog is None
Eric K
ekcs.openstack at gmail.com
Sat Dec 9 03:15:58 UTC 2017
Hi all,
I'm working on some code [1] that attempts to retrieve a endpoint from the
service_catalog, but the service_catalog comes up None. Any suggestions on
what I need to do differently to get a working service_catalog? Thanks
very much!
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
>>> from keystoneauth1 import session # Version 2.12.1
>>> from keystoneauth1.identity import v2
>>> import keystoneclient.v3.client as ksclient
>>> auth = v2.Password(auth_url='http://127.0.0.1/identity',
>>>username='admin', password='password', tenant_name='admin')
>>> sess = session.Session(auth=auth)
>>> keystone = ksclient.Client(session=sess)
>>> print(keystone.service_catalog)
None
[1]
https://review.openstack.org/#/c/526813/1/congress/datasources/monasca_driv
er.py at 94
More information about the OpenStack-dev
mailing list