Shell cannot distinguish V3 API
Bug #1219584 reported by
Jamie Lennox
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Original question: http://
When the token returns a v3 URL for the identity API endpoint there is no way for shell to know this. Thus the shell goes ahead and tries to talk the v2 protocol against the v3 API.
Shell doesn't support the V3 api, and i understand there is no intention to (in favour of openstack-client) however how is a client expected to determine the endpoint version from the service catalog? Should we instead be instructing people to point the identity endpoint to the root path and have the client do version discovery from there?
affects: | keystone → python-keystoneclient |
Changed in python-keystoneclient: | |
status: | New → Confirmed |
tags: | added: documentation |
To post a comment you must log in.
> there is no way for shell to know this
With version discovery, the provided URL should be queried by the client, which will return a specific version response rather than a multiple choice response. If the client instantiated by the shell requires v2.x and the response is not v2.x, then it seems reasonable for the shell client to abort. Alternatively (I don't think our version response supports this today, but...) a link from a versioned endpoint back to the multiple choice response would allow a client to reliably switch versions if a desirable version was available.
> Should we instead be instructing people to point the identity endpoint to the root path and have the client do version discovery from there?
Yes! :D