Ask Your Question
0

OPenStack Python SDK Connect: Could not find requested endpoint in Service Catalog.

asked 2016-08-08 13:20:10 -0500

Alex2555 gravatar image

updated 2016-08-08 13:56:33 -0500

Hi Experts, I'm attempting to connect to our OPenStack cloud with the OpenStack Python SDK using the connection instantiation below. However, I'm receiving "Could not find requested endpoint in Service Catalog". We are on Juno. I'm using the endpoints as listed by keystone (keystone endpoint-list). Any help will be appreciated.

from openstack import connection conn = connection.Connection(auth_url="http://openstack:5000/v3", project_name="big_project", username="SDK_user", password="Super5ecretPassw0rd") for container in conn.object_store.containers(): print(container.name)

Traceback (most recent call last): File "connect.py", line 6, in <module> for container in conn.object_store.containers(): File "/opt/lib/python2.7/site-packages/openstack/resource.py", line 878, in list headers=headers, params=params) File "/opt/lib/python2.7/site-packages/keystoneauth1/session.py", line 507, in get return self.request(url, 'GET', **kwargs) File "/opt/lib/python2.7/site-packages/openstack/session.py", line 66, in map_exceptions_wrapper raise exceptions.SDKException(message=e.message, cause=e) openstack.exceptions.SDKException: Could not find requested endpoint in Service Catalog.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-11 12:31:03 -0500

brian.curtin gravatar image

Without debug logging it's hard to know what the problem is, but version 0.9.2 was released today with https://review.openstack.org/#/c/351398/ (a change to how we find endpoints)which corrects a few things we had been doing incorrectly between Keystone v2 and v3. If that doesn't change anything for you, please report a bug at https://bugs.launchpad.net/python-openstacksdk (https://bugs.launchpad.net/python-ope...).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-08-08 13:20:10 -0500

Seen: 1,554 times

Last updated: Aug 08 '16