Bug 1148194

Summary: Snapshots when using RBD backend make full copy then upload unnecessarily
Product: Red Hat OpenStack Reporter: Josh Durgin <jdurgin>
Component: openstack-novaAssignee: Pádraig Brady <pbrady>
Status: CLOSED DUPLICATE QA Contact: Ami Jeain <ajeain>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: berrange, dasmith, ndipanov, pbrady, sbauza, sferdjao, sgordon, vromanso, yeylon
Target Milestone: z4Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-14 15:40:58 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: 1148199    
Bug Blocks: 1111295    

Description Josh Durgin 2014-09-30 22:16:20 UTC
Description of problem:

When performing a snapshot a local copy is made. In the case of RBD, it reads what libvirt thinks is a raw block device and then converts that to a local raw file. The file is then uploaded to glance, which reads the whole raw file and stores it in the backend, if the backend is Ceph this is completely unnecessary and defeats the whole point of having a Ceph cluster. The fix should go something like this:

1. Tell Ceph to make a snapshot of the RBD
2. Get Ceph metadata from backend, send that to Glance
3. Glance gets metadata, if it has Ceph backend no download is necessary
4. If it doesn't, download image from Ceph location, store in backend

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

How reproducible:
Always

Comment 2 Pádraig Brady 2014-11-14 15:40:58 UTC

*** This bug has been marked as a duplicate of bug 1160405 ***