glance client's os-endpoint-type option doesn't work

Bug #1395822 reported by Dmitry Ilyin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Committed
High
Mike Fedosin

Bug Description

OpenStack 2014.2-fuel6.0~mira8 (Ubuntu)

I cannot use glance client like this glance --debug --os-endpoint-type='internalURL' image-list because option os-endpoint-type is ignored together with OS-ENDPOINT-TYPE from openrc. It defaults to publicURL.

It doesn't allow us to upload glance images during the deployment id public network is down.

Debug showed that in this file
/usr/lib/python2.7/dist-packages/glanceclient/shell.py line about 509

there is a call for get_endpoint method

            endpoint = args.os_image_url or ks_session.get_endpoint(
                service_type=service_type,
                endpoint_type=endpoint_type,
                region_name=args.os_region_name)

Looks like parameter should be 'interface' instead of 'endpoint_type'.
At list this code works as intended:

            endpoint = args.os_image_url or ks_session.get_endpoint(
                service_type=service_type,
                endpoint_type=endpoint_type,
                interface=endpoint_type,
                region_name=args.os_region_name)

Tags: glance
Dmitry Ilyin (idv1985)
Changed in fuel:
importance: Undecided → High
assignee: nobody → MOS Glance (mos-glance)
milestone: none → 6.0
ruhe (ruhe)
affects: fuel → mos
Changed in mos:
milestone: 6.0 → none
milestone: none → 6.0
tags: added: glance
Changed in mos:
status: New → Confirmed
Revision history for this message
Mike Fedosin (mfedosin) wrote :
ruhe (ruhe)
Changed in mos:
assignee: MOS Glance (mos-glance) → Mike Fedosin (mfedosin)
Revision history for this message
OSCI Robot (oscirobot) wrote :

RPM package python-glanceclient has been built for project openstack/python-glanceclient
Package version == 0.14.1, package release == fuel6.0.mira20.git.0dd67b3.aa8c038

Changeset: https://review.fuel-infra.org/991
project: openstack/python-glanceclient
branch: openstack-ci/fuel-6.0/2014.2
author: Mikhail Fedosin
committer: Alexander Tivelkov
subject: Fix to ensure endpoint_type is used by _get_endpoint()
status: patchset-created

Files placed on repository:
python-glanceclient-0.14.1-fuel6.0.mira20.git.0dd67b3.aa8c038.noarch.rpm
python-glanceclient-doc-0.14.1-fuel6.0.mira20.git.0dd67b3.aa8c038.noarch.rpm

NOTE: Changeset is not merged, created temporary package repository.
RPM repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-6.0-stable-991/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package python-glanceclient has been built for project openstack/python-glanceclient
Package version == 0.14.1, package release == fuel6.0~mira17+git.0dd67b3.aa8c038

Changeset: https://review.fuel-infra.org/991
project: openstack/python-glanceclient
branch: openstack-ci/fuel-6.0/2014.2
author: Mikhail Fedosin
committer: Alexander Tivelkov
subject: Fix to ensure endpoint_type is used by _get_endpoint()
status: patchset-created

Files placed on repository:
python-glanceclient_0.14.1-fuel6.0~mira17+git.0dd67b3.aa8c038_all.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable-991/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

RPM package python-glanceclient has been built for project openstack/python-glanceclient
Package version == 0.14.1, package release == fuel6.0.mira20

Changeset: https://review.fuel-infra.org/991
project: openstack/python-glanceclient
branch: openstack-ci/fuel-6.0/2014.2
author: Mikhail Fedosin
committer: Alexander Tivelkov
subject: Fix to ensure endpoint_type is used by _get_endpoint()
status: change-merged

Files placed on repository:
python-glanceclient-0.14.1-fuel6.0.mira20.noarch.rpm
python-glanceclient-doc-0.14.1-fuel6.0.mira20.noarch.rpm

Changeset merged. Package placed on primary repository
RPM repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-6.0-stable/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package python-glanceclient has been built for project openstack/python-glanceclient
Package version == 0.14.1, package release == fuel6.0~mira17

Changeset: https://review.fuel-infra.org/991
project: openstack/python-glanceclient
branch: openstack-ci/fuel-6.0/2014.2
author: Mikhail Fedosin
committer: Alexander Tivelkov
subject: Fix to ensure endpoint_type is used by _get_endpoint()
status: change-merged

Files placed on repository:
python-glanceclient_0.14.1-fuel6.0~mira17_all.deb

Changeset merged. Package placed on primary repository
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/ubuntu

Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/python-glanceclient (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Andy McCrae <email address hidden>
Review: https://review.fuel-infra.org/8299

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/python-glanceclient (openstack-ci/fuel-7.0/2015.1.0)

Change abandoned by Mike Fedosin <email address hidden> on branch: openstack-ci/fuel-7.0/2015.1.0
Review: https://review.fuel-infra.org/8299

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.