Bug 905081

Summary: glance endpoint url contains version which brakes new-enough python-glanceclient
Product: Red Hat OpenStack Reporter: Pavel Sedlák <psedlak>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Attila Fazekas <afazekas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0 (Folsom)CC: aortega, apevec, derekh, fpercoco, jhenner, kchamart, mmagr, ykaul
Target Milestone: snapshot4Keywords: Triaged
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2012.2.3-0.1.dev454 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-21 18:25:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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