python-glanceclient: Not region aware

Bug #1080739 reported by Stephen Gran on 2012-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-glanceclient
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.

Stephen Gran (sgran) wrote :
Brian Waldon (bcwaldon) on 2012-11-19
no longer affects: glance

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) on 2012-11-20
Changed in python-glanceclient:
importance: Undecided → Low
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.

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) on 2012-12-11
Changed in python-glanceclient:
milestone: none → v0.7.0
Brian Waldon (bcwaldon) on 2012-12-12
Changed in python-glanceclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers