2016-07-21 21:02:32 |
James Wong |
description |
I've been attempting to retrieve a list of projects through the Python SDK. This was done by calling "for p in <connection obj>.identity.projects(): print p". The attempt would then throw a NotFoundException.
Here is the stack trace that was dumped after execution:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/openstack/resource.py", line 878, in list
headers=headers, params=params)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 656, in get
return self.request(url, 'GET', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 58, in map_exceptions_wrapper
http_status=e.http_status, cause=e)
openstack.exceptions.NotFoundException: NotFoundException: The resource could not be found.
The same thing occurs for other functions that returns a generator object within identity, such as identity.services(), identity.endpoints(), identity.users(), etc.
However, the following cli commands do provide a list of the desired information:
openstack service list
openstack project list
openstack endpoint list
Currently, the following are installed on the machine:
python-keystoneclient (3.2.0)
python-openstackclient (2.6.0)
openstacksdk (0.9.0)
Any help on this would be greatly appreciated. |
I've been attempting to retrieve a list of projects through the Python SDK. This was done by calling "for p in <connection obj>.identity.projects(): print p". The attempt would then throw a NotFoundException.
Here is the stack trace that was dumped after execution:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/openstack/resource.py", line 878, in list
headers=headers, params=params)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 656, in get
return self.request(url, 'GET', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 58, in map_exceptions_wrapper
http_status=e.http_status, cause=e)
openstack.exceptions.NotFoundException: NotFoundException: The resource could not be found.
The same thing occurs for other functions that returns a generator object within identity, such as identity.services(), identity.endpoints(), identity.users(), etc.
However, the following cli commands do provide a list of the desired information:
openstack service list
openstack project list
openstack endpoint list
Currently, the following are some of Python modules installed on the machine:
python-keystoneclient (3.2.0)
python-openstackclient (2.6.0)
openstacksdk (0.9.0)
Any help on this would be greatly appreciated. |
|