Unable to retrieve project objects

Bug #1605393 reported by James Wong
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
New
Undecided
Unassigned

Bug 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 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.

James Wong (phox27)
description: updated
Revision history for this message
Brian Curtin (brian.curtin) wrote :

conn.identity is probably v3 but you're auth'ing to a v2 keystone (which doesn't have a /projects resource). Is that correct?

Revision history for this message
Richard Theis (rtheis) wrote :

Do you only have trouble with identity resources? As Brian noted, this may be keystone v2 versus v3 related.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.