keystone discover command not finding the keystone endpoint running on localhost

Bug #1136476 reported by Nachiappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
High
Nachiappan

Bug Description

I have the keystone server running on localhost at port 35357

When i execute the keystone discover command the following is the output.

>keystone discover
No handlers could be found for logger "keystoneclient.generic.client"
No Keystone-compatible endpoint found

When I send the request through the curl command the following is the output response

curl -X GET http://localhost:35357/ --include
HTTP/1.1 300 Multiple Choices
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 626
Date: Thu, 28 Feb 2013 06:18:51 GMT

{"versions": {"values": [{"status": "beta", "updated": "2011-11-19T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://localhost:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/", "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}]}}

The bug is related to keystone client not handling the response code 300 and report the error that "No Keystone-compatible endpoint found"

Nachiappan (nachiappan)
Changed in python-keystoneclient:
assignee: nobody → Nachiappan (nachiappan-veerappan-nachiappan)
Revision history for this message
Guang Yee (guang-yee) wrote :

See

https://github.com/openstack/identity-api/blob/master/openstack-identity-api/src/markdown/identity-api-v3.md

"
300 Multiple Choices

This status code is returned by the root identity endpoint, with references to one or more Identity API versions (such as /v3/).
"

This bug is legit.

Changed in python-keystoneclient:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23661

Changed in python-keystoneclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/23661
Committed: http://github.com/openstack/python-keystoneclient/commit/ffaa0a69e71019cdfdba5354bfc7d5c10ba21b79
Submitter: Jenkins
Branch: master

commit ffaa0a69e71019cdfdba5354bfc7d5c10ba21b79
Author: Nachiappan VR N <email address hidden>
Date: Tue Mar 5 20:31:52 2013 -0800

    Make keystone client handle the response code 300.

    Keystone discover command currently fails to list
    the keystone server. Fix is
    made such that client handle the response code
    300 from the keystone server.

    Fixes Bug #1136476

    Change-Id: Iada31f1e274aade90aa4b4be2a136793a0ba64d7

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.2.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers