Bug 905081 - glance endpoint url contains version which brakes new-enough python-glanceclient
Summary: glance endpoint url contains version which brakes new-enough python-glanceclient
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: snapshot4
: 2.1
Assignee: Martin Magr
QA Contact: Attila Fazekas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-28 14:31 UTC by Pavel Sedlák
Modified: 2022-07-09 07:21 UTC (History)
8 users (show)

Fixed In Version: openstack-packstack-2012.2.3-0.1.dev454
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-21 18:25:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 22406 0 None None None Never
Red Hat Bugzilla 896154 0 high CLOSED Update client library/commandline from upstream stable branches and selected backports from Grizzly 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker OSP-16583 0 None None None 2022-07-09 07:21:07 UTC
Red Hat Product Errata RHSA-2013:0671 0 normal SHIPPED_LIVE Moderate: openstack-packstack security and bug fix update 2013-03-21 22:22:21 UTC

Internal Links: 896154

Description Pavel Sedlák 2013-01-28 14:31:56 UTC
Description of problem:
After installation of OpenStack using packstack, the glance/image endpoint URL looks like http://192.168.32.1:9292/v1.

But newer versions of glance-client libraries are appending version part on it's own and it results in urls containing "/v1/v1/{path}" which breaks glance-client functionality (fails with 404).

This could be a problem when bug #896154 will be fixed.

Also this maybe can be a problem if user specifies --os-image-api-version itself.

Version-Release number of selected component (if applicable):
 Name        : openstack-packstack
 Arch        : noarch
 Version     : 2012.2.2
 Release     : 0.5.dev318.el6ost

How reproducible:

Steps to Reproduce:
1. Install openstack using openstack-packstack.
2. Check output of keystone endpoint-list

Actual results:
Contains endpoint url(s) with version hardcoded

Expected results:
Just server ip/address and port in url.

Additional info:
- From feedback on irc this is somewhat related to puppet files used by packstack:
https://github.com/puppetlabs/puppetlabs-glance/blob/master/manifests/keystone/auth.pp#L53 .
- It should be maybe noted that the version in url is also specified in https://github.com/openstack/keystone/blob/master/tools/sample_data.sh#L182 .
- This is maybe also relevant for other endpoint urls containing hardcoded version like keystone endpoint but I didn't checked it.

Comment 2 Martin Magr 2013-02-19 15:36:43 UTC
This is already fixed upstream, so we only need to update our glance module:
https://github.com/puppetlabs/puppetlabs-glance/commit/51dc02d14580747b360bfdba2e3f8f9219134ac3

Comment 3 Alan Pevec 2013-02-19 17:54:33 UTC
> - It should be maybe noted that the version in url is also specified in
> https://github.com/openstack/keystone/blob/master/tools/sample_data.sh#L182 .

This upstream review fixes that
https://review.openstack.org/#/c/22237

Comment 7 errata-xmlrpc 2013-03-21 18:25:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0671.html


Note You need to log in before you can comment on or make changes to this bug.