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

Bug 1148199

Summary: glance rbd store get_size uses wrong pool
Product: Red Hat OpenStack Reporter: Josh Durgin <jdurgin>
Component: openstack-glanceAssignee: hguemar
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 7)CC: apevec, dnavale, eglynn, fpercoco, hguemar, scohen, sgotliv, yeylon
Target Milestone: z5Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-10 11:47:00 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:
Bug Depends On:    
Bug Blocks: 1148194    

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