OPenStack Python SDK Connect: Could not find requested endpoint in Service Catalog.
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.