Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1452403

Summary: glance image-list does not handle multiple regions correctly
Product: Red Hat OpenStack Reporter: nalmond
Component: python-glanceclientAssignee: Cyril Roelandt <cyril>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0 (Liberty)CC: ccollett, cyril, eglynn, ekuvaja, fpercoco, jruzicka, nalmond, pdeore, pgrist, srevivo, tshefi
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-glanceclient-1.1.1-3.el7ost Doc Type: Bug Fix
Doc Text:
Previously, glance was not able to handle images which were located in different regions, but had the same name. As a result, glance would only show one UUID if two or more images located in different regions shared the same name. With this update, glance shows all image UUIDs. As a result, you can now see all images as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-29 16:03:08 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 nalmond 2017-05-18 21:36:27 UTC
Description of problem:
When 2 regions are configured and an image of the same name exists in both regions, glance image-list will return the same uuid for both regions when they should be unique.

Version-Release number of selected component (if applicable):
python-glanceclient-1.1.1-2.el7ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Configure 2 OpenStack regions in OSP 8
2. Create an image of the same name in each region
3. attempt 'glance image-list' in both regions

Actual results:
uuid of this image is the same in both outputs

Expected results:
uuid should be unique in each region

Additional info:
'openstack image list' correctly lists the different UUIDs for each region

Comment 3 nalmond 2017-10-17 18:28:44 UTC
Are there any updates for this?

The customer has a need to use 'openstack image set --accept <tenant-id> <image-id>' but the --accept flag does not exist in OSP 8.

'glance member-update <image-id> <tenant-id> accepted' does work, but only after applying the patch from comment 1.

Comment 4 Cyril Roelandt 2017-10-21 02:56:02 UTC
We could probably backport https://github.com/openstack/python-glanceclient/commit/8af249fcc9c5d1fe92f010eb19c6276cb5167bf6 to OSP8.

This patch is available in OSP10. I wonder whether I should do a backport to OSP9. You're probably going to skip this release, right?

Comment 5 Cyril Roelandt 2017-10-27 16:30:52 UTC
(In reply to Cyril Roelandt from comment #4)
> We could probably backport
> https://github.com/openstack/python-glanceclient/commit/
> 8af249fcc9c5d1fe92f010eb19c6276cb5167bf6 to OSP8.
> 
> This patch is available in OSP10. I wonder whether I should do a backport to
> OSP9. You're probably going to skip this release, right?

Oh, I misread the code, the patch is already on OSP9. I'll push a new RPM for OSP8 ASAP.

Comment 6 nalmond 2017-10-31 17:42:23 UTC
The customer is looking for this in OSP 8, thanks.

Comment 16 errata-xmlrpc 2017-11-29 16:03:08 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.

https://access.redhat.com/errata/RHBA-2017:3282

Comment 17 Red Hat Bugzilla 2023-09-15 00:02:15 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days