Comment 0 for bug 988672

Revision history for this message
jiangkai zhang (jekie8) wrote : EndpointManager.list() method not implemented.

when i tried to use python keystoneclient to fetch endpoints list,it returned HTTP 501 error information.

Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import keystoneclient.v2_0 as v2
>>> keystone=v2.client.Client(username='admin',password='123',tenant_name='admin',auth_url='http://192.168.2.201:5000/v2.0')
>>> keystone.endpoints.list()
No handlers could be found for logger "keystoneclient.client"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/endpoints.py", line 28, in list
    return self._list('/endpoints', 'endpoints')
  File "/opt/stack/python-keystoneclient/keystoneclient/base.py", line 65, in _list
    resp, body = self.api.get(url)
  File "/opt/stack/python-keystoneclient/keystoneclient/client.py", line 166, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/opt/stack/python-keystoneclient/keystoneclient/client.py", line 150, in _cs_request
    **kwargs)
  File "/opt/stack/python-keystoneclient/keystoneclient/client.py", line 130, in request
    raise exceptions.from_response(resp, body)
keystoneclient.exceptions.HTTPNotImplemented: The action you have requested has not been implemented. (HTTP 501)