← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1346525] Re: Snapshots when using RBD backend make full copy then upload unnecessarily

 

** Also affects: glance
   Importance: Undecided
       Status: New

** Changed in: glance
       Status: New => In Progress

** Changed in: glance
     Assignee: (unassigned) => Josh Durgin (jdurgin)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1346525

Title:
  Snapshots when using RBD backend make full copy then upload
  unnecessarily

Status in OpenStack Image Registry and Delivery Service (Glance):
  In Progress
Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1346525/+subscriptions


References