Glanceclient does not allow endpoints not starting with '/v1'

Bug #1052846 reported by Diego Parrilla on 2012-09-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-glanceclient
High
Unassigned

Bug Description

If you setup an Openstack deployment with proxied access to Glance through an Apache (or any other proxy server) with endpoints different than:

/v1/blah,blah,blah...

Then the client library trims the full path of the endpoint. Example:

http://stackops-server:80/glance/v1/blah,blah,blah...

the endpoint is transformed to:

http://stackops-server:80/v1/blah,blah,blah...

But if you enable the debug feature of the client (-d), the curl shown is correct, because how the curl is built and how the connection is built differs.

The code affected has been tested with the latest version of the client on several Essex deployments using V1 api.

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

Changed in python-glanceclient:
status: New → In Progress
Brian Waldon (bcwaldon) on 2012-09-20
Changed in python-glanceclient:
importance: Undecided → Low
importance: Low → High
milestone: none → v0.5.2

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

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

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

Reviewed: https://review.openstack.org/13448
Committed: http://github.com/openstack/python-glanceclient/commit/ff3060c067bb2a860642a1c2e01ef151df8c5243
Submitter: Jenkins
Branch: master

commit ff3060c067bb2a860642a1c2e01ef151df8c5243
Author: Diego Parrilla <email address hidden>
Date: Fri Sep 21 00:51:20 2012 +0200

    Use full URI path from Glance endpoint in HTTP requests

    Fixes bug 1052846

    Now the connection uses host, port and path to connect to Glance. So proxied connections to Glance are allowed.

    Change-Id: I53a890e6532adb8168961d1d09f938bf439e895c

Changed in python-glanceclient:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon) on 2012-10-24
Changed in python-glanceclient:
milestone: v0.5.2 → v0.6.0
Brian Waldon (bcwaldon) on 2012-11-20
Changed in python-glanceclient:
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