python-glanceclient: Not region aware

Bug #1080739 reported by Stephen Gran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Low
Brian Waldon

Bug Description

I have 2 regions, TC and KPL. I have images uploaded to the glance server in KPL, and no images in TC. I expect that
`glance -R TC image-list'
will return an empty list. In fact, it returns the images in KPL.

This appears to be because OpenStackImagesShell._get_endpoint does not pass the region as a filter to client.service_catalog.url_for, and that method just returns the first match. Compare this to the novaclient endpoint lookup, which does pass region to _url_for method.

Output of keystone endpoint-list is attached. Please let me know if I can do any more.

Revision history for this message
Stephen Gran (sgran) wrote :
Brian Waldon (bcwaldon)
no longer affects: glance
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

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

Changed in python-glanceclient:
assignee: nobody → Brian Waldon (bcwaldon)
status: New → In Progress
Brian Waldon (bcwaldon)
Changed in python-glanceclient:
importance: Undecided → Low
Revision history for this message
Stephen Gran (sgran) wrote :

Thanks for looking at this so quickly. I would greatly appreciate if it could be considered for a folsom backport in ubuntu.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

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

commit 3003ed8ef8078e97a2deeaf1f561292a3708755c
Author: Brian Waldon <email address hidden>
Date: Mon Nov 19 12:47:54 2012 -0800

    Hook up region_name argument

    Connect the --os-region-name option passed through the CLI
    to the call to service_catalog.url_for.

    Fixes bug 1080739.

    Change-Id: I2d19d62a999a82a91de3883db12bbc24e900de25

Changed in python-glanceclient:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon)
Changed in python-glanceclient:
milestone: none → v0.7.0
Brian Waldon (bcwaldon)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
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.