Client constructor lacking documentation

Bug #1321438 reported by Scott Devoid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Markus Zoeller (markus_z)

Bug Description

So there is this documentation:
https://github.com/openstack/python-glanceclient/blob/master/doc/source/index.rst

But it does not show examples for the v2 API. When I try to implement it exactly as shown I get a 300 MultipleEndpoints response for the v1 API.

Also, it would be nice if the client supported username, password and tenant arguments and generated a token via keystoneclient itself.

Revision history for this message
Feilong Wang (flwang) wrote :

Hi Scott, would you mind adding more info how you got the 300 error? Cheers. And yes, I agree we need more document for Glance client, especially for v2.

tags: added: low-hanging-fruit
Changed in python-glanceclient:
status: New → Triaged
Revision history for this message
Scott Devoid (scott-devoid) wrote : Re: [Bug 1321438] Re: Client constructor lacking documentation

Well first, HTTP 300 is a "Redirection: Multiple Choices" response,
not an error response. [1] Second, I do not have the exact details of
that issue since I reported it almost four months ago. I would suggest
that you look first into the python-glanceclient code and determine
what conditions would produce such a response. Second, as you say,
improve the documentation for calling the glance client code with
different endpoint versions (v1 and v2).

Thanks,

~ Scott

[1] http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection

On Sun, Sep 7, 2014 at 9:58 PM, Fei Long Wang <email address hidden> wrote:
> Hi Scott, would you mind adding more info how you got the 300 error?
> Cheers. And yes, I agree we need more document for Glance client,
> especially for v2.
>
> ** Tags added: low-hanging-fruit
>
> ** Changed in: python-glanceclient
> Status: New => Triaged
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1321438
>
> Title:
> Client constructor lacking documentation
>
> Status in Python client library for Glance:
> Triaged
>
> Bug description:
> So there is this documentation:
> https://github.com/openstack/python-glanceclient/blob/master/doc/source/index.rst
>
> But it does not show examples for the v2 API. When I try to implement
> it exactly as shown I get a 300 MultipleEndpoints response for the v1
> API.
>
> Also, it would be nice if the client supported username, password and
> tenant arguments and generated a token via keystoneclient itself.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-glanceclient/+bug/1321438/+subscriptions

Changed in python-glanceclient:
assignee: nobody → Markus Zoeller (mzoeller)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

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

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

Reviewed: https://review.openstack.org/133632
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=35c9b6520222e05bff35d341bb7057faace99458
Submitter: Jenkins
Branch: master

commit 35c9b6520222e05bff35d341bb7057faace99458
Author: Markus Zoeller <email address hidden>
Date: Tue Nov 11 09:48:57 2014 +0100

    Adds basic examples of v2 API usage

    Closes-Bug: 1321438

    Change-Id: I7c4a5db5bd498c6fb1dd2f4fdbf347b8d4c02c9a

Changed in python-glanceclient:
status: In Progress → Fix Committed
Louis Taylor (kragniz)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
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.