Bug 1293491
Summary: | --os-endpoint-type is broken for OSP 6 glance client | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Matt Flusche <mflusche> |
Component: | python-glanceclient | Assignee: | Flavio Percoco <fpercoco> |
Status: | CLOSED ERRATA | QA Contact: | Avi Avraham <aavraham> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 (Juno) | CC: | adahms, eglynn, fpercoco, jruzicka, mflusche, sgotliv, srevivo |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | 6.0 (Juno) | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | python-glanceclient-0.14.2-4.el7ost | Doc Type: | Bug Fix |
Doc Text: |
Previously, an incompatibility with keystoneclient v3 caused some parameters to be ignored. Now, the keyword argument `endpoint_type` has been replaced with `interface`, resolving this issue.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-06-08 12:10:56 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
Matt Flusche
2015-12-21 22:27:22 UTC
Fixed in python-glanceclient-0.14.2-4.el7ost According to the bug description this fix was already verified Is this the case ? We have some difficulty to reproduce rhos6 environment with public and internal url that are in different networks Hi Avi, Yes, python-glanceclient-0.14.2-4.el7ost resolves this issue. Here is my verification: ## Different URLs for public and internal glance endpoints. # keystone catalog ... Service: image +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | adminURL | http://127.0.0.1:9292 | | id | 1425adffa7f149b2b78c4d33dec6b45d | | internalURL | http://10.13.214.222:9292 | | publicURL | http://127.0.0.1:9292 | | region | RegionOne | +-------------+----------------------------------+ # rpm -q python-glanceclient python-glanceclient-0.14.2-2.el7ost.noarch # Here both requests use publicURL # glance --os-endpoint-type publicURL --debug image-list curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}5bdb6900efcac4ce7624c673a04233d57e7dd1ad' -H 'Content-Type: application/octet-stream' http://127.0.0.1:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20 # glance --os-endpoint-type internalURL --debug image-list curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}4445a37b703242a62629042d5d6200232885ae2e' -H 'Content-Type: application/octet-stream' http://127.0.0.1:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20 # rpm -Uvh http://download.eng.bos.redhat.com/brewroot/packages/python-glanceclient/0.14.2/4.el7ost/noarch/python-glanceclient-0.14.2-4.el7ost.noarch.rpm Retrieving http://download.eng.bos.redhat.com/brewroot/packages/python-glanceclient/0.14.2/4.el7ost/noarch/python-glanceclient-0.14.2-4.el7ost.noarch.rpm Preparing... ################################# [100%] Updating / installing... 1:python-glanceclient-1:0.14.2-4.el################################# [ 50%] Cleaning up / removing... 2:python-glanceclient-1:0.14.2-2.el################################# [100%] # Now internalURL works as expected # glance --os-endpoint-type publicURL --debug image-list curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}756906b2c94b4d46229cc9e4c81579f377b6ae24' -H 'Content-Type: application/octet-stream' http://127.0.0.1:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20 # glance --os-endpoint-type internalURL --debug image-list curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}83eaadb9ca53a2f3eaf3e0b7e760778411f04be8' -H 'Content-Type: application/octet-stream' http://10.13.214.222:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20 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. https://access.redhat.com/errata/RHBA-2016:1213 |