Bug 1148199 - glance rbd store get_size uses wrong pool
Summary: glance rbd store get_size uses wrong pool
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z5
: 5.0 (RHEL 7)
Assignee: hguemar
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks: 1148194
TreeView+ depends on / blocked
 
Reported: 2014-09-30 22:26 UTC by Josh Durgin
Modified: 2016-04-26 19:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-10 11:47:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1368128 0 None None None Never
OpenStack gerrit 125341 0 None None None Never
Red Hat Product Errata RHBA-2015:1760 0 normal SHIPPED_LIVE openstack-glance bug fix advisory 2015-09-10 15:46:54 UTC

Description Josh Durgin 2014-09-30 22:26:54 UTC
Description of problem:

the rbd store's get_size() method ignores the pool of the actual parameter and instead uses the glance pool, which breaks cross-pool image access

(one such example would be when we'd reference an rbd ephemeral disk snapshot which is in the ephemeral disk pool)

Version-Release number of selected component (if applicable):
Havana, Icehouse

How reproducible:
Always

Steps to Reproduce:
Add an rbd image to glance via --location, pointing to a different ceph pool than glance is configured to use. Try to download the image.

Actual results:
Glance fails to find the image and returns an error.

Expected results:
Image downloads successfully.

Comment 2 Flavio Percoco 2014-10-01 12:42:50 UTC
This was opened in for RHEL-OSP 5.0 although the upstream patch just landed for Juno (6.0). I think this fix is worth backporting.

Comment 9 Yogev Rabl 2015-09-07 12:57:37 UTC
verified on 
openstack-glance-2014.1.5-1.el7ost.noarch
ceph-common-0.80.7-2.el7.x86_64

Comment 11 errata-xmlrpc 2015-09-10 11:47:00 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://rhn.redhat.com/errata/RHBA-2015-1760.html


Note You need to log in before you can comment on or make changes to this bug.